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 | * Sun 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, Sun 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 tagWTS_INFO_CLASS
|
---|
37 | {
|
---|
38 | WTSInitialProgram,
|
---|
39 | WTSApplicationName,
|
---|
40 | WTSWorkingDirectory,
|
---|
41 | WTSOEMId,
|
---|
42 | WTSSessionId,
|
---|
43 | WTSUserName,
|
---|
44 | WTSWinStationName,
|
---|
45 | WTSDomainName,
|
---|
46 | WTSConnectState,
|
---|
47 | WTSClientBuildNumber,
|
---|
48 | WTSClientName,
|
---|
49 | WTSClientDirectory,
|
---|
50 | WTSClientProductId,
|
---|
51 | WTSClientHardwareId,
|
---|
52 | WTSClientAddress,
|
---|
53 | WTSClientDisplay,
|
---|
54 | WTSClientProtocolType,
|
---|
55 | } WTS_INFO_CLASS;
|
---|
56 |
|
---|
57 | typedef enum _WTS_CONNECTSTATE_CLASS
|
---|
58 | {
|
---|
59 | WTSActive,
|
---|
60 | WTSConnected,
|
---|
61 | WTSConnectQuery,
|
---|
62 | WTSShadow,
|
---|
63 | WTSDisconnected,
|
---|
64 | WTSIdle,
|
---|
65 | WTSListen,
|
---|
66 | WTSReset,
|
---|
67 | WTSDown,
|
---|
68 | WTSInit
|
---|
69 | } WTS_CONNECTSTATE_CLASS;
|
---|
70 |
|
---|
71 | typedef enum _WTS_CONFIG_CLASS
|
---|
72 | {
|
---|
73 | WTSUserConfigInitialProgram,
|
---|
74 | WTSUserConfigWorkingDirectory,
|
---|
75 | WTSUserConfigInheritInitialProgram,
|
---|
76 | WTSUserConfigAllowLogonTerminalServer,
|
---|
77 | WTSUserConfigTimeoutSettingsConnections,
|
---|
78 | WTSUserConfigTimeoutSettingsDisconnections,
|
---|
79 | WTSUserConfigTimeoutSettingsIdle,
|
---|
80 | WTSUserConfigDeviceClientDrives,
|
---|
81 | WTSUserConfigDeviceClientPrinters,
|
---|
82 | WTSUserConfigDeviceClientDefaultPrinter,
|
---|
83 | WTSUserConfigBrokenTimeoutSettings,
|
---|
84 | WTSUserConfigModemCallbackSettings,
|
---|
85 | WTSUserConfigModemCallbackPhoneNumber,
|
---|
86 | WTSUserConfigShadowSettings,
|
---|
87 | WTSUserConfigTerminalServerProfilePath,
|
---|
88 | WTSUserConfigTerminalServerHomeDirectory,
|
---|
89 | WTSUserConfigfTerminalServerRemoteHomeDir
|
---|
90 | } WTS_CONFIG_CLASS;
|
---|
91 |
|
---|
92 | typedef struct _WTS_PROCESS_INFOA
|
---|
93 | {
|
---|
94 | DWORD SessionId;
|
---|
95 | DWORD ProcessId;
|
---|
96 | LPSTR pProcessName;
|
---|
97 | PSID pUserSid;
|
---|
98 | } WTS_PROCESS_INFOA, *PWTS_PROCESS_INFOA;
|
---|
99 |
|
---|
100 | typedef struct _WTS_PROCESS_INFOW
|
---|
101 | {
|
---|
102 | DWORD SessionId;
|
---|
103 | DWORD ProcessId;
|
---|
104 | LPWSTR pProcessName;
|
---|
105 | PSID pUserSid;
|
---|
106 | } WTS_PROCESS_INFOW, *PWTS_PROCESS_INFOW;
|
---|
107 |
|
---|
108 | DECL_WINELIB_TYPE_AW(WTS_PROCESS_INFO)
|
---|
109 | DECL_WINELIB_TYPE_AW(PWTS_PROCESS_INFO)
|
---|
110 |
|
---|
111 | typedef struct _WTS_SESSION_INFOA
|
---|
112 | {
|
---|
113 | DWORD SessionId;
|
---|
114 | LPSTR pWinStationName;
|
---|
115 | WTS_CONNECTSTATE_CLASS State;
|
---|
116 | } WTS_SESSION_INFOA, *PWTS_SESSION_INFOA;
|
---|
117 |
|
---|
118 | typedef struct _WTS_SESSION_INFOW
|
---|
119 | {
|
---|
120 | DWORD SessionId;
|
---|
121 | LPWSTR pWinStationName;
|
---|
122 | WTS_CONNECTSTATE_CLASS State;
|
---|
123 | } WTS_SESSION_INFOW, *PWTS_SESSION_INFOW;
|
---|
124 |
|
---|
125 | DECL_WINELIB_TYPE_AW(WTS_SESSION_INFO)
|
---|
126 | DECL_WINELIB_TYPE_AW(PWTS_SESSION_INFO)
|
---|
127 |
|
---|
128 | typedef struct _WTS_SERVER_INFOA
|
---|
129 | {
|
---|
130 | LPSTR pServerName;
|
---|
131 | } WTS_SERVER_INFOA, *PWTS_SERVER_INFOA;
|
---|
132 |
|
---|
133 | typedef struct _WTS_SERVER_INFOW
|
---|
134 | {
|
---|
135 | LPWSTR pServerName;
|
---|
136 | } WTS_SERVER_INFOW, *PWTS_SERVER_INFOW;
|
---|
137 |
|
---|
138 | DECL_WINELIB_TYPE_AW(WTS_SERVER_INFO)
|
---|
139 | DECL_WINELIB_TYPE_AW(PWTS_SERVER_INFO)
|
---|
140 |
|
---|
141 | void WINAPI WTSCloseServer(HANDLE);
|
---|
142 | BOOL WINAPI WTSDisconnectSession(HANDLE, DWORD, BOOL);
|
---|
143 | BOOL WINAPI WTSEnumerateProcessesA(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOA *, DWORD *);
|
---|
144 | BOOL WINAPI WTSEnumerateProcessesW(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOW *, DWORD *);
|
---|
145 | #define WTSEnumerateProcesses WINELIB_NAME_AW(WTSEnumerateProcesses)
|
---|
146 | BOOL WINAPI WTSEnumerateServersA( LPSTR, DWORD, DWORD, PWTS_SERVER_INFOA*, DWORD*);
|
---|
147 | BOOL WINAPI WTSEnumerateServersW( LPWSTR, DWORD, DWORD, PWTS_SERVER_INFOW*, DWORD*);
|
---|
148 | #define WTSEnumerateServers WINELIB_NAME_AW(WTSEnumerateServers)
|
---|
149 | BOOL WINAPI WTSEnumerateSessionsA(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOA *, DWORD *);
|
---|
150 | BOOL WINAPI WTSEnumerateSessionsW(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOW *, DWORD *);
|
---|
151 | #define WTSEnumerateSessions WINELIB_NAME_AW(WTSEnumerateSessions)
|
---|
152 | void WINAPI WTSFreeMemory(PVOID);
|
---|
153 | HANDLE WINAPI WTSOpenServerA(LPSTR);
|
---|
154 | HANDLE WINAPI WTSOpenServerW(LPWSTR);
|
---|
155 | #define WTSOpenServer WINELIB_NAME_AW(WTSOpenServer)
|
---|
156 | BOOL WINAPI WTSQuerySessionInformationA(HANDLE, DWORD, WTS_INFO_CLASS, LPSTR *, DWORD *);
|
---|
157 | BOOL WINAPI WTSQuerySessionInformationW(HANDLE, DWORD, WTS_INFO_CLASS, LPWSTR *, DWORD *);
|
---|
158 | #define WTSQuerySessionInformation WINELIB_NAME_AW(WTSQuerySessionInformation)
|
---|
159 | BOOL WINAPI WTSQueryUserConfigA(LPSTR,LPSTR,WTS_CONFIG_CLASS,LPSTR*,DWORD*);
|
---|
160 | BOOL WINAPI WTSQueryUserConfigW(LPWSTR,LPWSTR,WTS_CONFIG_CLASS,LPWSTR*,DWORD*);
|
---|
161 | #define WTSQueryUserConfig WINELIB_NAME_AW(WTSQueryUserConfig)
|
---|
162 | BOOL WINAPI WTSQueryUserToken(ULONG, PHANDLE);
|
---|
163 | BOOL WINAPI WTSRegisterSessionNotification(HWND, DWORD);
|
---|
164 | BOOL WINAPI WTSRegisterSessionNotificationEx(HANDLE, HWND, DWORD);
|
---|
165 | BOOL WINAPI WTSTerminateProcess(HANDLE, DWORD, DWORD);
|
---|
166 | BOOL WINAPI WTSUnRegisterSessionNotification(HWND);
|
---|
167 | BOOL WINAPI WTSUnRegisterSessionNotificationEx(HANDLE, HWND);
|
---|
168 | BOOL WINAPI WTSWaitSystemEvent(HANDLE, DWORD, DWORD*);
|
---|
169 |
|
---|
170 | #ifdef __cplusplus
|
---|
171 | }
|
---|
172 | #endif
|
---|
173 |
|
---|
174 | #endif
|
---|