ReactOS  0.4.15-dev-499-g1f31905
wtsapi32.h
Go to the documentation of this file.
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 #ifndef __WINE_WTSAPI32_H
20 #define __WINE_WTSAPI32_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 /*
27  * pResponse values from WTSSendMessage(), in addition
28  * to those from the standard MessageBox() API.
29  */
30 #ifndef IDTIMEOUT
31 #define IDTIMEOUT 32000
32 #endif
33 #ifndef IDASYNC
34 #define IDASYNC 32001
35 #endif
36 
37 typedef enum _WTS_VIRTUAL_CLASS
38 {
42 
43 typedef enum tagWTS_INFO_CLASS
44 {
62 #if (NTDDI_VERSION >= NTDDI_WS08)
76 #endif /* (NTDDI_VERSION >= NTDDI_WS08) */
78 
80 {
92 
93 typedef enum _WTS_CONFIG_CLASS
94 {
113 
114 typedef enum _WTS_TYPE_CLASS
115 {
120 
121 typedef struct _WTS_PROCESS_INFOA
122 {
128 
129 typedef struct _WTS_PROCESS_INFOW
130 {
136 
137 DECL_WINELIB_TYPE_AW(WTS_PROCESS_INFO)
138 DECL_WINELIB_TYPE_AW(PWTS_PROCESS_INFO)
139 
141 {
146 
147 typedef struct _WTS_SESSION_INFOW
148 {
153 
154 DECL_WINELIB_TYPE_AW(WTS_SESSION_INFO)
155 DECL_WINELIB_TYPE_AW(PWTS_SESSION_INFO)
156 
158 {
163  char *pHostName;
164  char *pUserName;
165  char *pDomainName;
166  char *pFarmName;
168 
169 typedef struct _WTS_SESSION_INFO_1W
170 {
180 
181 DECL_WINELIB_TYPE_AW(WTS_SESSION_INFO_1)
182 DECL_WINELIB_TYPE_AW(PWTS_SESSION_INFO_1)
183 
185 {
188 
189 typedef struct _WTS_SERVER_INFOW
190 {
193 
194 DECL_WINELIB_TYPE_AW(WTS_SERVER_INFO)
195 DECL_WINELIB_TYPE_AW(PWTS_SERVER_INFO)
196 
197 #define WTS_CURRENT_SERVER_HANDLE ((HANDLE)NULL)
198 #define WTS_CURRENT_SESSION (~0u)
199 
203 #define WTSConnectSession WINELIB_NAME_AW(WTSConnectSession)
208 #define WTSEnumerateProcesses WINELIB_NAME_AW(WTSEnumerateProcesses)
211 #define WTSEnumerateServers WINELIB_NAME_AW(WTSEnumerateServers)
214 #define WTSEnumerateSessions WINELIB_NAME_AW(WTSEnumerateSessions)
218 #define WTSOpenServer WINELIB_NAME_AW(WTSOpenServer)
221 #define WTSQuerySessionInformation WINELIB_NAME_AW(WTSQuerySessionInformation)
224 #define WTSQueryUserConfig WINELIB_NAME_AW(WTSQueryUserConfig)
230 #define WTSStartRemoteControlSession WINELIB_NAME_AW(WTSStartRemoteControlSession)
236 
237 #ifdef __cplusplus
238 }
239 #endif
240 
241 #endif
BOOL WINAPI WTSEnumerateProcessesA(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOA *, DWORD *)
Definition: wtsapi32.c:103
BOOL WINAPI WTSEnableChildSessions(BOOL)
Definition: wtsapi32.c:73
BOOL WINAPI WTSEnumerateSessionsA(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOA *, DWORD *)
Definition: wtsapi32.c:247
BOOL WINAPI WTSEnumerateSessionsW(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOW *, DWORD *)
Definition: wtsapi32.c:266
_WTS_CONFIG_CLASS
Definition: wtsapi32.h:93
LPWSTR pWinStationName
Definition: wtsapi32.h:150
struct _WTS_SESSION_INFO_1W * PWTS_SESSION_INFO_1W
enum tagWTS_INFO_CLASS WTS_INFO_CLASS
tagWTS_INFO_CLASS
Definition: wtsapi32.h:43
uint16_t * PWSTR
Definition: typedefs.h:55
BOOL WINAPI WTSTerminateProcess(HANDLE, DWORD, DWORD)
Definition: wtsapi32.c:720
WTS_CONNECTSTATE_CLASS State
Definition: wtsapi32.h:151
struct _WTS_SESSION_INFO_1A WTS_SESSION_INFO_1A
LPWSTR pProcessName
Definition: wtsapi32.h:133
struct _WTS_SESSION_INFO_1A * PWTS_SESSION_INFO_1A
BOOL WINAPI WTSUnRegisterSessionNotificationEx(HANDLE, HWND)
Definition: wtsapi32.c:738
BOOL WINAPI WTSRegisterSessionNotificationEx(HANDLE, HWND, DWORD)
Definition: wtsapi32.c:636
BOOL WINAPI WTSEnumerateServersW(LPWSTR, DWORD, DWORD, PWTS_SERVER_INFOW *, DWORD *)
Definition: wtsapi32.c:217
_WTS_VIRTUAL_CLASS
Definition: wtsapi32.h:37
struct _WTS_SESSION_INFOW WTS_SESSION_INFOW
char * LPSTR
Definition: xmlstorage.h:182
struct _WTS_PROCESS_INFOA WTS_PROCESS_INFOA
enum _WTS_VIRTUAL_CLASS WTS_VIRTUAL_CLASS
BOOL WINAPI WTSQueryUserConfigW(LPWSTR, LPWSTR, WTS_CONFIG_CLASS, LPWSTR *, DWORD *)
Definition: wtsapi32.c:616
struct _WTS_SESSION_INFO_1W WTS_SESSION_INFO_1W
_WTS_TYPE_CLASS
Definition: wtsapi32.h:114
struct _WTS_SERVER_INFOA WTS_SERVER_INFOA
#define DECL_WINELIB_TYPE_AW(type)
Definition: windef.h:401
enum _WTS_CONNECTSTATE_CLASS WTS_CONNECTSTATE_CLASS
unsigned int BOOL
Definition: ntddk_ex.h:94
void WINAPI WTSFreeMemory(PVOID)
Definition: wtsapi32.c:283
LPSTR pWinStationName
Definition: wtsapi32.h:143
BOOL WINAPI WTSStartRemoteControlSessionW(LPWSTR, ULONG, BYTE, USHORT)
Definition: wtsapi32.c:702
WTS_CONNECTSTATE_CLASS State
Definition: wtsapi32.h:144
_WTS_CONNECTSTATE_CLASS
Definition: wtsapi32.h:79
BOOL WINAPI WTSQueryUserConfigA(LPSTR, LPSTR, WTS_CONFIG_CLASS, LPSTR *, DWORD *)
Definition: wtsapi32.c:606
struct _WTS_SESSION_INFOA WTS_SESSION_INFOA
BOOL WINAPI WTSEnumerateServersA(LPSTR, DWORD, DWORD, PWTS_SERVER_INFOA *, DWORD *)
Definition: wtsapi32.c:208
enum _WTS_TYPE_CLASS WTS_TYPE_CLASS
BOOL WINAPI WTSStartRemoteControlSessionA(LPSTR, ULONG, BYTE, USHORT)
Definition: wtsapi32.c:693
struct _WTS_SESSION_INFOW * PWTS_SESSION_INFOW
BOOL WINAPI WTSConnectSessionA(ULONG, ULONG, PSTR, BOOL)
Definition: wtsapi32.c:46
WTS_CONNECTSTATE_CLASS State
Definition: wtsapi32.h:160
BOOL WINAPI WTSQuerySessionInformationW(HANDLE, DWORD, WTS_INFO_CLASS, LPWSTR *, DWORD *)
Definition: wtsapi32.c:443
HANDLE WINAPI WTSOpenServerA(LPSTR)
Definition: wtsapi32.c:343
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
struct _WTS_SERVER_INFOW WTS_SERVER_INFOW
BOOL WINAPI WTSStopRemoteControlSession(ULONG)
Definition: wtsapi32.c:711
BOOL WINAPI WTSWaitSystemEvent(HANDLE, DWORD, DWORD *)
Definition: wtsapi32.c:821
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:454
BOOL WINAPI WTSQueryUserToken(ULONG, PHANDLE)
Definition: wtsapi32.c:588
BOOL WINAPI WTSEnumerateProcessesW(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOW *, DWORD *)
Definition: wtsapi32.c:120
unsigned char BYTE
Definition: xxhash.c:193
WTS_CONNECTSTATE_CLASS State
Definition: wtsapi32.h:172
BOOL WINAPI WTSUnRegisterSessionNotification(HWND)
Definition: wtsapi32.c:729
unsigned short USHORT
Definition: pedump.c:61
signed char * PSTR
Definition: retypes.h:7
LPWSTR pServerName
Definition: wtsapi32.h:191
struct _WTS_PROCESS_INFOW WTS_PROCESS_INFOW
struct _WTS_PROCESS_INFOA * PWTS_PROCESS_INFOA
BOOL WINAPI WTSDisconnectSession(HANDLE, DWORD, BOOL)
Definition: wtsapi32.c:64
WCHAR * pSessionName
Definition: wtsapi32.h:174
HANDLE WINAPI WTSOpenServerW(LPWSTR)
Definition: wtsapi32.c:353
unsigned int ULONG
Definition: retypes.h:1
struct _WTS_SESSION_INFOA * PWTS_SESSION_INFOA
BOOL WINAPI WTSRegisterSessionNotification(HWND, DWORD)
Definition: wtsapi32.c:627
BOOL WINAPI WTSConnectSessionW(ULONG, ULONG, PWSTR, BOOL)
Definition: wtsapi32.c:55
WCHAR * LPWSTR
Definition: xmlstorage.h:184
struct _WTS_SERVER_INFOW * PWTS_SERVER_INFOW
BOOL WINAPI WTSQuerySessionInformationA(HANDLE, DWORD, WTS_INFO_CLASS, LPSTR *, DWORD *)
Definition: wtsapi32.c:363
void WINAPI WTSCloseServer(HANDLE)
Definition: wtsapi32.c:38
struct _WTS_SERVER_INFOA * PWTS_SERVER_INFOA
enum _WTS_CONFIG_CLASS WTS_CONFIG_CLASS
struct _WTS_PROCESS_INFOW * PWTS_PROCESS_INFOW