ReactOS 0.4.15-dev-7953-g1f49173
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
23extern "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
38{
42
44{
62#if (NTDDI_VERSION >= NTDDI_WS08)
76#endif /* (NTDDI_VERSION >= NTDDI_WS08) */
78
80{
92
94{
113
114typedef enum _WTS_TYPE_CLASS
115{
120
121typedef struct _WTS_PROCESS_INFOA
122{
128
129typedef struct _WTS_PROCESS_INFOW
130{
136
137DECL_WINELIB_TYPE_AW(WTS_PROCESS_INFO)
138DECL_WINELIB_TYPE_AW(PWTS_PROCESS_INFO)
139
141{
146
147typedef struct _WTS_SESSION_INFOW
148{
153
154DECL_WINELIB_TYPE_AW(WTS_SESSION_INFO)
155DECL_WINELIB_TYPE_AW(PWTS_SESSION_INFO)
156
158{
168
170{
180
181DECL_WINELIB_TYPE_AW(WTS_SESSION_INFO_1)
182DECL_WINELIB_TYPE_AW(PWTS_SESSION_INFO_1)
183
185{
188
189typedef struct _WTS_SERVER_INFOW
190{
193
194DECL_WINELIB_TYPE_AW(WTS_SERVER_INFO)
195DECL_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
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:455
unsigned short USHORT
Definition: pedump.c:61
LPWSTR pProcessName
Definition: wtsapi32.h:133
LPWSTR pServerName
Definition: wtsapi32.h:191
WTS_CONNECTSTATE_CLASS State
Definition: wtsapi32.h:144
LPSTR pWinStationName
Definition: wtsapi32.h:143
WTS_CONNECTSTATE_CLASS State
Definition: wtsapi32.h:151
LPWSTR pWinStationName
Definition: wtsapi32.h:150
WTS_CONNECTSTATE_CLASS State
Definition: wtsapi32.h:160
WCHAR * pSessionName
Definition: wtsapi32.h:174
WTS_CONNECTSTATE_CLASS State
Definition: wtsapi32.h:172
uint16_t * PWSTR
Definition: typedefs.h:56
char * PSTR
Definition: typedefs.h:51
uint32_t ULONG
Definition: typedefs.h:59
#define DECL_WINELIB_TYPE_AW(type)
Definition: windef.h:401
#define WINAPI
Definition: msvc.h:6
_WTS_CONFIG_CLASS
Definition: wtsapi32.h:94
@ WTSUserConfigAllowLogonTerminalServer
Definition: wtsapi32.h:98
@ WTSUserConfigModemCallbackPhoneNumber
Definition: wtsapi32.h:107
@ WTSUserConfigTerminalServerProfilePath
Definition: wtsapi32.h:109
@ WTSUserConfigTimeoutSettingsIdle
Definition: wtsapi32.h:101
@ WTSUserConfigModemCallbackSettings
Definition: wtsapi32.h:106
@ WTSUserConfigTimeoutSettingsDisconnections
Definition: wtsapi32.h:100
@ WTSUserConfigTerminalServerHomeDirectory
Definition: wtsapi32.h:110
@ WTSUserConfigTimeoutSettingsConnections
Definition: wtsapi32.h:99
@ WTSUserConfigDeviceClientPrinters
Definition: wtsapi32.h:103
@ WTSUserConfigDeviceClientDefaultPrinter
Definition: wtsapi32.h:104
@ WTSUserConfigInitialProgram
Definition: wtsapi32.h:95
@ WTSUserConfigBrokenTimeoutSettings
Definition: wtsapi32.h:105
@ WTSUserConfigWorkingDirectory
Definition: wtsapi32.h:96
@ WTSUserConfigShadowSettings
Definition: wtsapi32.h:108
@ WTSUserConfigInheritInitialProgram
Definition: wtsapi32.h:97
@ WTSUserConfigDeviceClientDrives
Definition: wtsapi32.h:102
@ WTSUserConfigfTerminalServerRemoteHomeDir
Definition: wtsapi32.h:111
BOOL WINAPI WTSConnectSessionA(ULONG, ULONG, PSTR, BOOL)
Definition: wtsapi32.c:46
enum _WTS_VIRTUAL_CLASS WTS_VIRTUAL_CLASS
struct _WTS_SESSION_INFOW * PWTS_SESSION_INFOW
BOOL WINAPI WTSQueryUserToken(ULONG, PHANDLE)
Definition: wtsapi32.c:588
struct _WTS_SESSION_INFO_1W WTS_SESSION_INFO_1W
enum tagWTS_INFO_CLASS WTS_INFO_CLASS
struct _WTS_SESSION_INFOA * PWTS_SESSION_INFOA
BOOL WINAPI WTSDisconnectSession(HANDLE, DWORD, BOOL)
Definition: wtsapi32.c:64
BOOL WINAPI WTSEnumerateSessionsW(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOW *, DWORD *)
Definition: wtsapi32.c:266
BOOL WINAPI WTSConnectSessionW(ULONG, ULONG, PWSTR, BOOL)
Definition: wtsapi32.c:55
struct _WTS_SERVER_INFOA * PWTS_SERVER_INFOA
BOOL WINAPI WTSUnRegisterSessionNotificationEx(HANDLE, HWND)
Definition: wtsapi32.c:738
struct _WTS_PROCESS_INFOA * PWTS_PROCESS_INFOA
BOOL WINAPI WTSQuerySessionInformationA(HANDLE, DWORD, WTS_INFO_CLASS, LPSTR *, DWORD *)
Definition: wtsapi32.c:363
void WINAPI WTSCloseServer(HANDLE)
Definition: wtsapi32.c:38
BOOL WINAPI WTSUnRegisterSessionNotification(HWND)
Definition: wtsapi32.c:729
enum _WTS_CONFIG_CLASS WTS_CONFIG_CLASS
tagWTS_INFO_CLASS
Definition: wtsapi32.h:44
@ WTSWorkingDirectory
Definition: wtsapi32.h:47
@ WTSWinStationName
Definition: wtsapi32.h:51
@ WTSApplicationName
Definition: wtsapi32.h:46
@ WTSClientProtocolType
Definition: wtsapi32.h:61
@ WTSIncomingBytes
Definition: wtsapi32.h:65
@ WTSOEMId
Definition: wtsapi32.h:48
@ WTSClientDisplay
Definition: wtsapi32.h:60
@ WTSConfigInfo
Definition: wtsapi32.h:72
@ WTSOutgoingBytes
Definition: wtsapi32.h:66
@ WTSClientBuildNumber
Definition: wtsapi32.h:54
@ WTSClientInfo
Definition: wtsapi32.h:69
@ WTSDomainName
Definition: wtsapi32.h:52
@ WTSOutgoingFrames
Definition: wtsapi32.h:68
@ WTSInitialProgram
Definition: wtsapi32.h:45
@ WTSSessionInfoEx
Definition: wtsapi32.h:71
@ WTSLogonTime
Definition: wtsapi32.h:64
@ WTSSessionAddressV4
Definition: wtsapi32.h:74
@ WTSSessionInfo
Definition: wtsapi32.h:70
@ WTSValidationInfo
Definition: wtsapi32.h:73
@ WTSUserName
Definition: wtsapi32.h:50
@ WTSConnectState
Definition: wtsapi32.h:53
@ WTSClientProductId
Definition: wtsapi32.h:57
@ WTSIncomingFrames
Definition: wtsapi32.h:67
@ WTSClientHardwareId
Definition: wtsapi32.h:58
@ WTSClientDirectory
Definition: wtsapi32.h:56
@ WTSIdleTime
Definition: wtsapi32.h:63
@ WTSClientAddress
Definition: wtsapi32.h:59
@ WTSSessionId
Definition: wtsapi32.h:49
@ WTSClientName
Definition: wtsapi32.h:55
@ WTSIsRemoteSession
Definition: wtsapi32.h:75
BOOL WINAPI WTSEnumerateProcessesA(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOA *, DWORD *)
Definition: wtsapi32.c:103
BOOL WINAPI WTSStartRemoteControlSessionW(LPWSTR, ULONG, BYTE, USHORT)
Definition: wtsapi32.c:702
_WTS_TYPE_CLASS
Definition: wtsapi32.h:115
@ WTSTypeProcessInfoLevel0
Definition: wtsapi32.h:116
@ WTSTypeProcessInfoLevel1
Definition: wtsapi32.h:117
@ WTSTypeSessionInfoLevel1
Definition: wtsapi32.h:118
BOOL WINAPI WTSTerminateProcess(HANDLE, DWORD, DWORD)
Definition: wtsapi32.c:720
BOOL WINAPI WTSRegisterSessionNotificationEx(HANDLE, HWND, DWORD)
Definition: wtsapi32.c:636
BOOL WINAPI WTSStartRemoteControlSessionA(LPSTR, ULONG, BYTE, USHORT)
Definition: wtsapi32.c:693
BOOL WINAPI WTSEnumerateProcessesW(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOW *, DWORD *)
Definition: wtsapi32.c:120
BOOL WINAPI WTSQuerySessionInformationW(HANDLE, DWORD, WTS_INFO_CLASS, LPWSTR *, DWORD *)
Definition: wtsapi32.c:443
struct _WTS_PROCESS_INFOW * PWTS_PROCESS_INFOW
struct _WTS_SERVER_INFOA WTS_SERVER_INFOA
struct _WTS_SESSION_INFOW WTS_SESSION_INFOW
_WTS_VIRTUAL_CLASS
Definition: wtsapi32.h:38
@ WTSVirtualClientData
Definition: wtsapi32.h:39
@ WTSVirtualFileHandle
Definition: wtsapi32.h:40
struct _WTS_SERVER_INFOW * PWTS_SERVER_INFOW
BOOL WINAPI WTSEnableChildSessions(BOOL)
Definition: wtsapi32.c:73
enum _WTS_TYPE_CLASS WTS_TYPE_CLASS
BOOL WINAPI WTSEnumerateServersA(LPSTR, DWORD, DWORD, PWTS_SERVER_INFOA *, DWORD *)
Definition: wtsapi32.c:208
HANDLE WINAPI WTSOpenServerW(LPWSTR)
Definition: wtsapi32.c:353
HANDLE WINAPI WTSOpenServerA(LPSTR)
Definition: wtsapi32.c:343
struct _WTS_SERVER_INFOW WTS_SERVER_INFOW
struct _WTS_SESSION_INFOA WTS_SESSION_INFOA
struct _WTS_PROCESS_INFOW WTS_PROCESS_INFOW
struct _WTS_SESSION_INFO_1A * PWTS_SESSION_INFO_1A
enum _WTS_CONNECTSTATE_CLASS WTS_CONNECTSTATE_CLASS
struct _WTS_SESSION_INFO_1A WTS_SESSION_INFO_1A
void WINAPI WTSFreeMemory(PVOID)
Definition: wtsapi32.c:283
BOOL WINAPI WTSWaitSystemEvent(HANDLE, DWORD, DWORD *)
Definition: wtsapi32.c:821
BOOL WINAPI WTSEnumerateSessionsA(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOA *, DWORD *)
Definition: wtsapi32.c:247
BOOL WINAPI WTSStopRemoteControlSession(ULONG)
Definition: wtsapi32.c:711
BOOL WINAPI WTSQueryUserConfigW(LPWSTR, LPWSTR, WTS_CONFIG_CLASS, LPWSTR *, DWORD *)
Definition: wtsapi32.c:616
_WTS_CONNECTSTATE_CLASS
Definition: wtsapi32.h:80
@ WTSDisconnected
Definition: wtsapi32.h:85
@ WTSDown
Definition: wtsapi32.h:89
@ WTSActive
Definition: wtsapi32.h:81
@ WTSConnected
Definition: wtsapi32.h:82
@ WTSInit
Definition: wtsapi32.h:90
@ WTSConnectQuery
Definition: wtsapi32.h:83
@ WTSIdle
Definition: wtsapi32.h:86
@ WTSReset
Definition: wtsapi32.h:88
@ WTSListen
Definition: wtsapi32.h:87
@ WTSShadow
Definition: wtsapi32.h:84
struct _WTS_PROCESS_INFOA WTS_PROCESS_INFOA
BOOL WINAPI WTSRegisterSessionNotification(HWND, DWORD)
Definition: wtsapi32.c:627
struct _WTS_SESSION_INFO_1W * PWTS_SESSION_INFO_1W
BOOL WINAPI WTSEnumerateServersW(LPWSTR, DWORD, DWORD, PWTS_SERVER_INFOW *, DWORD *)
Definition: wtsapi32.c:217
BOOL WINAPI WTSQueryUserConfigA(LPSTR, LPSTR, WTS_CONFIG_CLASS, LPSTR *, DWORD *)
Definition: wtsapi32.c:606
char * LPSTR
Definition: xmlstorage.h:182
__wchar_t WCHAR
Definition: xmlstorage.h:180
WCHAR * LPWSTR
Definition: xmlstorage.h:184
unsigned char BYTE
Definition: xxhash.c:193