OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/host/win/wts_terminal_monitor.h" | 5 #include "remoting/host/win/wts_terminal_monitor.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <winternl.h> | 8 #include <winternl.h> |
9 #include <wtsapi32.h> | 9 #include <wtsapi32.h> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
14 #include "base/native_library.h" | 14 #include "base/native_library.h" |
15 #include "base/scoped_native_library.h" | 15 #include "base/scoped_native_library.h" |
16 #include "base/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "net/base/ip_endpoint.h" | 17 #include "net/base/ip_endpoint.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // Used to query the endpoint of an attached RDP client. | 21 // Used to query the endpoint of an attached RDP client. |
22 const WINSTATIONINFOCLASS kWinStationRemoteAddress = | 22 const WINSTATIONINFOCLASS kWinStationRemoteAddress = |
23 static_cast<WINSTATIONINFOCLASS>(29); | 23 static_cast<WINSTATIONINFOCLASS>(29); |
24 | 24 |
25 // WinStationRemoteAddress information class returns the following structure. | 25 // WinStationRemoteAddress information class returns the following structure. |
26 // Note that its layout is different from sockaddr_in/sockaddr_in6. For | 26 // Note that its layout is different from sockaddr_in/sockaddr_in6. For |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 // |client_endpoint| is not associated with any session. | 169 // |client_endpoint| is not associated with any session. |
170 WTSFreeMemory(session_info); | 170 WTSFreeMemory(session_info); |
171 return kInvalidSessionId; | 171 return kInvalidSessionId; |
172 } | 172 } |
173 | 173 |
174 WtsTerminalMonitor::WtsTerminalMonitor() { | 174 WtsTerminalMonitor::WtsTerminalMonitor() { |
175 } | 175 } |
176 | 176 |
177 } // namespace remoting | 177 } // namespace remoting |
OLD | NEW |