1 | /*
|
---|
2 | * Copyright 2005 Ulrich Czekalla (For CodeWeavers)
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __WINE_WTSAPI32_H
|
---|
29 | #define __WINE_WTSAPI32_H
|
---|
30 |
|
---|
31 | #ifdef __cplusplus
|
---|
32 | extern "C" {
|
---|
33 | #endif
|
---|
34 |
|
---|
35 |
|
---|
36 | typedef enum _WTS_VIRTUAL_CLASS
|
---|
37 | {
|
---|
38 | WTSVirtualClientData,
|
---|
39 | WTSVirtualFileHandle
|
---|
40 | } WTS_VIRTUAL_CLASS;
|
---|
41 |
|
---|
42 | typedef enum tagWTS_INFO_CLASS
|
---|
43 | {
|
---|
44 | WTSInitialProgram,
|
---|
45 | WTSApplicationName,
|
---|
46 | WTSWorkingDirectory,
|
---|
47 | WTSOEMId,
|
---|
48 | WTSSessionId,
|
---|
49 | WTSUserName,
|
---|
50 | WTSWinStationName,
|
---|
51 | WTSDomainName,
|
---|
52 | WTSConnectState,
|
---|
53 | WTSClientBuildNumber,
|
---|
54 | WTSClientName,
|
---|
55 | WTSClientDirectory,
|
---|
56 | WTSClientProductId,
|
---|
57 | WTSClientHardwareId,
|
---|
58 | WTSClientAddress,
|
---|
59 | WTSClientDisplay,
|
---|
60 | WTSClientProtocolType,
|
---|
61 | } WTS_INFO_CLASS;
|
---|
62 |
|
---|
63 | typedef enum _WTS_CONNECTSTATE_CLASS
|
---|
64 | {
|
---|
65 | WTSActive,
|
---|
66 | WTSConnected,
|
---|
67 | WTSConnectQuery,
|
---|
68 | WTSShadow,
|
---|
69 | WTSDisconnected,
|
---|
70 | WTSIdle,
|
---|
71 | WTSListen,
|
---|
72 | WTSReset,
|
---|
73 | WTSDown,
|
---|
74 | WTSInit
|
---|
75 | } WTS_CONNECTSTATE_CLASS;
|
---|
76 |
|
---|
77 | typedef enum _WTS_CONFIG_CLASS
|
---|
78 | {
|
---|
79 | WTSUserConfigInitialProgram,
|
---|
80 | WTSUserConfigWorkingDirectory,
|
---|
81 | WTSUserConfigInheritInitialProgram,
|
---|
82 | WTSUserConfigAllowLogonTerminalServer,
|
---|
83 | WTSUserConfigTimeoutSettingsConnections,
|
---|
84 | WTSUserConfigTimeoutSettingsDisconnections,
|
---|
85 | WTSUserConfigTimeoutSettingsIdle,
|
---|
86 | WTSUserConfigDeviceClientDrives,
|
---|
87 | WTSUserConfigDeviceClientPrinters,
|
---|
88 | WTSUserConfigDeviceClientDefaultPrinter,
|
---|
89 | WTSUserConfigBrokenTimeoutSettings,
|
---|
90 | WTSUserConfigModemCallbackSettings,
|
---|
91 | WTSUserConfigModemCallbackPhoneNumber,
|
---|
92 | WTSUserConfigShadowSettings,
|
---|
93 | WTSUserConfigTerminalServerProfilePath,
|
---|
94 | WTSUserConfigTerminalServerHomeDirectory,
|
---|
95 | WTSUserConfigfTerminalServerRemoteHomeDir
|
---|
96 | } WTS_CONFIG_CLASS;
|
---|
97 |
|
---|
98 | typedef struct _WTS_PROCESS_INFOA
|
---|
99 | {
|
---|
100 | DWORD SessionId;
|
---|
101 | DWORD ProcessId;
|
---|
102 | LPSTR pProcessName;
|
---|
103 | PSID pUserSid;
|
---|
104 | } WTS_PROCESS_INFOA, *PWTS_PROCESS_INFOA;
|
---|
105 |
|
---|
106 | typedef struct _WTS_PROCESS_INFOW
|
---|
107 | {
|
---|
108 | DWORD SessionId;
|
---|
109 | DWORD ProcessId;
|
---|
110 | LPWSTR pProcessName;
|
---|
111 | PSID pUserSid;
|
---|
112 | } WTS_PROCESS_INFOW, *PWTS_PROCESS_INFOW;
|
---|
113 |
|
---|
114 | DECL_WINELIB_TYPE_AW(WTS_PROCESS_INFO)
|
---|
115 | DECL_WINELIB_TYPE_AW(PWTS_PROCESS_INFO)
|
---|
116 |
|
---|
117 | typedef struct _WTS_SESSION_INFOA
|
---|
118 | {
|
---|
119 | DWORD SessionId;
|
---|
120 | LPSTR pWinStationName;
|
---|
121 | WTS_CONNECTSTATE_CLASS State;
|
---|
122 | } WTS_SESSION_INFOA, *PWTS_SESSION_INFOA;
|
---|
123 |
|
---|
124 | typedef struct _WTS_SESSION_INFOW
|
---|
125 | {
|
---|
126 | DWORD SessionId;
|
---|
127 | LPWSTR pWinStationName;
|
---|
128 | WTS_CONNECTSTATE_CLASS State;
|
---|
129 | } WTS_SESSION_INFOW, *PWTS_SESSION_INFOW;
|
---|
130 |
|
---|
131 | DECL_WINELIB_TYPE_AW(WTS_SESSION_INFO)
|
---|
132 | DECL_WINELIB_TYPE_AW(PWTS_SESSION_INFO)
|
---|
133 |
|
---|
134 | typedef struct _WTS_SERVER_INFOA
|
---|
135 | {
|
---|
136 | LPSTR pServerName;
|
---|
137 | } WTS_SERVER_INFOA, *PWTS_SERVER_INFOA;
|
---|
138 |
|
---|
139 | typedef struct _WTS_SERVER_INFOW
|
---|
140 | {
|
---|
141 | LPWSTR pServerName;
|
---|
142 | } WTS_SERVER_INFOW, *PWTS_SERVER_INFOW;
|
---|
143 |
|
---|
144 | DECL_WINELIB_TYPE_AW(WTS_SERVER_INFO)
|
---|
145 | DECL_WINELIB_TYPE_AW(PWTS_SERVER_INFO)
|
---|
146 |
|
---|
147 | void WINAPI WTSCloseServer(HANDLE);
|
---|
148 | BOOL WINAPI WTSConnectSessionA(ULONG, ULONG, PSTR, BOOL);
|
---|
149 | BOOL WINAPI WTSConnectSessionW(ULONG, ULONG, PWSTR, BOOL);
|
---|
150 | #define WTSConnectSession WINELIB_NAME_AW(WTSConnectSession)
|
---|
151 | BOOL WINAPI WTSDisconnectSession(HANDLE, DWORD, BOOL);
|
---|
152 | BOOL WINAPI WTSEnumerateProcessesA(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOA *, DWORD *);
|
---|
153 | BOOL WINAPI WTSEnumerateProcessesW(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOW *, DWORD *);
|
---|
154 | #define WTSEnumerateProcesses WINELIB_NAME_AW(WTSEnumerateProcesses)
|
---|
155 | BOOL WINAPI WTSEnumerateServersA( LPSTR, DWORD, DWORD, PWTS_SERVER_INFOA*, DWORD*);
|
---|
156 | BOOL WINAPI WTSEnumerateServersW( LPWSTR, DWORD, DWORD, PWTS_SERVER_INFOW*, DWORD*);
|
---|
157 | #define WTSEnumerateServers WINELIB_NAME_AW(WTSEnumerateServers)
|
---|
158 | BOOL WINAPI WTSEnumerateSessionsA(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOA *, DWORD *);
|
---|
159 | BOOL WINAPI WTSEnumerateSessionsW(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOW *, DWORD *);
|
---|
160 | #define WTSEnumerateSessions WINELIB_NAME_AW(WTSEnumerateSessions)
|
---|
161 | void WINAPI WTSFreeMemory(PVOID);
|
---|
162 | HANDLE WINAPI WTSOpenServerA(LPSTR);
|
---|
163 | HANDLE WINAPI WTSOpenServerW(LPWSTR);
|
---|
164 | #define WTSOpenServer WINELIB_NAME_AW(WTSOpenServer)
|
---|
165 | BOOL WINAPI WTSQuerySessionInformationA(HANDLE, DWORD, WTS_INFO_CLASS, LPSTR *, DWORD *);
|
---|
166 | BOOL WINAPI WTSQuerySessionInformationW(HANDLE, DWORD, WTS_INFO_CLASS, LPWSTR *, DWORD *);
|
---|
167 | #define WTSQuerySessionInformation WINELIB_NAME_AW(WTSQuerySessionInformation)
|
---|
168 | BOOL WINAPI WTSQueryUserConfigA(LPSTR,LPSTR,WTS_CONFIG_CLASS,LPSTR*,DWORD*);
|
---|
169 | BOOL WINAPI WTSQueryUserConfigW(LPWSTR,LPWSTR,WTS_CONFIG_CLASS,LPWSTR*,DWORD*);
|
---|
170 | #define WTSQueryUserConfig WINELIB_NAME_AW(WTSQueryUserConfig)
|
---|
171 | BOOL WINAPI WTSQueryUserToken(ULONG, PHANDLE);
|
---|
172 | BOOL WINAPI WTSRegisterSessionNotification(HWND, DWORD);
|
---|
173 | BOOL WINAPI WTSRegisterSessionNotificationEx(HANDLE, HWND, DWORD);
|
---|
174 | BOOL WINAPI WTSStartRemoteControlSessionA(LPSTR, ULONG, BYTE, USHORT);
|
---|
175 | BOOL WINAPI WTSStartRemoteControlSessionW(LPWSTR, ULONG, BYTE, USHORT);
|
---|
176 | #define WTSStartRemoteControlSession WINELIB_NAME_AW(WTSStartRemoteControlSession)
|
---|
177 | BOOL WINAPI WTSStopRemoteControlSession(ULONG);
|
---|
178 | BOOL WINAPI WTSTerminateProcess(HANDLE, DWORD, DWORD);
|
---|
179 | BOOL WINAPI WTSUnRegisterSessionNotification(HWND);
|
---|
180 | BOOL WINAPI WTSUnRegisterSessionNotificationEx(HANDLE, HWND);
|
---|
181 | BOOL WINAPI WTSWaitSystemEvent(HANDLE, DWORD, DWORD*);
|
---|
182 |
|
---|
183 | #ifdef __cplusplus
|
---|
184 | }
|
---|
185 | #endif
|
---|
186 |
|
---|
187 | #endif
|
---|