FreeRDP
wtsapi.h File Reference
#include <winpr/winpr.h>
#include <winpr/wtypes.h>
#include <winpr/file.h>
This graph shows which files directly or indirectly include this file:

Data Structures

struct  CHANNEL_DEF
 
struct  PCHANNEL_PDU_HEADER
 
struct  PCHANNEL_ENTRY_POINTS
 
struct  PCHANNEL_ENTRY_POINTS_EX
 
struct  WTS_SERVER_INFOW
 
struct  WTS_SERVER_INFOA
 
struct  WTS_SESSION_INFOW
 
struct  WTS_SESSION_INFOA
 
struct  WTS_SESSION_INFO_1W
 
struct  WTS_SESSION_INFO_1A
 
struct  WTS_PROCESS_INFOW
 
struct  WTS_PROCESS_INFOA
 
struct  WTSCONFIGINFOW
 
struct  WTSCONFIGINFOA
 
struct  WTSINFOW
 
struct  WTSINFOA
 
struct  WTSINFOEX_LEVEL1_W
 
struct  WTSINFOEX_LEVEL1_A
 
union  WTSINFOEX_LEVEL_W
 
union  WTSINFOEX_LEVEL_A
 
struct  WTSINFOEXW
 
struct  WTSINFOEXA
 
struct  WTSCLIENTW
 
struct  WTSCLIENTA
 
struct  PRODUCT_INFOA
 
struct  PRODUCT_INFOW
 
struct  WTS_VALIDATION_INFORMATIONA
 
struct  WTS_VALIDATION_INFORMATIONW
 
struct  WTS_CLIENT_ADDRESS
 
struct  WTS_CLIENT_DISPLAY
 
struct  WTSUSERCONFIGA
 
struct  WTSUSERCONFIGW
 
struct  WTS_SESSION_ADDRESS
 
struct  WTS_PROCESS_INFO_EXW
 
struct  WTS_PROCESS_INFO_EXA
 
struct  WTSLISTENERCONFIGW
 
struct  WTSLISTENERCONFIGA
 
struct  WtsApiFunctionTable
 

Macros

#define CHANNEL_CHUNK_MAX_LENGTH   16256
 
#define CHANNEL_CHUNK_LENGTH   1600
 
#define CHANNEL_PDU_LENGTH   (CHANNEL_CHUNK_LENGTH + sizeof(CHANNEL_PDU_HEADER))
 
#define CHANNEL_FLAG_FIRST   0x01
 
#define CHANNEL_FLAG_LAST   0x02
 
#define CHANNEL_FLAG_ONLY   (CHANNEL_FLAG_FIRST | CHANNEL_FLAG_LAST)
 
#define CHANNEL_FLAG_MIDDLE   0
 
#define CHANNEL_FLAG_FAIL   0x100
 
#define CHANNEL_OPTION_INITIALIZED   0x80000000
 
#define CHANNEL_OPTION_ENCRYPT_RDP   0x40000000
 
#define CHANNEL_OPTION_ENCRYPT_SC   0x20000000
 
#define CHANNEL_OPTION_ENCRYPT_CS   0x10000000
 
#define CHANNEL_OPTION_PRI_HIGH   0x08000000
 
#define CHANNEL_OPTION_PRI_MED   0x04000000
 
#define CHANNEL_OPTION_PRI_LOW   0x02000000
 
#define CHANNEL_OPTION_COMPRESS_RDP   0x00800000
 
#define CHANNEL_OPTION_COMPRESS   0x00400000
 
#define CHANNEL_OPTION_SHOW_PROTOCOL   0x00200000
 
#define CHANNEL_OPTION_REMOTE_CONTROL_PERSISTENT   0x00100000
 
#define CHANNEL_MAX_COUNT   31
 
#define CHANNEL_NAME_LEN   7
 
#define CHANNEL_FLAG_SHOW_PROTOCOL   0x10
 
#define CHANNEL_FLAG_SUSPEND   0x20
 
#define CHANNEL_FLAG_RESUME   0x40
 
#define CHANNEL_FLAG_SHADOW_PERSISTENT   0x80
 
#define VCAPITYPE   CALLBACK
 
#define VCEXPORT   __export
 
#define CHANNEL_EVENT_INITIALIZED   0
 
#define CHANNEL_EVENT_CONNECTED   1
 
#define CHANNEL_EVENT_V1_CONNECTED   2
 
#define CHANNEL_EVENT_DISCONNECTED   3
 
#define CHANNEL_EVENT_TERMINATED   4
 
#define CHANNEL_EVENT_REMOTE_CONTROL_START   5
 
#define CHANNEL_EVENT_REMOTE_CONTROL_STOP   6
 
#define CHANNEL_EVENT_ATTACHED   7
 
#define CHANNEL_EVENT_DETACHED   8
 
#define CHANNEL_EVENT_DATA_RECEIVED   10
 
#define CHANNEL_EVENT_WRITE_COMPLETE   11
 
#define CHANNEL_EVENT_WRITE_CANCELLED   12
 
#define CHANNEL_RC_OK   0
 
#define CHANNEL_RC_ALREADY_INITIALIZED   1
 
#define CHANNEL_RC_NOT_INITIALIZED   2
 
#define CHANNEL_RC_ALREADY_CONNECTED   3
 
#define CHANNEL_RC_NOT_CONNECTED   4
 
#define CHANNEL_RC_TOO_MANY_CHANNELS   5
 
#define CHANNEL_RC_BAD_CHANNEL   6
 
#define CHANNEL_RC_BAD_CHANNEL_HANDLE   7
 
#define CHANNEL_RC_NO_BUFFER   8
 
#define CHANNEL_RC_BAD_INIT_HANDLE   9
 
#define CHANNEL_RC_NOT_OPEN   10
 
#define CHANNEL_RC_BAD_PROC   11
 
#define CHANNEL_RC_NO_MEMORY   12
 
#define CHANNEL_RC_UNKNOWN_CHANNEL_NAME   13
 
#define CHANNEL_RC_ALREADY_OPEN   14
 
#define CHANNEL_RC_NOT_IN_VIRTUALCHANNELENTRY   15
 
#define CHANNEL_RC_NULL_DATA   16
 
#define CHANNEL_RC_ZERO_LENGTH   17
 
#define CHANNEL_RC_INVALID_INSTANCE   18
 
#define CHANNEL_RC_UNSUPPORTED_VERSION   19
 
#define CHANNEL_RC_INITIALIZATION_ERROR   20
 
#define VIRTUAL_CHANNEL_VERSION_WIN2000   1
 
#define WTS_CURRENT_SERVER   ((HANDLE)NULL)
 
#define WTS_CURRENT_SERVER_HANDLE   ((HANDLE)NULL)
 
#define WTS_CURRENT_SERVER_NAME   (NULL)
 
#define WTS_CURRENT_SESSION   ((DWORD)-1)
 
#define WTS_ANY_SESSION   ((DWORD)-2)
 
#define IDTIMEOUT   32000
 
#define IDASYNC   32001
 
#define USERNAME_LENGTH   20
 
#define CLIENTNAME_LENGTH   20
 
#define CLIENTADDRESS_LENGTH   30
 
#define WTS_WSD_LOGOFF   0x00000001
 
#define WTS_WSD_SHUTDOWN   0x00000002
 
#define WTS_WSD_REBOOT   0x00000004
 
#define WTS_WSD_POWEROFF   0x00000008
 
#define WTS_WSD_FASTREBOOT   0x00000010
 
#define MAX_ELAPSED_TIME_LENGTH   15
 
#define MAX_DATE_TIME_LENGTH   56
 
#define WINSTATIONNAME_LENGTH   32
 
#define DOMAIN_LENGTH   17
 
#define WTS_DRIVE_LENGTH   3
 
#define WTS_LISTENER_NAME_LENGTH   32
 
#define WTS_COMMENT_LENGTH   60
 
#define WTS_LISTENER_CREATE   0x00000001
 
#define WTS_LISTENER_UPDATE   0x00000010
 
#define WTS_SECURITY_QUERY_INFORMATION   0x00000001
 
#define WTS_SECURITY_SET_INFORMATION   0x00000002
 
#define WTS_SECURITY_RESET   0x00000004
 
#define WTS_SECURITY_VIRTUAL_CHANNELS   0x00000008
 
#define WTS_SECURITY_REMOTE_CONTROL   0x00000010
 
#define WTS_SECURITY_LOGON   0x00000020
 
#define WTS_SECURITY_LOGOFF   0x00000040
 
#define WTS_SECURITY_MESSAGE   0x00000080
 
#define WTS_SECURITY_CONNECT   0x00000100
 
#define WTS_SECURITY_DISCONNECT   0x00000200
 
#define WTS_SECURITY_GUEST_ACCESS   (WTS_SECURITY_LOGON)
 
#define WTS_SECURITY_CURRENT_GUEST_ACCESS   (WTS_SECURITY_VIRTUAL_CHANNELS | WTS_SECURITY_LOGOFF)
 
#define WTS_SECURITY_USER_ACCESS    (WTS_SECURITY_CURRENT_GUEST_ACCESS | WTS_SECURITY_QUERY_INFORMATION | WTS_SECURITY_CONNECT)
 
#define WTS_SECURITY_CURRENT_USER_ACCESS
 
#define WTS_SECURITY_ALL_ACCESS
 
#define WTS_PROTOCOL_TYPE_CONSOLE   0
 
#define WTS_PROTOCOL_TYPE_ICA   1
 
#define WTS_PROTOCOL_TYPE_RDP   2
 
#define WTS_SESSIONSTATE_UNKNOWN   0xFFFFFFFF
 
#define WTS_SESSIONSTATE_LOCK   0x00000000
 
#define WTS_SESSIONSTATE_UNLOCK   0x00000001
 
#define PRODUCTINFO_COMPANYNAME_LENGTH   256
 
#define PRODUCTINFO_PRODUCTID_LENGTH   4
 
#define VALIDATIONINFORMATION_LICENSE_LENGTH   16384
 
#define VALIDATIONINFORMATION_HARDWAREID_LENGTH   20
 
#define WTS_EVENT_NONE   0x00000000
 
#define WTS_EVENT_CREATE   0x00000001
 
#define WTS_EVENT_DELETE   0x00000002
 
#define WTS_EVENT_RENAME   0x00000004
 
#define WTS_EVENT_CONNECT   0x00000008
 
#define WTS_EVENT_DISCONNECT   0x00000010
 
#define WTS_EVENT_LOGON   0x00000020
 
#define WTS_EVENT_LOGOFF   0x00000040
 
#define WTS_EVENT_STATECHANGE   0x00000080
 
#define WTS_EVENT_LICENSE   0x00000100
 
#define WTS_EVENT_ALL   0x7FFFFFFF
 
#define WTS_EVENT_FLUSH   0x80000000
 
#define REMOTECONTROL_KBDSHIFT_HOTKEY   0x1
 
#define REMOTECONTROL_KBDCTRL_HOTKEY   0x2
 
#define REMOTECONTROL_KBDALT_HOTKEY   0x4
 
#define WTS_CHANNEL_OPTION_DYNAMIC   0x00000001
 
#define WTS_CHANNEL_OPTION_DYNAMIC_PRI_LOW   0x00000000
 
#define WTS_CHANNEL_OPTION_DYNAMIC_PRI_MED   0x00000002
 
#define WTS_CHANNEL_OPTION_DYNAMIC_PRI_HIGH   0x00000004
 
#define WTS_CHANNEL_OPTION_DYNAMIC_PRI_REAL   0x00000006
 
#define WTS_CHANNEL_OPTION_DYNAMIC_NO_COMPRESS   0x00000008
 
#define NOTIFY_FOR_ALL_SESSIONS   1
 
#define NOTIFY_FOR_THIS_SESSION   0
 
#define WTS_PROCESS_INFO_LEVEL_0   0
 
#define WTS_PROCESS_INFO_LEVEL_1   1
 
#define WTS_SERVER_INFO   WTS_SERVER_INFOA
 
#define PWTS_SERVER_INFO   PWTS_SERVER_INFOA
 
#define WTS_SESSION_INFO   WTS_SESSION_INFOA
 
#define PWTS_SESSION_INFO   PWTS_SESSION_INFOA
 
#define WTS_SESSION_INFO_1   WTS_SESSION_INFO_1A
 
#define PWTS_SESSION_INFO_1   PWTS_SESSION_INFO_1A
 
#define WTS_PROCESS_INFO   WTS_PROCESS_INFOA
 
#define PWTS_PROCESS_INFO   PWTS_PROCESS_INFOA
 
#define WTSCONFIGINFO   WTSCONFIGINFOA
 
#define PWTSCONFIGINFO   PWTSCONFIGINFOA
 
#define WTSINFO   WTSINFOA
 
#define PWTSINFO   PWTSINFOA
 
#define WTSINFOEX   WTSINFOEXA
 
#define PWTSINFOEX   PWTSINFOEXA
 
#define WTSINFOEX_LEVEL   WTSINFOEX_LEVEL_A
 
#define PWTSINFOEX_LEVEL   PWTSINFOEX_LEVEL_A
 
#define WTSINFOEX_LEVEL1   WTSINFOEX_LEVEL1_A
 
#define PWTSINFOEX_LEVEL1   PWTSINFOEX_LEVEL1_A
 
#define WTSCLIENT   WTSCLIENTA
 
#define PWTSCLIENT   PWTSCLIENTA
 
#define PRODUCT_INFO   PRODUCT_INFOA
 
#define WTS_VALIDATION_INFORMATION   WTS_VALIDATION_INFORMATIONA
 
#define PWTS_VALIDATION_INFORMATION   PWTS_VALIDATION_INFORMATIONA
 
#define WTSUSERCONFIG   WTSUSERCONFIGA
 
#define PWTSUSERCONFIG   PWTSUSERCONFIGA
 
#define WTS_PROCESS_INFO_EX   WTS_PROCESS_INFO_EXA
 
#define PWTS_PROCESS_INFO_EX   PWTS_PROCESS_INFO_EXA
 
#define WTSLISTENERNAME   WTSLISTENERNAMEA
 
#define PWTSLISTENERNAME   PWTSLISTENERNAMEA
 
#define WTSLISTENERCONFIG   WTSLISTENERCONFIGA
 
#define PWTSLISTENERCONFIG   PWTSLISTENERCONFIGA
 
#define REMOTECONTROL_FLAG_DISABLE_KEYBOARD   0x00000001
 
#define REMOTECONTROL_FLAG_DISABLE_MOUSE   0x00000002
 
#define REMOTECONTROL_FLAG_DISABLE_INPUT    REMOTECONTROL_FLAG_DISABLE_KEYBOARD | REMOTECONTROL_FLAG_DISABLE_MOUSE
 
#define WTSStartRemoteControlSession   WTSStartRemoteControlSessionA
 
#define WTSStartRemoteControlSessionEx   WTSStartRemoteControlSessionExA
 
#define WTSConnectSession   WTSConnectSessionA
 
#define WTSEnumerateServers   WTSEnumerateServersA
 
#define WTSOpenServer   WTSOpenServerA
 
#define WTSOpenServerEx   WTSOpenServerExA
 
#define WTSEnumerateSessions   WTSEnumerateSessionsA
 
#define WTSEnumerateSessionsEx   WTSEnumerateSessionsExA
 
#define WTSEnumerateProcesses   WTSEnumerateProcessesA
 
#define WTSQuerySessionInformation   WTSQuerySessionInformationA
 
#define WTSQueryUserConfig   WTSQueryUserConfigA
 
#define WTSSetUserConfig   WTSSetUserConfigA
 
#define WTSSendMessage   WTSSendMessageA
 
#define WTSFreeMemoryEx   WTSFreeMemoryExA
 
#define WTSEnumerateProcessesEx   WTSEnumerateProcessesExA
 
#define WTSEnumerateListeners   WTSEnumerateListenersA
 
#define WTSQueryListenerConfig   WTSQueryListenerConfigA
 
#define WTSCreateListener   WTSCreateListenerA
 
#define WTSSetListenerSecurity   WTSSetListenerSecurityA
 
#define WTSGetListenerSecurity   WTSGetListenerSecurityA
 

Typedefs

typedef CHANNEL_DEFPCHANNEL_DEF
 
typedef PCHANNEL_DEFPPCHANNEL_DEF
 
typedef VOID VCAPITYPE CHANNEL_INIT_EVENT_FN(LPVOID pInitHandle, UINT event, LPVOID pData, UINT dataLength)
 
typedef CHANNEL_INIT_EVENT_FNPCHANNEL_INIT_EVENT_FN
 
typedef VOID VCAPITYPE CHANNEL_INIT_EVENT_EX_FN(LPVOID lpUserParam, LPVOID pInitHandle, UINT event, LPVOID pData, UINT dataLength)
 
typedef CHANNEL_INIT_EVENT_EX_FNPCHANNEL_INIT_EVENT_EX_FN
 
typedef VOID VCAPITYPE CHANNEL_OPEN_EVENT_FN(DWORD openHandle, UINT event, LPVOID pData, UINT32 dataLength, UINT32 totalLength, UINT32 dataFlags)
 
typedef CHANNEL_OPEN_EVENT_FNPCHANNEL_OPEN_EVENT_FN
 
typedef VOID VCAPITYPE CHANNEL_OPEN_EVENT_EX_FN(LPVOID lpUserParam, DWORD openHandle, UINT event, LPVOID pData, UINT32 dataLength, UINT32 totalLength, UINT32 dataFlags)
 
typedef CHANNEL_OPEN_EVENT_EX_FNPCHANNEL_OPEN_EVENT_EX_FN
 
typedef UINT VCAPITYPE VIRTUALCHANNELINIT(LPVOID *ppInitHandle, PCHANNEL_DEF pChannel, INT channelCount, ULONG versionRequested, PCHANNEL_INIT_EVENT_FN pChannelInitEventProc)
 
typedef VIRTUALCHANNELINITPVIRTUALCHANNELINIT
 
typedef UINT VCAPITYPE VIRTUALCHANNELINITEX(LPVOID lpUserParam, LPVOID clientContext, LPVOID pInitHandle, PCHANNEL_DEF pChannel, INT channelCount, ULONG versionRequested, PCHANNEL_INIT_EVENT_EX_FN pChannelInitEventProcEx)
 
typedef VIRTUALCHANNELINITEXPVIRTUALCHANNELINITEX
 
typedef UINT VCAPITYPE VIRTUALCHANNELOPEN(LPVOID pInitHandle, LPDWORD pOpenHandle, PCHAR pChannelName, PCHANNEL_OPEN_EVENT_FN pChannelOpenEventProc)
 
typedef VIRTUALCHANNELOPENPVIRTUALCHANNELOPEN
 
typedef UINT VCAPITYPE VIRTUALCHANNELOPENEX(LPVOID pInitHandle, LPDWORD pOpenHandle, PCHAR pChannelName, PCHANNEL_OPEN_EVENT_EX_FN pChannelOpenEventProcEx)
 
typedef VIRTUALCHANNELOPENEXPVIRTUALCHANNELOPENEX
 
typedef UINT VCAPITYPE VIRTUALCHANNELCLOSE(DWORD openHandle)
 
typedef VIRTUALCHANNELCLOSEPVIRTUALCHANNELCLOSE
 
typedef UINT VCAPITYPE VIRTUALCHANNELCLOSEEX(LPVOID pInitHandle, DWORD openHandle)
 
typedef VIRTUALCHANNELCLOSEEXPVIRTUALCHANNELCLOSEEX
 
typedef UINT VCAPITYPE VIRTUALCHANNELWRITE(DWORD openHandle, LPVOID pData, ULONG dataLength, LPVOID pUserData)
 
typedef VIRTUALCHANNELWRITEPVIRTUALCHANNELWRITE
 
typedef UINT VCAPITYPE VIRTUALCHANNELWRITEEX(LPVOID pInitHandle, DWORD openHandle, LPVOID pData, ULONG dataLength, LPVOID pUserData)
 
typedef VIRTUALCHANNELWRITEEXPVIRTUALCHANNELWRITEEX
 
typedef BOOL VCAPITYPE VIRTUALCHANNELENTRY(PCHANNEL_ENTRY_POINTS pEntryPoints)
 
typedef VIRTUALCHANNELENTRYPVIRTUALCHANNELENTRY
 
typedef BOOL VCAPITYPE VIRTUALCHANNELENTRYEX(PCHANNEL_ENTRY_POINTS_EX pEntryPointsEx, PVOID pInitHandle)
 
typedef VIRTUALCHANNELENTRYEXPVIRTUALCHANNELENTRYEX
 
typedef HRESULT(VCAPITYPEPFNVCAPIGETINSTANCE) (REFIID refiid, PULONG pNumObjs, PVOID *ppObjArray)
 
typedef struct WTS_SERVER_INFOWPWTS_SERVER_INFOW
 
typedef struct WTS_SERVER_INFOAPWTS_SERVER_INFOA
 
typedef struct WTS_SESSION_INFOWPWTS_SESSION_INFOW
 
typedef struct WTS_SESSION_INFOAPWTS_SESSION_INFOA
 
typedef struct WTS_SESSION_INFO_1WPWTS_SESSION_INFO_1W
 
typedef struct WTS_SESSION_INFO_1APWTS_SESSION_INFO_1A
 
typedef struct WTS_PROCESS_INFOWPWTS_PROCESS_INFOW
 
typedef struct WTS_PROCESS_INFOAPWTS_PROCESS_INFOA
 
typedef struct WTSCONFIGINFOWPWTSCONFIGINFOW
 
typedef struct WTSCONFIGINFOAPWTSCONFIGINFOA
 
typedef struct WTSINFOWPWTSINFOW
 
typedef struct WTSINFOAPWTSINFOA
 
typedef struct WTSINFOEX_LEVEL1_WPWTSINFOEX_LEVEL1_W
 
typedef struct WTSINFOEX_LEVEL1_APWTSINFOEX_LEVEL1_A
 
typedef union WTSINFOEX_LEVEL_WPWTSINFOEX_LEVEL_W
 
typedef union WTSINFOEX_LEVEL_APWTSINFOEX_LEVEL_A
 
typedef struct WTSINFOEXWPWTSINFOEXW
 
typedef struct WTSINFOEXAPWTSINFOEXA
 
typedef struct WTSCLIENTWPWTSCLIENTW
 
typedef struct WTSCLIENTAPWTSCLIENTA
 
typedef struct WTS_VALIDATION_INFORMATIONAPWTS_VALIDATION_INFORMATIONA
 
typedef struct WTS_VALIDATION_INFORMATIONWPWTS_VALIDATION_INFORMATIONW
 
typedef struct WTS_CLIENT_ADDRESSPWTS_CLIENT_ADDRESS
 
typedef struct WTS_CLIENT_DISPLAYPWTS_CLIENT_DISPLAY
 
typedef struct WTSUSERCONFIGAPWTSUSERCONFIGA
 
typedef struct WTSUSERCONFIGWPWTSUSERCONFIGW
 
typedef struct WTS_SESSION_ADDRESSPWTS_SESSION_ADDRESS
 
typedef struct WTS_PROCESS_INFO_EXWPWTS_PROCESS_INFO_EXW
 
typedef struct WTS_PROCESS_INFO_EXAPWTS_PROCESS_INFO_EXA
 
typedef WCHAR WTSLISTENERNAMEW[WTS_LISTENER_NAME_LENGTH+1]
 
typedef WTSLISTENERNAMEWPWTSLISTENERNAMEW
 
typedef CHAR WTSLISTENERNAMEA[WTS_LISTENER_NAME_LENGTH+1]
 
typedef WTSLISTENERNAMEAPWTSLISTENERNAMEA
 
typedef struct WTSLISTENERCONFIGWPWTSLISTENERCONFIGW
 
typedef struct WTSLISTENERCONFIGAPWTSLISTENERCONFIGA
 
typedef BOOL(WINAPI * WTS_STOP_REMOTE_CONTROL_SESSION_FN) (ULONG LogonId)
 
typedef BOOL(WINAPI * WTS_START_REMOTE_CONTROL_SESSION_FN_W) (LPWSTR pTargetServerName, ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers)
 
typedef BOOL(WINAPI * WTS_START_REMOTE_CONTROL_SESSION_FN_A) (LPSTR pTargetServerName, ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers)
 
typedef BOOL(WINAPI * WTS_START_REMOTE_CONTROL_SESSION_EX_FN_W) (LPWSTR pTargetServerName, ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers, DWORD flags)
 
typedef BOOL(WINAPI * WTS_START_REMOTE_CONTROL_SESSION_EX_FN_A) (LPSTR pTargetServerName, ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers, DWORD flags)
 
typedef BOOL(WINAPI * WTS_CONNECT_SESSION_FN_W) (ULONG LogonId, ULONG TargetLogonId, PWSTR pPassword, BOOL bWait)
 
typedef BOOL(WINAPI * WTS_CONNECT_SESSION_FN_A) (ULONG LogonId, ULONG TargetLogonId, PSTR pPassword, BOOL bWait)
 
typedef BOOL(WINAPI * WTS_ENUMERATE_SERVERS_FN_W) (LPWSTR pDomainName, DWORD Reserved, DWORD Version, PWTS_SERVER_INFOW *ppServerInfo, DWORD *pCount)
 
typedef BOOL(WINAPI * WTS_ENUMERATE_SERVERS_FN_A) (LPSTR pDomainName, DWORD Reserved, DWORD Version, PWTS_SERVER_INFOA *ppServerInfo, DWORD *pCount)
 
typedef HANDLE(WINAPI * WTS_OPEN_SERVER_FN_W) (LPWSTR pServerName)
 
typedef HANDLE(WINAPI * WTS_OPEN_SERVER_FN_A) (LPSTR pServerName)
 
typedef HANDLE(WINAPI * WTS_OPEN_SERVER_EX_FN_W) (LPWSTR pServerName)
 
typedef HANDLE(WINAPI * WTS_OPEN_SERVER_EX_FN_A) (LPSTR pServerName)
 
typedef VOID(WINAPI * WTS_CLOSE_SERVER_FN) (HANDLE hServer)
 
typedef BOOL(WINAPI * WTS_ENUMERATE_SESSIONS_FN_W) (HANDLE hServer, DWORD Reserved, DWORD Version, PWTS_SESSION_INFOW *ppSessionInfo, DWORD *pCount)
 
typedef BOOL(WINAPI * WTS_ENUMERATE_SESSIONS_FN_A) (HANDLE hServer, DWORD Reserved, DWORD Version, PWTS_SESSION_INFOA *ppSessionInfo, DWORD *pCount)
 
typedef BOOL(WINAPI * WTS_ENUMERATE_SESSIONS_EX_FN_W) (HANDLE hServer, DWORD *pLevel, DWORD Filter, PWTS_SESSION_INFO_1W *ppSessionInfo, DWORD *pCount)
 
typedef BOOL(WINAPI * WTS_ENUMERATE_SESSIONS_EX_FN_A) (HANDLE hServer, DWORD *pLevel, DWORD Filter, PWTS_SESSION_INFO_1A *ppSessionInfo, DWORD *pCount)
 
typedef BOOL(WINAPI * WTS_ENUMERATE_PROCESSES_FN_W) (HANDLE hServer, DWORD Reserved, DWORD Version, PWTS_PROCESS_INFOW *ppProcessInfo, DWORD *pCount)
 
typedef BOOL(WINAPI * WTS_ENUMERATE_PROCESSES_FN_A) (HANDLE hServer, DWORD Reserved, DWORD Version, PWTS_PROCESS_INFOA *ppProcessInfo, DWORD *pCount)
 
typedef BOOL(WINAPI * WTS_TERMINATE_PROCESS_FN) (HANDLE hServer, DWORD ProcessId, DWORD ExitCode)
 
typedef BOOL(WINAPI * WTS_QUERY_SESSION_INFORMATION_FN_W) (HANDLE hServer, DWORD SessionId, WTS_INFO_CLASS WTSInfoClass, LPWSTR *ppBuffer, DWORD *pBytesReturned)
 
typedef BOOL(WINAPI * WTS_QUERY_SESSION_INFORMATION_FN_A) (HANDLE hServer, DWORD SessionId, WTS_INFO_CLASS WTSInfoClass, LPSTR *ppBuffer, DWORD *pBytesReturned)
 
typedef BOOL(WINAPI * WTS_QUERY_USER_CONFIG_FN_W) (LPWSTR pServerName, LPWSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPWSTR *ppBuffer, DWORD *pBytesReturned)
 
typedef BOOL(WINAPI * WTS_QUERY_USER_CONFIG_FN_A) (LPSTR pServerName, LPSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPSTR *ppBuffer, DWORD *pBytesReturned)
 
typedef BOOL(WINAPI * WTS_SET_USER_CONFIG_FN_W) (LPWSTR pServerName, LPWSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPWSTR pBuffer, DWORD DataLength)
 
typedef BOOL(WINAPI * WTS_SET_USER_CONFIG_FN_A) (LPSTR pServerName, LPSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPSTR pBuffer, DWORD DataLength)
 
typedef BOOL(WINAPI * WTS_SEND_MESSAGE_FN_W) (HANDLE hServer, DWORD SessionId, LPWSTR pTitle, DWORD TitleLength, LPWSTR pMessage, DWORD MessageLength, DWORD Style, DWORD Timeout, DWORD *pResponse, BOOL bWait)
 
typedef BOOL(WINAPI * WTS_SEND_MESSAGE_FN_A) (HANDLE hServer, DWORD SessionId, LPSTR pTitle, DWORD TitleLength, LPSTR pMessage, DWORD MessageLength, DWORD Style, DWORD Timeout, DWORD *pResponse, BOOL bWait)
 
typedef BOOL(WINAPI * WTS_DISCONNECT_SESSION_FN) (HANDLE hServer, DWORD SessionId, BOOL bWait)
 
typedef BOOL(WINAPI * WTS_LOGOFF_SESSION_FN) (HANDLE hServer, DWORD SessionId, BOOL bWait)
 
typedef BOOL(WINAPI * WTS_SHUTDOWN_SYSTEM_FN) (HANDLE hServer, DWORD ShutdownFlag)
 
typedef BOOL(WINAPI * WTS_WAIT_SYSTEM_EVENT_FN) (HANDLE hServer, DWORD EventMask, DWORD *pEventFlags)
 
typedef HANDLE(WINAPI * WTS_VIRTUAL_CHANNEL_OPEN_FN) (HANDLE hServer, DWORD SessionId, LPSTR pVirtualName)
 
typedef HANDLE(WINAPI * WTS_VIRTUAL_CHANNEL_OPEN_EX_FN) (DWORD SessionId, LPSTR pVirtualName, DWORD flags)
 
typedef BOOL(WINAPI * WTS_VIRTUAL_CHANNEL_CLOSE_FN) (HANDLE hChannelHandle)
 
typedef BOOL(WINAPI * WTS_VIRTUAL_CHANNEL_READ_FN) (HANDLE hChannelHandle, ULONG TimeOut, PCHAR Buffer, ULONG BufferSize, PULONG pBytesRead)
 
typedef BOOL(WINAPI * WTS_VIRTUAL_CHANNEL_WRITE_FN) (HANDLE hChannelHandle, PCHAR Buffer, ULONG Length, PULONG pBytesWritten)
 
typedef BOOL(WINAPI * WTS_VIRTUAL_CHANNEL_PURGE_INPUT_FN) (HANDLE hChannelHandle)
 
typedef BOOL(WINAPI * WTS_VIRTUAL_CHANNEL_PURGE_OUTPUT_FN) (HANDLE hChannelHandle)
 
typedef BOOL(WINAPI * WTS_VIRTUAL_CHANNEL_QUERY_FN) (HANDLE hChannelHandle, WTS_VIRTUAL_CLASS WtsVirtualClass, PVOID *ppBuffer, DWORD *pBytesReturned)
 
typedef VOID(WINAPI * WTS_FREE_MEMORY_FN) (PVOID pMemory)
 
typedef BOOL(WINAPI * WTS_REGISTER_SESSION_NOTIFICATION_FN) (HWND hWnd, DWORD dwFlags)
 
typedef BOOL(WINAPI * WTS_UNREGISTER_SESSION_NOTIFICATION_FN) (HWND hWnd)
 
typedef BOOL(WINAPI * WTS_REGISTER_SESSION_NOTIFICATION_EX_FN) (HANDLE hServer, HWND hWnd, DWORD dwFlags)
 
typedef BOOL(WINAPI * WTS_UNREGISTER_SESSION_NOTIFICATION_EX_FN) (HANDLE hServer, HWND hWnd)
 
typedef BOOL(WINAPI * WTS_QUERY_USER_TOKEN_FN) (ULONG SessionId, PHANDLE phToken)
 
typedef BOOL(WINAPI * WTS_FREE_MEMORY_EX_FN_W) (WTS_TYPE_CLASS WTSTypeClass, PVOID pMemory, ULONG NumberOfEntries)
 
typedef BOOL(WINAPI * WTS_FREE_MEMORY_EX_FN_A) (WTS_TYPE_CLASS WTSTypeClass, PVOID pMemory, ULONG NumberOfEntries)
 
typedef BOOL(WINAPI * WTS_ENUMERATE_PROCESSES_EX_FN_W) (HANDLE hServer, DWORD *pLevel, DWORD SessionId, LPWSTR *ppProcessInfo, DWORD *pCount)
 
typedef BOOL(WINAPI * WTS_ENUMERATE_PROCESSES_EX_FN_A) (HANDLE hServer, DWORD *pLevel, DWORD SessionId, LPSTR *ppProcessInfo, DWORD *pCount)
 
typedef BOOL(WINAPI * WTS_ENUMERATE_LISTENERS_FN_W) (HANDLE hServer, PVOID pReserved, DWORD Reserved, PWTSLISTENERNAMEW pListeners, DWORD *pCount)
 
typedef BOOL(WINAPI * WTS_ENUMERATE_LISTENERS_FN_A) (HANDLE hServer, PVOID pReserved, DWORD Reserved, PWTSLISTENERNAMEA pListeners, DWORD *pCount)
 
typedef BOOL(WINAPI * WTS_QUERY_LISTENER_CONFIG_FN_W) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPWSTR pListenerName, PWTSLISTENERCONFIGW pBuffer)
 
typedef BOOL(WINAPI * WTS_QUERY_LISTENER_CONFIG_FN_A) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPSTR pListenerName, PWTSLISTENERCONFIGA pBuffer)
 
typedef BOOL(WINAPI * WTS_CREATE_LISTENER_FN_W) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPWSTR pListenerName, PWTSLISTENERCONFIGW pBuffer, DWORD flag)
 
typedef BOOL(WINAPI * WTS_CREATE_LISTENER_FN_A) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPSTR pListenerName, PWTSLISTENERCONFIGA pBuffer, DWORD flag)
 
typedef BOOL(WINAPI * WTS_SET_LISTENER_SECURITY_FN_W) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPWSTR pListenerName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor)
 
typedef BOOL(WINAPI * WTS_SET_LISTENER_SECURITY_FN_A) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPSTR pListenerName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor)
 
typedef BOOL(WINAPI * WTS_GET_LISTENER_SECURITY_FN_W) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPWSTR pListenerName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor, DWORD nLength, LPDWORD lpnLengthNeeded)
 
typedef BOOL(WINAPI * WTS_GET_LISTENER_SECURITY_FN_A) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPSTR pListenerName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor, DWORD nLength, LPDWORD lpnLengthNeeded)
 
typedef BOOL(CDECL * WTS_ENABLE_CHILD_SESSIONS_FN) (BOOL bEnable)
 
typedef BOOL(CDECL * WTS_IS_CHILD_SESSIONS_ENABLED_FN) (PBOOL pbEnabled)
 
typedef BOOL(CDECL * WTS_GET_CHILD_SESSION_ID_FN) (PULONG pSessionId)
 
typedef DWORD(WINAPI * WTS_GET_ACTIVE_CONSOLE_SESSION_ID_FN) (void)
 
typedef BOOL(WINAPI * WTS_LOGON_USER_FN) (HANDLE hServer, LPCSTR username, LPCSTR password, LPCSTR domain)
 
typedef BOOL(WINAPI * WTS_LOGOFF_USER_FN) (HANDLE hServer)
 
typedef WtsApiFunctionTablePWtsApiFunctionTable
 
typedef const WtsApiFunctionTable *(CDECL * INIT_WTSAPI_FN) (void)
 

Enumerations

enum  WTS_CONNECTSTATE_CLASS {
  WTSActive , WTSConnected , WTSConnectQuery , WTSShadow ,
  WTSDisconnected , WTSIdle , WTSListen , WTSReset ,
  WTSDown , WTSInit
}
 
enum  WTS_INFO_CLASS {
  WTSInitialProgram , WTSApplicationName , WTSWorkingDirectory , WTSOEMId ,
  WTSSessionId , WTSUserName , WTSWinStationName , WTSDomainName ,
  WTSConnectState , WTSClientBuildNumber , WTSClientName , WTSClientDirectory ,
  WTSClientProductId , WTSClientHardwareId , WTSClientAddress , WTSClientDisplay ,
  WTSClientProtocolType , WTSIdleTime , WTSLogonTime , WTSIncomingBytes ,
  WTSOutgoingBytes , WTSIncomingFrames , WTSOutgoingFrames , WTSClientInfo ,
  WTSSessionInfo , WTSSessionInfoEx , WTSConfigInfo , WTSValidationInfo ,
  WTSSessionAddressV4 , WTSIsRemoteSession
}
 
enum  WTS_CONFIG_CLASS {
  WTSUserConfigInitialProgram , WTSUserConfigWorkingDirectory , WTSUserConfigfInheritInitialProgram , WTSUserConfigfAllowLogonTerminalServer ,
  WTSUserConfigTimeoutSettingsConnections , WTSUserConfigTimeoutSettingsDisconnections , WTSUserConfigTimeoutSettingsIdle , WTSUserConfigfDeviceClientDrives ,
  WTSUserConfigfDeviceClientPrinters , WTSUserConfigfDeviceClientDefaultPrinter , WTSUserConfigBrokenTimeoutSettings , WTSUserConfigReconnectSettings ,
  WTSUserConfigModemCallbackSettings , WTSUserConfigModemCallbackPhoneNumber , WTSUserConfigShadowingSettings , WTSUserConfigTerminalServerProfilePath ,
  WTSUserConfigTerminalServerHomeDir , WTSUserConfigTerminalServerHomeDirDrive , WTSUserConfigfTerminalServerRemoteHomeDir , WTSUserConfigUser
}
 
enum  WTS_CONFIG_SOURCE { WTSUserConfigSourceSAM }
 
enum  WTS_VIRTUAL_CLASS {
  WTSVirtualClientData , WTSVirtualFileHandle , WTSVirtualEventHandle , WTSVirtualChannelReady ,
  WTSVirtualChannelOpenStatus
}
 
enum  WTS_TYPE_CLASS { WTSTypeProcessInfoLevel0 , WTSTypeProcessInfoLevel1 , WTSTypeSessionInfoLevel1 }
 

Functions

WINPR_API BOOL WINAPI WTSStopRemoteControlSession (ULONG LogonId)
 
WINPR_API BOOL WINAPI WTSStartRemoteControlSessionW (LPWSTR pTargetServerName, ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers)
 
WINPR_API BOOL WINAPI WTSStartRemoteControlSessionA (LPSTR pTargetServerName, ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers)
 
WINPR_API BOOL WINAPI WTSStartRemoteControlSessionExW (LPWSTR pTargetServerName, ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers, DWORD flags)
 
WINPR_API BOOL WINAPI WTSStartRemoteControlSessionExA (LPSTR pTargetServerName, ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers, DWORD flags)
 
WINPR_API BOOL WINAPI WTSConnectSessionW (ULONG LogonId, ULONG TargetLogonId, PWSTR pPassword, BOOL bWait)
 
WINPR_API BOOL WINAPI WTSConnectSessionA (ULONG LogonId, ULONG TargetLogonId, PSTR pPassword, BOOL bWait)
 
WINPR_API BOOL WINAPI WTSEnumerateServersW (LPWSTR pDomainName, DWORD Reserved, DWORD Version, PWTS_SERVER_INFOW *ppServerInfo, DWORD *pCount)
 
WINPR_API BOOL WINAPI WTSEnumerateServersA (LPSTR pDomainName, DWORD Reserved, DWORD Version, PWTS_SERVER_INFOA *ppServerInfo, DWORD *pCount)
 
WINPR_API VOID WINAPI WTSCloseServer (HANDLE hServer)
 
WINPR_API HANDLE WINAPI WTSOpenServerW (LPWSTR pServerName)
 
WINPR_API HANDLE WINAPI WTSOpenServerA (LPSTR pServerName)
 
WINPR_API HANDLE WINAPI WTSOpenServerExW (LPWSTR pServerName)
 
WINPR_API HANDLE WINAPI WTSOpenServerExA (LPSTR pServerName)
 
WINPR_API BOOL WINAPI WTSEnumerateSessionsW (HANDLE hServer, DWORD Reserved, DWORD Version, PWTS_SESSION_INFOW *ppSessionInfo, DWORD *pCount)
 
WINPR_API BOOL WINAPI WTSEnumerateSessionsA (HANDLE hServer, DWORD Reserved, DWORD Version, PWTS_SESSION_INFOA *ppSessionInfo, DWORD *pCount)
 
WINPR_API BOOL WINAPI WTSEnumerateSessionsExW (HANDLE hServer, DWORD *pLevel, DWORD Filter, PWTS_SESSION_INFO_1W *ppSessionInfo, DWORD *pCount)
 
WINPR_API BOOL WINAPI WTSEnumerateSessionsExA (HANDLE hServer, DWORD *pLevel, DWORD Filter, PWTS_SESSION_INFO_1A *ppSessionInfo, DWORD *pCount)
 
WINPR_API BOOL WINAPI WTSEnumerateProcessesW (HANDLE hServer, DWORD Reserved, DWORD Version, PWTS_PROCESS_INFOW *ppProcessInfo, DWORD *pCount)
 
WINPR_API BOOL WINAPI WTSEnumerateProcessesA (HANDLE hServer, DWORD Reserved, DWORD Version, PWTS_PROCESS_INFOA *ppProcessInfo, DWORD *pCount)
 
WINPR_API BOOL WINAPI WTSTerminateProcess (HANDLE hServer, DWORD ProcessId, DWORD ExitCode)
 
WINPR_API BOOL WINAPI WTSQuerySessionInformationW (HANDLE hServer, DWORD SessionId, WTS_INFO_CLASS WTSInfoClass, LPWSTR *ppBuffer, DWORD *pBytesReturned)
 
WINPR_API BOOL WINAPI WTSQuerySessionInformationA (HANDLE hServer, DWORD SessionId, WTS_INFO_CLASS WTSInfoClass, LPSTR *ppBuffer, DWORD *pBytesReturned)
 
WINPR_API BOOL WINAPI WTSQueryUserConfigW (LPWSTR pServerName, LPWSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPWSTR *ppBuffer, DWORD *pBytesReturned)
 
WINPR_API BOOL WINAPI WTSQueryUserConfigA (LPSTR pServerName, LPSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPSTR *ppBuffer, DWORD *pBytesReturned)
 
WINPR_API BOOL WINAPI WTSSetUserConfigW (LPWSTR pServerName, LPWSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPWSTR pBuffer, DWORD DataLength)
 
WINPR_API BOOL WINAPI WTSSetUserConfigA (LPSTR pServerName, LPSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPSTR pBuffer, DWORD DataLength)
 
WINPR_API BOOL WINAPI WTSSendMessageW (HANDLE hServer, DWORD SessionId, LPWSTR pTitle, DWORD TitleLength, LPWSTR pMessage, DWORD MessageLength, DWORD Style, DWORD Timeout, DWORD *pResponse, BOOL bWait)
 
WINPR_API BOOL WINAPI WTSSendMessageA (HANDLE hServer, DWORD SessionId, LPSTR pTitle, DWORD TitleLength, LPSTR pMessage, DWORD MessageLength, DWORD Style, DWORD Timeout, DWORD *pResponse, BOOL bWait)
 
WINPR_API BOOL WINAPI WTSDisconnectSession (HANDLE hServer, DWORD SessionId, BOOL bWait)
 
WINPR_API BOOL WINAPI WTSLogoffSession (HANDLE hServer, DWORD SessionId, BOOL bWait)
 
WINPR_API BOOL WINAPI WTSShutdownSystem (HANDLE hServer, DWORD ShutdownFlag)
 
WINPR_API BOOL WINAPI WTSWaitSystemEvent (HANDLE hServer, DWORD EventMask, DWORD *pEventFlags)
 
WINPR_API HANDLE WINAPI WTSVirtualChannelOpen (HANDLE hServer, DWORD SessionId, LPSTR pVirtualName)
 
WINPR_API HANDLE WINAPI WTSVirtualChannelOpenEx (DWORD SessionId, LPSTR pVirtualName, DWORD flags)
 
WINPR_API BOOL WINAPI WTSVirtualChannelClose (HANDLE hChannelHandle)
 
WINPR_API BOOL WINAPI WTSVirtualChannelRead (HANDLE hChannelHandle, ULONG TimeOut, PCHAR Buffer, ULONG BufferSize, PULONG pBytesRead)
 
WINPR_API BOOL WINAPI WTSVirtualChannelWrite (HANDLE hChannelHandle, PCHAR Buffer, ULONG Length, PULONG pBytesWritten)
 
WINPR_API BOOL WINAPI WTSVirtualChannelPurgeInput (HANDLE hChannelHandle)
 
WINPR_API BOOL WINAPI WTSVirtualChannelPurgeOutput (HANDLE hChannelHandle)
 
WINPR_API BOOL WINAPI WTSVirtualChannelQuery (HANDLE hChannelHandle, WTS_VIRTUAL_CLASS WtsVirtualClass, PVOID *ppBuffer, DWORD *pBytesReturned)
 
WINPR_API VOID WINAPI WTSFreeMemory (PVOID pMemory)
 
WINPR_API BOOL WINAPI WTSRegisterSessionNotification (HWND hWnd, DWORD dwFlags)
 
WINPR_API BOOL WINAPI WTSUnRegisterSessionNotification (HWND hWnd)
 
WINPR_API BOOL WINAPI WTSRegisterSessionNotificationEx (HANDLE hServer, HWND hWnd, DWORD dwFlags)
 
WINPR_API BOOL WINAPI WTSUnRegisterSessionNotificationEx (HANDLE hServer, HWND hWnd)
 
WINPR_API BOOL WINAPI WTSQueryUserToken (ULONG SessionId, PHANDLE phToken)
 
WINPR_API BOOL WINAPI WTSFreeMemoryExW (WTS_TYPE_CLASS WTSTypeClass, PVOID pMemory, ULONG NumberOfEntries)
 
WINPR_API BOOL WINAPI WTSFreeMemoryExA (WTS_TYPE_CLASS WTSTypeClass, PVOID pMemory, ULONG NumberOfEntries)
 
WINPR_API BOOL WINAPI WTSEnumerateProcessesExW (HANDLE hServer, DWORD *pLevel, DWORD SessionId, LPWSTR *ppProcessInfo, DWORD *pCount)
 
WINPR_API BOOL WINAPI WTSEnumerateProcessesExA (HANDLE hServer, DWORD *pLevel, DWORD SessionId, LPSTR *ppProcessInfo, DWORD *pCount)
 
WINPR_API BOOL WINAPI WTSEnumerateListenersW (HANDLE hServer, PVOID pReserved, DWORD Reserved, PWTSLISTENERNAMEW pListeners, DWORD *pCount)
 
WINPR_API BOOL WINAPI WTSEnumerateListenersA (HANDLE hServer, PVOID pReserved, DWORD Reserved, PWTSLISTENERNAMEA pListeners, DWORD *pCount)
 
WINPR_API BOOL WINAPI WTSQueryListenerConfigW (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPWSTR pListenerName, PWTSLISTENERCONFIGW pBuffer)
 
WINPR_API BOOL WINAPI WTSQueryListenerConfigA (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPSTR pListenerName, PWTSLISTENERCONFIGA pBuffer)
 
WINPR_API BOOL WINAPI WTSCreateListenerW (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPWSTR pListenerName, PWTSLISTENERCONFIGW pBuffer, DWORD flag)
 
WINPR_API BOOL WINAPI WTSCreateListenerA (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPSTR pListenerName, PWTSLISTENERCONFIGA pBuffer, DWORD flag)
 
WINPR_API BOOL WINAPI WTSSetListenerSecurityW (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPWSTR pListenerName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor)
 
WINPR_API BOOL WINAPI WTSSetListenerSecurityA (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPSTR pListenerName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor)
 
WINPR_API BOOL WINAPI WTSGetListenerSecurityW (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPWSTR pListenerName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor, DWORD nLength, LPDWORD lpnLengthNeeded)
 
WINPR_API BOOL WINAPI WTSGetListenerSecurityA (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPSTR pListenerName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor, DWORD nLength, LPDWORD lpnLengthNeeded)
 
WINPR_API BOOL CDECL WTSEnableChildSessions (BOOL bEnable)
 
WINPR_API BOOL CDECL WTSIsChildSessionsEnabled (PBOOL pbEnabled)
 
WINPR_API BOOL CDECL WTSGetChildSessionId (PULONG pSessionId)
 
WINPR_API BOOL CDECL WTSLogonUser (HANDLE hServer, LPCSTR username, LPCSTR password, LPCSTR domain)
 
WINPR_API BOOL CDECL WTSLogoffUser (HANDLE hServer)
 
WINPR_API DWORD WINAPI WTSGetActiveConsoleSessionId (void)
 
WINPR_API BOOL WTSRegisterWtsApiFunctionTable (const WtsApiFunctionTable *table)
 
WINPR_API const CHAR * WTSErrorToString (UINT error)
 
WINPR_API const CHAR * WTSSessionStateToString (WTS_CONNECTSTATE_CLASS state)
 

Macro Definition Documentation

◆ CHANNEL_CHUNK_LENGTH

#define CHANNEL_CHUNK_LENGTH   1600

Virtual Channel Protocol (pchannel.h)

◆ CHANNEL_CHUNK_MAX_LENGTH

#define CHANNEL_CHUNK_MAX_LENGTH   16256

WinPR: Windows Portable Runtime Windows Terminal Services API

Copyright 2013 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2015 DI (FH) Martin Haimberger marti.nosp@m.n.ha.nosp@m.imber.nosp@m.ger@.nosp@m.thinc.nosp@m.ast..nosp@m.com Copyright 2015 Copyright 2015 Thincast Technologies GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

◆ CHANNEL_EVENT_ATTACHED

#define CHANNEL_EVENT_ATTACHED   7

◆ CHANNEL_EVENT_CONNECTED

#define CHANNEL_EVENT_CONNECTED   1

◆ CHANNEL_EVENT_DATA_RECEIVED

#define CHANNEL_EVENT_DATA_RECEIVED   10

◆ CHANNEL_EVENT_DETACHED

#define CHANNEL_EVENT_DETACHED   8

◆ CHANNEL_EVENT_DISCONNECTED

#define CHANNEL_EVENT_DISCONNECTED   3

◆ CHANNEL_EVENT_INITIALIZED

#define CHANNEL_EVENT_INITIALIZED   0

◆ CHANNEL_EVENT_REMOTE_CONTROL_START

#define CHANNEL_EVENT_REMOTE_CONTROL_START   5

◆ CHANNEL_EVENT_REMOTE_CONTROL_STOP

#define CHANNEL_EVENT_REMOTE_CONTROL_STOP   6

◆ CHANNEL_EVENT_TERMINATED

#define CHANNEL_EVENT_TERMINATED   4

◆ CHANNEL_EVENT_V1_CONNECTED

#define CHANNEL_EVENT_V1_CONNECTED   2

◆ CHANNEL_EVENT_WRITE_CANCELLED

#define CHANNEL_EVENT_WRITE_CANCELLED   12

◆ CHANNEL_EVENT_WRITE_COMPLETE

#define CHANNEL_EVENT_WRITE_COMPLETE   11

◆ CHANNEL_FLAG_FAIL

#define CHANNEL_FLAG_FAIL   0x100

◆ CHANNEL_FLAG_FIRST

#define CHANNEL_FLAG_FIRST   0x01

◆ CHANNEL_FLAG_LAST

#define CHANNEL_FLAG_LAST   0x02

◆ CHANNEL_FLAG_MIDDLE

#define CHANNEL_FLAG_MIDDLE   0

◆ CHANNEL_FLAG_ONLY

#define CHANNEL_FLAG_ONLY   (CHANNEL_FLAG_FIRST | CHANNEL_FLAG_LAST)

◆ CHANNEL_FLAG_RESUME

#define CHANNEL_FLAG_RESUME   0x40

◆ CHANNEL_FLAG_SHADOW_PERSISTENT

#define CHANNEL_FLAG_SHADOW_PERSISTENT   0x80

◆ CHANNEL_FLAG_SHOW_PROTOCOL

#define CHANNEL_FLAG_SHOW_PROTOCOL   0x10

These channel flags are defined in some versions of pchannel.h only

◆ CHANNEL_FLAG_SUSPEND

#define CHANNEL_FLAG_SUSPEND   0x20

◆ CHANNEL_MAX_COUNT

#define CHANNEL_MAX_COUNT   31

◆ CHANNEL_NAME_LEN

#define CHANNEL_NAME_LEN   7

◆ CHANNEL_OPTION_COMPRESS

#define CHANNEL_OPTION_COMPRESS   0x00400000

◆ CHANNEL_OPTION_COMPRESS_RDP

#define CHANNEL_OPTION_COMPRESS_RDP   0x00800000

◆ CHANNEL_OPTION_ENCRYPT_CS

#define CHANNEL_OPTION_ENCRYPT_CS   0x10000000

◆ CHANNEL_OPTION_ENCRYPT_RDP

#define CHANNEL_OPTION_ENCRYPT_RDP   0x40000000

◆ CHANNEL_OPTION_ENCRYPT_SC

#define CHANNEL_OPTION_ENCRYPT_SC   0x20000000

◆ CHANNEL_OPTION_INITIALIZED

#define CHANNEL_OPTION_INITIALIZED   0x80000000

◆ CHANNEL_OPTION_PRI_HIGH

#define CHANNEL_OPTION_PRI_HIGH   0x08000000

◆ CHANNEL_OPTION_PRI_LOW

#define CHANNEL_OPTION_PRI_LOW   0x02000000

◆ CHANNEL_OPTION_PRI_MED

#define CHANNEL_OPTION_PRI_MED   0x04000000

◆ CHANNEL_OPTION_REMOTE_CONTROL_PERSISTENT

#define CHANNEL_OPTION_REMOTE_CONTROL_PERSISTENT   0x00100000

◆ CHANNEL_OPTION_SHOW_PROTOCOL

#define CHANNEL_OPTION_SHOW_PROTOCOL   0x00200000

◆ CHANNEL_PDU_LENGTH

#define CHANNEL_PDU_LENGTH   (CHANNEL_CHUNK_LENGTH + sizeof(CHANNEL_PDU_HEADER))

◆ CHANNEL_RC_ALREADY_CONNECTED

#define CHANNEL_RC_ALREADY_CONNECTED   3

◆ CHANNEL_RC_ALREADY_INITIALIZED

#define CHANNEL_RC_ALREADY_INITIALIZED   1

◆ CHANNEL_RC_ALREADY_OPEN

#define CHANNEL_RC_ALREADY_OPEN   14

◆ CHANNEL_RC_BAD_CHANNEL

#define CHANNEL_RC_BAD_CHANNEL   6

◆ CHANNEL_RC_BAD_CHANNEL_HANDLE

#define CHANNEL_RC_BAD_CHANNEL_HANDLE   7

◆ CHANNEL_RC_BAD_INIT_HANDLE

#define CHANNEL_RC_BAD_INIT_HANDLE   9

◆ CHANNEL_RC_BAD_PROC

#define CHANNEL_RC_BAD_PROC   11

◆ CHANNEL_RC_INITIALIZATION_ERROR

#define CHANNEL_RC_INITIALIZATION_ERROR   20

◆ CHANNEL_RC_INVALID_INSTANCE

#define CHANNEL_RC_INVALID_INSTANCE   18

◆ CHANNEL_RC_NO_BUFFER

#define CHANNEL_RC_NO_BUFFER   8

◆ CHANNEL_RC_NO_MEMORY

#define CHANNEL_RC_NO_MEMORY   12

◆ CHANNEL_RC_NOT_CONNECTED

#define CHANNEL_RC_NOT_CONNECTED   4

◆ CHANNEL_RC_NOT_IN_VIRTUALCHANNELENTRY

#define CHANNEL_RC_NOT_IN_VIRTUALCHANNELENTRY   15

◆ CHANNEL_RC_NOT_INITIALIZED

#define CHANNEL_RC_NOT_INITIALIZED   2

◆ CHANNEL_RC_NOT_OPEN

#define CHANNEL_RC_NOT_OPEN   10

◆ CHANNEL_RC_NULL_DATA

#define CHANNEL_RC_NULL_DATA   16

◆ CHANNEL_RC_OK

#define CHANNEL_RC_OK   0

◆ CHANNEL_RC_TOO_MANY_CHANNELS

#define CHANNEL_RC_TOO_MANY_CHANNELS   5

◆ CHANNEL_RC_UNKNOWN_CHANNEL_NAME

#define CHANNEL_RC_UNKNOWN_CHANNEL_NAME   13

◆ CHANNEL_RC_UNSUPPORTED_VERSION

#define CHANNEL_RC_UNSUPPORTED_VERSION   19

◆ CHANNEL_RC_ZERO_LENGTH

#define CHANNEL_RC_ZERO_LENGTH   17

◆ CLIENTADDRESS_LENGTH

#define CLIENTADDRESS_LENGTH   30

◆ CLIENTNAME_LENGTH

#define CLIENTNAME_LENGTH   20

◆ DOMAIN_LENGTH

#define DOMAIN_LENGTH   17

◆ IDASYNC

#define IDASYNC   32001

◆ IDTIMEOUT

#define IDTIMEOUT   32000

◆ MAX_DATE_TIME_LENGTH

#define MAX_DATE_TIME_LENGTH   56

◆ MAX_ELAPSED_TIME_LENGTH

#define MAX_ELAPSED_TIME_LENGTH   15

◆ NOTIFY_FOR_ALL_SESSIONS

#define NOTIFY_FOR_ALL_SESSIONS   1

◆ NOTIFY_FOR_THIS_SESSION

#define NOTIFY_FOR_THIS_SESSION   0

◆ PRODUCT_INFO

#define PRODUCT_INFO   PRODUCT_INFOA

◆ PRODUCTINFO_COMPANYNAME_LENGTH

#define PRODUCTINFO_COMPANYNAME_LENGTH   256

◆ PRODUCTINFO_PRODUCTID_LENGTH

#define PRODUCTINFO_PRODUCTID_LENGTH   4

◆ PWTS_PROCESS_INFO

#define PWTS_PROCESS_INFO   PWTS_PROCESS_INFOA

◆ PWTS_PROCESS_INFO_EX

#define PWTS_PROCESS_INFO_EX   PWTS_PROCESS_INFO_EXA

◆ PWTS_SERVER_INFO

#define PWTS_SERVER_INFO   PWTS_SERVER_INFOA

◆ PWTS_SESSION_INFO

#define PWTS_SESSION_INFO   PWTS_SESSION_INFOA

◆ PWTS_SESSION_INFO_1

#define PWTS_SESSION_INFO_1   PWTS_SESSION_INFO_1A

◆ PWTS_VALIDATION_INFORMATION

#define PWTS_VALIDATION_INFORMATION   PWTS_VALIDATION_INFORMATIONA

◆ PWTSCLIENT

#define PWTSCLIENT   PWTSCLIENTA

◆ PWTSCONFIGINFO

#define PWTSCONFIGINFO   PWTSCONFIGINFOA

◆ PWTSINFO

#define PWTSINFO   PWTSINFOA

◆ PWTSINFOEX

#define PWTSINFOEX   PWTSINFOEXA

◆ PWTSINFOEX_LEVEL

#define PWTSINFOEX_LEVEL   PWTSINFOEX_LEVEL_A

◆ PWTSINFOEX_LEVEL1

#define PWTSINFOEX_LEVEL1   PWTSINFOEX_LEVEL1_A

◆ PWTSLISTENERCONFIG

#define PWTSLISTENERCONFIG   PWTSLISTENERCONFIGA

◆ PWTSLISTENERNAME

#define PWTSLISTENERNAME   PWTSLISTENERNAMEA

◆ PWTSUSERCONFIG

#define PWTSUSERCONFIG   PWTSUSERCONFIGA

◆ REMOTECONTROL_FLAG_DISABLE_INPUT

#define REMOTECONTROL_FLAG_DISABLE_INPUT    REMOTECONTROL_FLAG_DISABLE_KEYBOARD | REMOTECONTROL_FLAG_DISABLE_MOUSE

◆ REMOTECONTROL_FLAG_DISABLE_KEYBOARD

#define REMOTECONTROL_FLAG_DISABLE_KEYBOARD   0x00000001

◆ REMOTECONTROL_FLAG_DISABLE_MOUSE

#define REMOTECONTROL_FLAG_DISABLE_MOUSE   0x00000002

◆ REMOTECONTROL_KBDALT_HOTKEY

#define REMOTECONTROL_KBDALT_HOTKEY   0x4

◆ REMOTECONTROL_KBDCTRL_HOTKEY

#define REMOTECONTROL_KBDCTRL_HOTKEY   0x2

◆ REMOTECONTROL_KBDSHIFT_HOTKEY

#define REMOTECONTROL_KBDSHIFT_HOTKEY   0x1

◆ USERNAME_LENGTH

#define USERNAME_LENGTH   20

◆ VALIDATIONINFORMATION_HARDWAREID_LENGTH

#define VALIDATIONINFORMATION_HARDWAREID_LENGTH   20

◆ VALIDATIONINFORMATION_LICENSE_LENGTH

#define VALIDATIONINFORMATION_LICENSE_LENGTH   16384

◆ VCAPITYPE

#define VCAPITYPE   CALLBACK

Virtual Channel Client API (cchannel.h)

◆ VCEXPORT

#define VCEXPORT   __export

◆ VIRTUAL_CHANNEL_VERSION_WIN2000

#define VIRTUAL_CHANNEL_VERSION_WIN2000   1

◆ WINSTATIONNAME_LENGTH

#define WINSTATIONNAME_LENGTH   32

◆ WTS_ANY_SESSION

#define WTS_ANY_SESSION   ((DWORD)-2)

◆ WTS_CHANNEL_OPTION_DYNAMIC

#define WTS_CHANNEL_OPTION_DYNAMIC   0x00000001

◆ WTS_CHANNEL_OPTION_DYNAMIC_NO_COMPRESS

#define WTS_CHANNEL_OPTION_DYNAMIC_NO_COMPRESS   0x00000008

◆ WTS_CHANNEL_OPTION_DYNAMIC_PRI_HIGH

#define WTS_CHANNEL_OPTION_DYNAMIC_PRI_HIGH   0x00000004

◆ WTS_CHANNEL_OPTION_DYNAMIC_PRI_LOW

#define WTS_CHANNEL_OPTION_DYNAMIC_PRI_LOW   0x00000000

◆ WTS_CHANNEL_OPTION_DYNAMIC_PRI_MED

#define WTS_CHANNEL_OPTION_DYNAMIC_PRI_MED   0x00000002

◆ WTS_CHANNEL_OPTION_DYNAMIC_PRI_REAL

#define WTS_CHANNEL_OPTION_DYNAMIC_PRI_REAL   0x00000006

◆ WTS_COMMENT_LENGTH

#define WTS_COMMENT_LENGTH   60

◆ WTS_CURRENT_SERVER

#define WTS_CURRENT_SERVER   ((HANDLE)NULL)

Windows Terminal Services API (wtsapi32.h)

◆ WTS_CURRENT_SERVER_HANDLE

#define WTS_CURRENT_SERVER_HANDLE   ((HANDLE)NULL)

◆ WTS_CURRENT_SERVER_NAME

#define WTS_CURRENT_SERVER_NAME   (NULL)

◆ WTS_CURRENT_SESSION

#define WTS_CURRENT_SESSION   ((DWORD)-1)

◆ WTS_DRIVE_LENGTH

#define WTS_DRIVE_LENGTH   3

◆ WTS_EVENT_ALL

#define WTS_EVENT_ALL   0x7FFFFFFF

◆ WTS_EVENT_CONNECT

#define WTS_EVENT_CONNECT   0x00000008

◆ WTS_EVENT_CREATE

#define WTS_EVENT_CREATE   0x00000001

◆ WTS_EVENT_DELETE

#define WTS_EVENT_DELETE   0x00000002

◆ WTS_EVENT_DISCONNECT

#define WTS_EVENT_DISCONNECT   0x00000010

◆ WTS_EVENT_FLUSH

#define WTS_EVENT_FLUSH   0x80000000

◆ WTS_EVENT_LICENSE

#define WTS_EVENT_LICENSE   0x00000100

◆ WTS_EVENT_LOGOFF

#define WTS_EVENT_LOGOFF   0x00000040

◆ WTS_EVENT_LOGON

#define WTS_EVENT_LOGON   0x00000020

◆ WTS_EVENT_NONE

#define WTS_EVENT_NONE   0x00000000

◆ WTS_EVENT_RENAME

#define WTS_EVENT_RENAME   0x00000004

◆ WTS_EVENT_STATECHANGE

#define WTS_EVENT_STATECHANGE   0x00000080

◆ WTS_LISTENER_CREATE

#define WTS_LISTENER_CREATE   0x00000001

◆ WTS_LISTENER_NAME_LENGTH

#define WTS_LISTENER_NAME_LENGTH   32

◆ WTS_LISTENER_UPDATE

#define WTS_LISTENER_UPDATE   0x00000010

◆ WTS_PROCESS_INFO

#define WTS_PROCESS_INFO   WTS_PROCESS_INFOA

◆ WTS_PROCESS_INFO_EX

#define WTS_PROCESS_INFO_EX   WTS_PROCESS_INFO_EXA

◆ WTS_PROCESS_INFO_LEVEL_0

#define WTS_PROCESS_INFO_LEVEL_0   0

◆ WTS_PROCESS_INFO_LEVEL_1

#define WTS_PROCESS_INFO_LEVEL_1   1

◆ WTS_PROTOCOL_TYPE_CONSOLE

#define WTS_PROTOCOL_TYPE_CONSOLE   0

◆ WTS_PROTOCOL_TYPE_ICA

#define WTS_PROTOCOL_TYPE_ICA   1

◆ WTS_PROTOCOL_TYPE_RDP

#define WTS_PROTOCOL_TYPE_RDP   2

◆ WTS_SECURITY_ALL_ACCESS

#define WTS_SECURITY_ALL_ACCESS
Value:
#define STANDARD_RIGHTS_REQUIRED
Definition: nt.h:1510
#define WTS_SECURITY_REMOTE_CONTROL
Definition: wtsapi.h:299
#define WTS_SECURITY_SET_INFORMATION
Definition: wtsapi.h:296
#define WTS_SECURITY_VIRTUAL_CHANNELS
Definition: wtsapi.h:298
#define WTS_SECURITY_MESSAGE
Definition: wtsapi.h:302
#define WTS_SECURITY_CONNECT
Definition: wtsapi.h:303
#define WTS_SECURITY_DISCONNECT
Definition: wtsapi.h:304
#define WTS_SECURITY_QUERY_INFORMATION
Definition: wtsapi.h:295

◆ WTS_SECURITY_CONNECT

#define WTS_SECURITY_CONNECT   0x00000100

◆ WTS_SECURITY_CURRENT_GUEST_ACCESS

#define WTS_SECURITY_CURRENT_GUEST_ACCESS   (WTS_SECURITY_VIRTUAL_CHANNELS | WTS_SECURITY_LOGOFF)

◆ WTS_SECURITY_CURRENT_USER_ACCESS

#define WTS_SECURITY_CURRENT_USER_ACCESS
Value:
WTS_SECURITY_LOGOFF WTS_SECURITY_DISCONNECT)
#define WTS_SECURITY_RESET
Definition: wtsapi.h:297

◆ WTS_SECURITY_DISCONNECT

#define WTS_SECURITY_DISCONNECT   0x00000200

◆ WTS_SECURITY_GUEST_ACCESS

#define WTS_SECURITY_GUEST_ACCESS   (WTS_SECURITY_LOGON)

◆ WTS_SECURITY_LOGOFF

#define WTS_SECURITY_LOGOFF   0x00000040

◆ WTS_SECURITY_LOGON

#define WTS_SECURITY_LOGON   0x00000020

◆ WTS_SECURITY_MESSAGE

#define WTS_SECURITY_MESSAGE   0x00000080

◆ WTS_SECURITY_QUERY_INFORMATION

#define WTS_SECURITY_QUERY_INFORMATION   0x00000001

◆ WTS_SECURITY_REMOTE_CONTROL

#define WTS_SECURITY_REMOTE_CONTROL   0x00000010

◆ WTS_SECURITY_RESET

#define WTS_SECURITY_RESET   0x00000004

◆ WTS_SECURITY_SET_INFORMATION

#define WTS_SECURITY_SET_INFORMATION   0x00000002

◆ WTS_SECURITY_USER_ACCESS

◆ WTS_SECURITY_VIRTUAL_CHANNELS

#define WTS_SECURITY_VIRTUAL_CHANNELS   0x00000008

◆ WTS_SERVER_INFO

#define WTS_SERVER_INFO   WTS_SERVER_INFOA

◆ WTS_SESSION_INFO

#define WTS_SESSION_INFO   WTS_SESSION_INFOA

◆ WTS_SESSION_INFO_1

#define WTS_SESSION_INFO_1   WTS_SESSION_INFO_1A

◆ WTS_SESSIONSTATE_LOCK

#define WTS_SESSIONSTATE_LOCK   0x00000000

◆ WTS_SESSIONSTATE_UNKNOWN

#define WTS_SESSIONSTATE_UNKNOWN   0xFFFFFFFF

◆ WTS_SESSIONSTATE_UNLOCK

#define WTS_SESSIONSTATE_UNLOCK   0x00000001

◆ WTS_VALIDATION_INFORMATION

#define WTS_VALIDATION_INFORMATION   WTS_VALIDATION_INFORMATIONA

◆ WTS_WSD_FASTREBOOT

#define WTS_WSD_FASTREBOOT   0x00000010

◆ WTS_WSD_LOGOFF

#define WTS_WSD_LOGOFF   0x00000001

◆ WTS_WSD_POWEROFF

#define WTS_WSD_POWEROFF   0x00000008

◆ WTS_WSD_REBOOT

#define WTS_WSD_REBOOT   0x00000004

◆ WTS_WSD_SHUTDOWN

#define WTS_WSD_SHUTDOWN   0x00000002

◆ WTSCLIENT

#define WTSCLIENT   WTSCLIENTA

◆ WTSCONFIGINFO

#define WTSCONFIGINFO   WTSCONFIGINFOA

◆ WTSConnectSession

#define WTSConnectSession   WTSConnectSessionA

◆ WTSCreateListener

#define WTSCreateListener   WTSCreateListenerA

◆ WTSEnumerateListeners

#define WTSEnumerateListeners   WTSEnumerateListenersA

◆ WTSEnumerateProcesses

#define WTSEnumerateProcesses   WTSEnumerateProcessesA

◆ WTSEnumerateProcessesEx

#define WTSEnumerateProcessesEx   WTSEnumerateProcessesExA

◆ WTSEnumerateServers

#define WTSEnumerateServers   WTSEnumerateServersA

◆ WTSEnumerateSessions

#define WTSEnumerateSessions   WTSEnumerateSessionsA

◆ WTSEnumerateSessionsEx

#define WTSEnumerateSessionsEx   WTSEnumerateSessionsExA

◆ WTSFreeMemoryEx

#define WTSFreeMemoryEx   WTSFreeMemoryExA

◆ WTSGetListenerSecurity

#define WTSGetListenerSecurity   WTSGetListenerSecurityA

◆ WTSINFO

#define WTSINFO   WTSINFOA

◆ WTSINFOEX

#define WTSINFOEX   WTSINFOEXA

◆ WTSINFOEX_LEVEL

#define WTSINFOEX_LEVEL   WTSINFOEX_LEVEL_A

◆ WTSINFOEX_LEVEL1

#define WTSINFOEX_LEVEL1   WTSINFOEX_LEVEL1_A

◆ WTSLISTENERCONFIG

#define WTSLISTENERCONFIG   WTSLISTENERCONFIGA

◆ WTSLISTENERNAME

#define WTSLISTENERNAME   WTSLISTENERNAMEA

◆ WTSOpenServer

#define WTSOpenServer   WTSOpenServerA

◆ WTSOpenServerEx

#define WTSOpenServerEx   WTSOpenServerExA

◆ WTSQueryListenerConfig

#define WTSQueryListenerConfig   WTSQueryListenerConfigA

◆ WTSQuerySessionInformation

#define WTSQuerySessionInformation   WTSQuerySessionInformationA

◆ WTSQueryUserConfig

#define WTSQueryUserConfig   WTSQueryUserConfigA

◆ WTSSendMessage

#define WTSSendMessage   WTSSendMessageA

◆ WTSSetListenerSecurity

#define WTSSetListenerSecurity   WTSSetListenerSecurityA

◆ WTSSetUserConfig

#define WTSSetUserConfig   WTSSetUserConfigA

◆ WTSStartRemoteControlSession

#define WTSStartRemoteControlSession   WTSStartRemoteControlSessionA

◆ WTSStartRemoteControlSessionEx

#define WTSStartRemoteControlSessionEx   WTSStartRemoteControlSessionExA

◆ WTSUSERCONFIG

#define WTSUSERCONFIG   WTSUSERCONFIGA

Typedef Documentation

◆ CHANNEL_INIT_EVENT_EX_FN

typedef VOID VCAPITYPE CHANNEL_INIT_EVENT_EX_FN(LPVOID lpUserParam, LPVOID pInitHandle, UINT event, LPVOID pData, UINT dataLength)

◆ CHANNEL_INIT_EVENT_FN

typedef VOID VCAPITYPE CHANNEL_INIT_EVENT_FN(LPVOID pInitHandle, UINT event, LPVOID pData, UINT dataLength)

◆ CHANNEL_OPEN_EVENT_EX_FN

typedef VOID VCAPITYPE CHANNEL_OPEN_EVENT_EX_FN(LPVOID lpUserParam, DWORD openHandle, UINT event, LPVOID pData, UINT32 dataLength, UINT32 totalLength, UINT32 dataFlags)

◆ CHANNEL_OPEN_EVENT_FN

typedef VOID VCAPITYPE CHANNEL_OPEN_EVENT_FN(DWORD openHandle, UINT event, LPVOID pData, UINT32 dataLength, UINT32 totalLength, UINT32 dataFlags)

◆ INIT_WTSAPI_FN

typedef const WtsApiFunctionTable*(CDECL* INIT_WTSAPI_FN) (void)

◆ PCHANNEL_DEF

◆ PCHANNEL_INIT_EVENT_EX_FN

◆ PCHANNEL_INIT_EVENT_FN

◆ PCHANNEL_OPEN_EVENT_EX_FN

◆ PCHANNEL_OPEN_EVENT_FN

◆ PFNVCAPIGETINSTANCE

typedef HRESULT(VCAPITYPE* PFNVCAPIGETINSTANCE) (REFIID refiid, PULONG pNumObjs, PVOID *ppObjArray)

◆ PPCHANNEL_DEF

◆ PVIRTUALCHANNELCLOSE

◆ PVIRTUALCHANNELCLOSEEX

◆ PVIRTUALCHANNELENTRY

◆ PVIRTUALCHANNELENTRYEX

◆ PVIRTUALCHANNELINIT

◆ PVIRTUALCHANNELINITEX

◆ PVIRTUALCHANNELOPEN

◆ PVIRTUALCHANNELOPENEX

◆ PVIRTUALCHANNELWRITE

◆ PVIRTUALCHANNELWRITEEX

◆ PWTS_CLIENT_ADDRESS

◆ PWTS_CLIENT_DISPLAY

◆ PWTS_PROCESS_INFO_EXA

◆ PWTS_PROCESS_INFO_EXW

◆ PWTS_PROCESS_INFOA

◆ PWTS_PROCESS_INFOW

◆ PWTS_SERVER_INFOA

◆ PWTS_SERVER_INFOW

◆ PWTS_SESSION_ADDRESS

◆ PWTS_SESSION_INFO_1A

◆ PWTS_SESSION_INFO_1W

◆ PWTS_SESSION_INFOA

◆ PWTS_SESSION_INFOW

◆ PWTS_VALIDATION_INFORMATIONA

◆ PWTS_VALIDATION_INFORMATIONW

◆ PWtsApiFunctionTable

◆ PWTSCLIENTA

typedef struct WTSCLIENTA * PWTSCLIENTA

◆ PWTSCLIENTW

typedef struct WTSCLIENTW * PWTSCLIENTW

◆ PWTSCONFIGINFOA

typedef struct WTSCONFIGINFOA * PWTSCONFIGINFOA

◆ PWTSCONFIGINFOW

typedef struct WTSCONFIGINFOW * PWTSCONFIGINFOW

◆ PWTSINFOA

typedef struct WTSINFOA * PWTSINFOA

◆ PWTSINFOEX_LEVEL1_A

◆ PWTSINFOEX_LEVEL1_W

◆ PWTSINFOEX_LEVEL_A

◆ PWTSINFOEX_LEVEL_W

◆ PWTSINFOEXA

typedef struct WTSINFOEXA * PWTSINFOEXA

◆ PWTSINFOEXW

typedef struct WTSINFOEXW * PWTSINFOEXW

◆ PWTSINFOW

typedef struct WTSINFOW * PWTSINFOW

◆ PWTSLISTENERCONFIGA

◆ PWTSLISTENERCONFIGW

◆ PWTSLISTENERNAMEA

◆ PWTSLISTENERNAMEW

◆ PWTSUSERCONFIGA

typedef struct WTSUSERCONFIGA * PWTSUSERCONFIGA

◆ PWTSUSERCONFIGW

typedef struct WTSUSERCONFIGW * PWTSUSERCONFIGW

◆ VIRTUALCHANNELCLOSE

typedef UINT VCAPITYPE VIRTUALCHANNELCLOSE(DWORD openHandle)

◆ VIRTUALCHANNELCLOSEEX

typedef UINT VCAPITYPE VIRTUALCHANNELCLOSEEX(LPVOID pInitHandle, DWORD openHandle)

◆ VIRTUALCHANNELENTRY

typedef BOOL VCAPITYPE VIRTUALCHANNELENTRY(PCHANNEL_ENTRY_POINTS pEntryPoints)

◆ VIRTUALCHANNELENTRYEX

typedef BOOL VCAPITYPE VIRTUALCHANNELENTRYEX(PCHANNEL_ENTRY_POINTS_EX pEntryPointsEx, PVOID pInitHandle)

◆ VIRTUALCHANNELINIT

typedef UINT VCAPITYPE VIRTUALCHANNELINIT(LPVOID *ppInitHandle, PCHANNEL_DEF pChannel, INT channelCount, ULONG versionRequested, PCHANNEL_INIT_EVENT_FN pChannelInitEventProc)

◆ VIRTUALCHANNELINITEX

typedef UINT VCAPITYPE VIRTUALCHANNELINITEX(LPVOID lpUserParam, LPVOID clientContext, LPVOID pInitHandle, PCHANNEL_DEF pChannel, INT channelCount, ULONG versionRequested, PCHANNEL_INIT_EVENT_EX_FN pChannelInitEventProcEx)

◆ VIRTUALCHANNELOPEN

typedef UINT VCAPITYPE VIRTUALCHANNELOPEN(LPVOID pInitHandle, LPDWORD pOpenHandle, PCHAR pChannelName, PCHANNEL_OPEN_EVENT_FN pChannelOpenEventProc)

◆ VIRTUALCHANNELOPENEX

typedef UINT VCAPITYPE VIRTUALCHANNELOPENEX(LPVOID pInitHandle, LPDWORD pOpenHandle, PCHAR pChannelName, PCHANNEL_OPEN_EVENT_EX_FN pChannelOpenEventProcEx)

◆ VIRTUALCHANNELWRITE

typedef UINT VCAPITYPE VIRTUALCHANNELWRITE(DWORD openHandle, LPVOID pData, ULONG dataLength, LPVOID pUserData)

◆ VIRTUALCHANNELWRITEEX

typedef UINT VCAPITYPE VIRTUALCHANNELWRITEEX(LPVOID pInitHandle, DWORD openHandle, LPVOID pData, ULONG dataLength, LPVOID pUserData)

◆ WTS_CLOSE_SERVER_FN

typedef VOID(WINAPI* WTS_CLOSE_SERVER_FN) (HANDLE hServer)

◆ WTS_CONNECT_SESSION_FN_A

typedef BOOL(WINAPI* WTS_CONNECT_SESSION_FN_A) (ULONG LogonId, ULONG TargetLogonId, PSTR pPassword, BOOL bWait)

◆ WTS_CONNECT_SESSION_FN_W

typedef BOOL(WINAPI* WTS_CONNECT_SESSION_FN_W) (ULONG LogonId, ULONG TargetLogonId, PWSTR pPassword, BOOL bWait)

◆ WTS_CREATE_LISTENER_FN_A

typedef BOOL(WINAPI* WTS_CREATE_LISTENER_FN_A) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPSTR pListenerName, PWTSLISTENERCONFIGA pBuffer, DWORD flag)

◆ WTS_CREATE_LISTENER_FN_W

typedef BOOL(WINAPI* WTS_CREATE_LISTENER_FN_W) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPWSTR pListenerName, PWTSLISTENERCONFIGW pBuffer, DWORD flag)

◆ WTS_DISCONNECT_SESSION_FN

typedef BOOL(WINAPI* WTS_DISCONNECT_SESSION_FN) (HANDLE hServer, DWORD SessionId, BOOL bWait)

◆ WTS_ENABLE_CHILD_SESSIONS_FN

typedef BOOL(CDECL* WTS_ENABLE_CHILD_SESSIONS_FN) (BOOL bEnable)

◆ WTS_ENUMERATE_LISTENERS_FN_A

typedef BOOL(WINAPI* WTS_ENUMERATE_LISTENERS_FN_A) (HANDLE hServer, PVOID pReserved, DWORD Reserved, PWTSLISTENERNAMEA pListeners, DWORD *pCount)

◆ WTS_ENUMERATE_LISTENERS_FN_W

typedef BOOL(WINAPI* WTS_ENUMERATE_LISTENERS_FN_W) (HANDLE hServer, PVOID pReserved, DWORD Reserved, PWTSLISTENERNAMEW pListeners, DWORD *pCount)

◆ WTS_ENUMERATE_PROCESSES_EX_FN_A

typedef BOOL(WINAPI* WTS_ENUMERATE_PROCESSES_EX_FN_A) (HANDLE hServer, DWORD *pLevel, DWORD SessionId, LPSTR *ppProcessInfo, DWORD *pCount)

◆ WTS_ENUMERATE_PROCESSES_EX_FN_W

typedef BOOL(WINAPI* WTS_ENUMERATE_PROCESSES_EX_FN_W) (HANDLE hServer, DWORD *pLevel, DWORD SessionId, LPWSTR *ppProcessInfo, DWORD *pCount)

◆ WTS_ENUMERATE_PROCESSES_FN_A

typedef BOOL(WINAPI* WTS_ENUMERATE_PROCESSES_FN_A) (HANDLE hServer, DWORD Reserved, DWORD Version, PWTS_PROCESS_INFOA *ppProcessInfo, DWORD *pCount)

◆ WTS_ENUMERATE_PROCESSES_FN_W

typedef BOOL(WINAPI* WTS_ENUMERATE_PROCESSES_FN_W) (HANDLE hServer, DWORD Reserved, DWORD Version, PWTS_PROCESS_INFOW *ppProcessInfo, DWORD *pCount)

◆ WTS_ENUMERATE_SERVERS_FN_A

typedef BOOL(WINAPI* WTS_ENUMERATE_SERVERS_FN_A) (LPSTR pDomainName, DWORD Reserved, DWORD Version, PWTS_SERVER_INFOA *ppServerInfo, DWORD *pCount)

◆ WTS_ENUMERATE_SERVERS_FN_W

typedef BOOL(WINAPI* WTS_ENUMERATE_SERVERS_FN_W) (LPWSTR pDomainName, DWORD Reserved, DWORD Version, PWTS_SERVER_INFOW *ppServerInfo, DWORD *pCount)

◆ WTS_ENUMERATE_SESSIONS_EX_FN_A

typedef BOOL(WINAPI* WTS_ENUMERATE_SESSIONS_EX_FN_A) (HANDLE hServer, DWORD *pLevel, DWORD Filter, PWTS_SESSION_INFO_1A *ppSessionInfo, DWORD *pCount)

◆ WTS_ENUMERATE_SESSIONS_EX_FN_W

typedef BOOL(WINAPI* WTS_ENUMERATE_SESSIONS_EX_FN_W) (HANDLE hServer, DWORD *pLevel, DWORD Filter, PWTS_SESSION_INFO_1W *ppSessionInfo, DWORD *pCount)

◆ WTS_ENUMERATE_SESSIONS_FN_A

typedef BOOL(WINAPI* WTS_ENUMERATE_SESSIONS_FN_A) (HANDLE hServer, DWORD Reserved, DWORD Version, PWTS_SESSION_INFOA *ppSessionInfo, DWORD *pCount)

◆ WTS_ENUMERATE_SESSIONS_FN_W

typedef BOOL(WINAPI* WTS_ENUMERATE_SESSIONS_FN_W) (HANDLE hServer, DWORD Reserved, DWORD Version, PWTS_SESSION_INFOW *ppSessionInfo, DWORD *pCount)

◆ WTS_FREE_MEMORY_EX_FN_A

typedef BOOL(WINAPI* WTS_FREE_MEMORY_EX_FN_A) (WTS_TYPE_CLASS WTSTypeClass, PVOID pMemory, ULONG NumberOfEntries)

◆ WTS_FREE_MEMORY_EX_FN_W

typedef BOOL(WINAPI* WTS_FREE_MEMORY_EX_FN_W) (WTS_TYPE_CLASS WTSTypeClass, PVOID pMemory, ULONG NumberOfEntries)

◆ WTS_FREE_MEMORY_FN

typedef VOID(WINAPI* WTS_FREE_MEMORY_FN) (PVOID pMemory)

◆ WTS_GET_ACTIVE_CONSOLE_SESSION_ID_FN

typedef DWORD(WINAPI* WTS_GET_ACTIVE_CONSOLE_SESSION_ID_FN) (void)

◆ WTS_GET_CHILD_SESSION_ID_FN

typedef BOOL(CDECL* WTS_GET_CHILD_SESSION_ID_FN) (PULONG pSessionId)

◆ WTS_GET_LISTENER_SECURITY_FN_A

typedef BOOL(WINAPI* WTS_GET_LISTENER_SECURITY_FN_A) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPSTR pListenerName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor, DWORD nLength, LPDWORD lpnLengthNeeded)

◆ WTS_GET_LISTENER_SECURITY_FN_W

typedef BOOL(WINAPI* WTS_GET_LISTENER_SECURITY_FN_W) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPWSTR pListenerName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor, DWORD nLength, LPDWORD lpnLengthNeeded)

◆ WTS_IS_CHILD_SESSIONS_ENABLED_FN

typedef BOOL(CDECL* WTS_IS_CHILD_SESSIONS_ENABLED_FN) (PBOOL pbEnabled)

◆ WTS_LOGOFF_SESSION_FN

typedef BOOL(WINAPI* WTS_LOGOFF_SESSION_FN) (HANDLE hServer, DWORD SessionId, BOOL bWait)

◆ WTS_LOGOFF_USER_FN

typedef BOOL(WINAPI* WTS_LOGOFF_USER_FN) (HANDLE hServer)

◆ WTS_LOGON_USER_FN

typedef BOOL(WINAPI* WTS_LOGON_USER_FN) (HANDLE hServer, LPCSTR username, LPCSTR password, LPCSTR domain)

◆ WTS_OPEN_SERVER_EX_FN_A

typedef HANDLE(WINAPI* WTS_OPEN_SERVER_EX_FN_A) (LPSTR pServerName)

◆ WTS_OPEN_SERVER_EX_FN_W

typedef HANDLE(WINAPI* WTS_OPEN_SERVER_EX_FN_W) (LPWSTR pServerName)

◆ WTS_OPEN_SERVER_FN_A

typedef HANDLE(WINAPI* WTS_OPEN_SERVER_FN_A) (LPSTR pServerName)

◆ WTS_OPEN_SERVER_FN_W

typedef HANDLE(WINAPI* WTS_OPEN_SERVER_FN_W) (LPWSTR pServerName)

◆ WTS_QUERY_LISTENER_CONFIG_FN_A

typedef BOOL(WINAPI* WTS_QUERY_LISTENER_CONFIG_FN_A) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPSTR pListenerName, PWTSLISTENERCONFIGA pBuffer)

◆ WTS_QUERY_LISTENER_CONFIG_FN_W

typedef BOOL(WINAPI* WTS_QUERY_LISTENER_CONFIG_FN_W) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPWSTR pListenerName, PWTSLISTENERCONFIGW pBuffer)

◆ WTS_QUERY_SESSION_INFORMATION_FN_A

typedef BOOL(WINAPI* WTS_QUERY_SESSION_INFORMATION_FN_A) (HANDLE hServer, DWORD SessionId, WTS_INFO_CLASS WTSInfoClass, LPSTR *ppBuffer, DWORD *pBytesReturned)

◆ WTS_QUERY_SESSION_INFORMATION_FN_W

typedef BOOL(WINAPI* WTS_QUERY_SESSION_INFORMATION_FN_W) (HANDLE hServer, DWORD SessionId, WTS_INFO_CLASS WTSInfoClass, LPWSTR *ppBuffer, DWORD *pBytesReturned)

◆ WTS_QUERY_USER_CONFIG_FN_A

typedef BOOL(WINAPI* WTS_QUERY_USER_CONFIG_FN_A) (LPSTR pServerName, LPSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPSTR *ppBuffer, DWORD *pBytesReturned)

◆ WTS_QUERY_USER_CONFIG_FN_W

typedef BOOL(WINAPI* WTS_QUERY_USER_CONFIG_FN_W) (LPWSTR pServerName, LPWSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPWSTR *ppBuffer, DWORD *pBytesReturned)

◆ WTS_QUERY_USER_TOKEN_FN

typedef BOOL(WINAPI* WTS_QUERY_USER_TOKEN_FN) (ULONG SessionId, PHANDLE phToken)

◆ WTS_REGISTER_SESSION_NOTIFICATION_EX_FN

typedef BOOL(WINAPI* WTS_REGISTER_SESSION_NOTIFICATION_EX_FN) (HANDLE hServer, HWND hWnd, DWORD dwFlags)

◆ WTS_REGISTER_SESSION_NOTIFICATION_FN

typedef BOOL(WINAPI* WTS_REGISTER_SESSION_NOTIFICATION_FN) (HWND hWnd, DWORD dwFlags)

◆ WTS_SEND_MESSAGE_FN_A

typedef BOOL(WINAPI* WTS_SEND_MESSAGE_FN_A) (HANDLE hServer, DWORD SessionId, LPSTR pTitle, DWORD TitleLength, LPSTR pMessage, DWORD MessageLength, DWORD Style, DWORD Timeout, DWORD *pResponse, BOOL bWait)

◆ WTS_SEND_MESSAGE_FN_W

typedef BOOL(WINAPI* WTS_SEND_MESSAGE_FN_W) (HANDLE hServer, DWORD SessionId, LPWSTR pTitle, DWORD TitleLength, LPWSTR pMessage, DWORD MessageLength, DWORD Style, DWORD Timeout, DWORD *pResponse, BOOL bWait)

◆ WTS_SET_LISTENER_SECURITY_FN_A

typedef BOOL(WINAPI* WTS_SET_LISTENER_SECURITY_FN_A) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPSTR pListenerName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor)

◆ WTS_SET_LISTENER_SECURITY_FN_W

typedef BOOL(WINAPI* WTS_SET_LISTENER_SECURITY_FN_W) (HANDLE hServer, PVOID pReserved, DWORD Reserved, LPWSTR pListenerName, SECURITY_INFORMATION SecurityInformation, PSECURITY_DESCRIPTOR pSecurityDescriptor)

◆ WTS_SET_USER_CONFIG_FN_A

typedef BOOL(WINAPI* WTS_SET_USER_CONFIG_FN_A) (LPSTR pServerName, LPSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPSTR pBuffer, DWORD DataLength)

◆ WTS_SET_USER_CONFIG_FN_W

typedef BOOL(WINAPI* WTS_SET_USER_CONFIG_FN_W) (LPWSTR pServerName, LPWSTR pUserName, WTS_CONFIG_CLASS WTSConfigClass, LPWSTR pBuffer, DWORD DataLength)

◆ WTS_SHUTDOWN_SYSTEM_FN

typedef BOOL(WINAPI* WTS_SHUTDOWN_SYSTEM_FN) (HANDLE hServer, DWORD ShutdownFlag)

◆ WTS_START_REMOTE_CONTROL_SESSION_EX_FN_A

typedef BOOL(WINAPI* WTS_START_REMOTE_CONTROL_SESSION_EX_FN_A) (LPSTR pTargetServerName, ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers, DWORD flags)

◆ WTS_START_REMOTE_CONTROL_SESSION_EX_FN_W

typedef BOOL(WINAPI* WTS_START_REMOTE_CONTROL_SESSION_EX_FN_W) (LPWSTR pTargetServerName, ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers, DWORD flags)

◆ WTS_START_REMOTE_CONTROL_SESSION_FN_A

typedef BOOL(WINAPI* WTS_START_REMOTE_CONTROL_SESSION_FN_A) (LPSTR pTargetServerName, ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers)

◆ WTS_START_REMOTE_CONTROL_SESSION_FN_W

typedef BOOL(WINAPI* WTS_START_REMOTE_CONTROL_SESSION_FN_W) (LPWSTR pTargetServerName, ULONG TargetLogonId, BYTE HotkeyVk, USHORT HotkeyModifiers)

◆ WTS_STOP_REMOTE_CONTROL_SESSION_FN

typedef BOOL(WINAPI* WTS_STOP_REMOTE_CONTROL_SESSION_FN) (ULONG LogonId)

◆ WTS_TERMINATE_PROCESS_FN

typedef BOOL(WINAPI* WTS_TERMINATE_PROCESS_FN) (HANDLE hServer, DWORD ProcessId, DWORD ExitCode)

◆ WTS_UNREGISTER_SESSION_NOTIFICATION_EX_FN

typedef BOOL(WINAPI* WTS_UNREGISTER_SESSION_NOTIFICATION_EX_FN) (HANDLE hServer, HWND hWnd)

◆ WTS_UNREGISTER_SESSION_NOTIFICATION_FN

typedef BOOL(WINAPI* WTS_UNREGISTER_SESSION_NOTIFICATION_FN) (HWND hWnd)

◆ WTS_VIRTUAL_CHANNEL_CLOSE_FN

typedef BOOL(WINAPI* WTS_VIRTUAL_CHANNEL_CLOSE_FN) (HANDLE hChannelHandle)

◆ WTS_VIRTUAL_CHANNEL_OPEN_EX_FN

typedef HANDLE(WINAPI* WTS_VIRTUAL_CHANNEL_OPEN_EX_FN) (DWORD SessionId, LPSTR pVirtualName, DWORD flags)

◆ WTS_VIRTUAL_CHANNEL_OPEN_FN

typedef HANDLE(WINAPI* WTS_VIRTUAL_CHANNEL_OPEN_FN) (HANDLE hServer, DWORD SessionId, LPSTR pVirtualName)

◆ WTS_VIRTUAL_CHANNEL_PURGE_INPUT_FN

typedef BOOL(WINAPI* WTS_VIRTUAL_CHANNEL_PURGE_INPUT_FN) (HANDLE hChannelHandle)

◆ WTS_VIRTUAL_CHANNEL_PURGE_OUTPUT_FN

typedef BOOL(WINAPI* WTS_VIRTUAL_CHANNEL_PURGE_OUTPUT_FN) (HANDLE hChannelHandle)

◆ WTS_VIRTUAL_CHANNEL_QUERY_FN

typedef BOOL(WINAPI* WTS_VIRTUAL_CHANNEL_QUERY_FN) (HANDLE hChannelHandle, WTS_VIRTUAL_CLASS WtsVirtualClass, PVOID *ppBuffer, DWORD *pBytesReturned)

◆ WTS_VIRTUAL_CHANNEL_READ_FN

typedef BOOL(WINAPI* WTS_VIRTUAL_CHANNEL_READ_FN) (HANDLE hChannelHandle, ULONG TimeOut, PCHAR Buffer, ULONG BufferSize, PULONG pBytesRead)

◆ WTS_VIRTUAL_CHANNEL_WRITE_FN

typedef BOOL(WINAPI* WTS_VIRTUAL_CHANNEL_WRITE_FN) (HANDLE hChannelHandle, PCHAR Buffer, ULONG Length, PULONG pBytesWritten)

◆ WTS_WAIT_SYSTEM_EVENT_FN

typedef BOOL(WINAPI* WTS_WAIT_SYSTEM_EVENT_FN) (HANDLE hServer, DWORD EventMask, DWORD *pEventFlags)

◆ WTSLISTENERNAMEA

typedef CHAR WTSLISTENERNAMEA[WTS_LISTENER_NAME_LENGTH+1]

◆ WTSLISTENERNAMEW

typedef WCHAR WTSLISTENERNAMEW[WTS_LISTENER_NAME_LENGTH+1]

Enumeration Type Documentation

◆ WTS_CONFIG_CLASS

Enumerator
WTSUserConfigInitialProgram 
WTSUserConfigWorkingDirectory 
WTSUserConfigfInheritInitialProgram 
WTSUserConfigfAllowLogonTerminalServer 
WTSUserConfigTimeoutSettingsConnections 
WTSUserConfigTimeoutSettingsDisconnections 
WTSUserConfigTimeoutSettingsIdle 
WTSUserConfigfDeviceClientDrives 
WTSUserConfigfDeviceClientPrinters 
WTSUserConfigfDeviceClientDefaultPrinter 
WTSUserConfigBrokenTimeoutSettings 
WTSUserConfigReconnectSettings 
WTSUserConfigModemCallbackSettings 
WTSUserConfigModemCallbackPhoneNumber 
WTSUserConfigShadowingSettings 
WTSUserConfigTerminalServerProfilePath 
WTSUserConfigTerminalServerHomeDir 
WTSUserConfigTerminalServerHomeDirDrive 
WTSUserConfigfTerminalServerRemoteHomeDir 
WTSUserConfigUser 

◆ WTS_CONFIG_SOURCE

Enumerator
WTSUserConfigSourceSAM 

◆ WTS_CONNECTSTATE_CLASS

Enumerator
WTSActive 
WTSConnected 
WTSConnectQuery 
WTSShadow 
WTSDisconnected 
WTSIdle 
WTSListen 
WTSReset 
WTSDown 
WTSInit 

◆ WTS_INFO_CLASS

Enumerator
WTSInitialProgram 
WTSApplicationName 
WTSWorkingDirectory 
WTSOEMId 
WTSSessionId 
WTSUserName 
WTSWinStationName 
WTSDomainName 
WTSConnectState 
WTSClientBuildNumber 
WTSClientName 
WTSClientDirectory 
WTSClientProductId 
WTSClientHardwareId 
WTSClientAddress 
WTSClientDisplay 
WTSClientProtocolType 
WTSIdleTime 
WTSLogonTime 
WTSIncomingBytes 
WTSOutgoingBytes 
WTSIncomingFrames 
WTSOutgoingFrames 
WTSClientInfo 
WTSSessionInfo 
WTSSessionInfoEx 
WTSConfigInfo 
WTSValidationInfo 
WTSSessionAddressV4 
WTSIsRemoteSession 

◆ WTS_TYPE_CLASS

Enumerator
WTSTypeProcessInfoLevel0 
WTSTypeProcessInfoLevel1 
WTSTypeSessionInfoLevel1 

◆ WTS_VIRTUAL_CLASS

Enumerator
WTSVirtualClientData 
WTSVirtualFileHandle 
WTSVirtualEventHandle 
WTSVirtualChannelReady 
WTSVirtualChannelOpenStatus 

Function Documentation

◆ WTSCloseServer()

WINPR_API VOID WINAPI WTSCloseServer ( HANDLE  hServer)
Here is the caller graph for this function:

◆ WTSConnectSessionA()

WINPR_API BOOL WINAPI WTSConnectSessionA ( ULONG  LogonId,
ULONG  TargetLogonId,
PSTR  pPassword,
BOOL  bWait 
)

◆ WTSConnectSessionW()

WINPR_API BOOL WINAPI WTSConnectSessionW ( ULONG  LogonId,
ULONG  TargetLogonId,
PWSTR  pPassword,
BOOL  bWait 
)

◆ WTSCreateListenerA()

WINPR_API BOOL WINAPI WTSCreateListenerA ( HANDLE  hServer,
PVOID  pReserved,
DWORD  Reserved,
LPSTR  pListenerName,
PWTSLISTENERCONFIGA  pBuffer,
DWORD  flag 
)

◆ WTSCreateListenerW()

WINPR_API BOOL WINAPI WTSCreateListenerW ( HANDLE  hServer,
PVOID  pReserved,
DWORD  Reserved,
LPWSTR  pListenerName,
PWTSLISTENERCONFIGW  pBuffer,
DWORD  flag 
)

◆ WTSDisconnectSession()

WINPR_API BOOL WINAPI WTSDisconnectSession ( HANDLE  hServer,
DWORD  SessionId,
BOOL  bWait 
)
Here is the caller graph for this function:

◆ WTSEnableChildSessions()

WINPR_API BOOL CDECL WTSEnableChildSessions ( BOOL  bEnable)

WTSEnableChildSessions, WTSIsChildSessionsEnabled and WTSGetChildSessionId are not explicitly declared as WINAPI like other WTSAPI functions. Since they are declared as extern "C", we explicitly declare them as CDECL.

Here is the caller graph for this function:

◆ WTSEnumerateListenersA()

WINPR_API BOOL WINAPI WTSEnumerateListenersA ( HANDLE  hServer,
PVOID  pReserved,
DWORD  Reserved,
PWTSLISTENERNAMEA  pListeners,
DWORD *  pCount 
)

◆ WTSEnumerateListenersW()

WINPR_API BOOL WINAPI WTSEnumerateListenersW ( HANDLE  hServer,
PVOID  pReserved,
DWORD  Reserved,
PWTSLISTENERNAMEW  pListeners,
DWORD *  pCount 
)

◆ WTSEnumerateProcessesA()

WINPR_API BOOL WINAPI WTSEnumerateProcessesA ( HANDLE  hServer,
DWORD  Reserved,
DWORD  Version,
PWTS_PROCESS_INFOA ppProcessInfo,
DWORD *  pCount 
)
Here is the caller graph for this function:

◆ WTSEnumerateProcessesExA()

WINPR_API BOOL WINAPI WTSEnumerateProcessesExA ( HANDLE  hServer,
DWORD *  pLevel,
DWORD  SessionId,
LPSTR *  ppProcessInfo,
DWORD *  pCount 
)

◆ WTSEnumerateProcessesExW()

WINPR_API BOOL WINAPI WTSEnumerateProcessesExW ( HANDLE  hServer,
DWORD *  pLevel,
DWORD  SessionId,
LPWSTR *  ppProcessInfo,
DWORD *  pCount 
)

◆ WTSEnumerateProcessesW()

WINPR_API BOOL WINAPI WTSEnumerateProcessesW ( HANDLE  hServer,
DWORD  Reserved,
DWORD  Version,
PWTS_PROCESS_INFOW ppProcessInfo,
DWORD *  pCount 
)

◆ WTSEnumerateServersA()

WINPR_API BOOL WINAPI WTSEnumerateServersA ( LPSTR  pDomainName,
DWORD  Reserved,
DWORD  Version,
PWTS_SERVER_INFOA ppServerInfo,
DWORD *  pCount 
)

◆ WTSEnumerateServersW()

WINPR_API BOOL WINAPI WTSEnumerateServersW ( LPWSTR  pDomainName,
DWORD  Reserved,
DWORD  Version,
PWTS_SERVER_INFOW ppServerInfo,
DWORD *  pCount 
)

◆ WTSEnumerateSessionsA()

WINPR_API BOOL WINAPI WTSEnumerateSessionsA ( HANDLE  hServer,
DWORD  Reserved,
DWORD  Version,
PWTS_SESSION_INFOA ppSessionInfo,
DWORD *  pCount 
)
Here is the caller graph for this function:

◆ WTSEnumerateSessionsExA()

WINPR_API BOOL WINAPI WTSEnumerateSessionsExA ( HANDLE  hServer,
DWORD *  pLevel,
DWORD  Filter,
PWTS_SESSION_INFO_1A ppSessionInfo,
DWORD *  pCount 
)

◆ WTSEnumerateSessionsExW()

WINPR_API BOOL WINAPI WTSEnumerateSessionsExW ( HANDLE  hServer,
DWORD *  pLevel,
DWORD  Filter,
PWTS_SESSION_INFO_1W ppSessionInfo,
DWORD *  pCount 
)

◆ WTSEnumerateSessionsW()

WINPR_API BOOL WINAPI WTSEnumerateSessionsW ( HANDLE  hServer,
DWORD  Reserved,
DWORD  Version,
PWTS_SESSION_INFOW ppSessionInfo,
DWORD *  pCount 
)

◆ WTSErrorToString()

WINPR_API const CHAR* WTSErrorToString ( UINT  error)
Here is the caller graph for this function:

◆ WTSFreeMemory()

WINPR_API VOID WINAPI WTSFreeMemory ( PVOID  pMemory)
Here is the caller graph for this function:

◆ WTSFreeMemoryExA()

WINPR_API BOOL WINAPI WTSFreeMemoryExA ( WTS_TYPE_CLASS  WTSTypeClass,
PVOID  pMemory,
ULONG  NumberOfEntries 
)

◆ WTSFreeMemoryExW()

WINPR_API BOOL WINAPI WTSFreeMemoryExW ( WTS_TYPE_CLASS  WTSTypeClass,
PVOID  pMemory,
ULONG  NumberOfEntries 
)
Here is the caller graph for this function:

◆ WTSGetActiveConsoleSessionId()

WINPR_API DWORD WINAPI WTSGetActiveConsoleSessionId ( void  )

WTSGetActiveConsoleSessionId is declared in WinBase.h and exported by kernel32.dll, so we have to treat it separately.

WTSGetActiveConsoleSessionId is declared in WinBase.h and exported by kernel32.dll

Here is the call graph for this function:

◆ WTSGetChildSessionId()

WINPR_API BOOL CDECL WTSGetChildSessionId ( PULONG  pSessionId)

◆ WTSGetListenerSecurityA()

WINPR_API BOOL WINAPI WTSGetListenerSecurityA ( HANDLE  hServer,
PVOID  pReserved,
DWORD  Reserved,
LPSTR  pListenerName,
SECURITY_INFORMATION  SecurityInformation,
PSECURITY_DESCRIPTOR  pSecurityDescriptor,
DWORD  nLength,
LPDWORD  lpnLengthNeeded 
)

◆ WTSGetListenerSecurityW()

WINPR_API BOOL WINAPI WTSGetListenerSecurityW ( HANDLE  hServer,
PVOID  pReserved,
DWORD  Reserved,
LPWSTR  pListenerName,
SECURITY_INFORMATION  SecurityInformation,
PSECURITY_DESCRIPTOR  pSecurityDescriptor,
DWORD  nLength,
LPDWORD  lpnLengthNeeded 
)

◆ WTSIsChildSessionsEnabled()

WINPR_API BOOL CDECL WTSIsChildSessionsEnabled ( PBOOL  pbEnabled)
Here is the caller graph for this function:

◆ WTSLogoffSession()

WINPR_API BOOL WINAPI WTSLogoffSession ( HANDLE  hServer,
DWORD  SessionId,
BOOL  bWait 
)
Here is the caller graph for this function:

◆ WTSLogoffUser()

WINPR_API BOOL CDECL WTSLogoffUser ( HANDLE  hServer)

◆ WTSLogonUser()

WINPR_API BOOL CDECL WTSLogonUser ( HANDLE  hServer,
LPCSTR  username,
LPCSTR  password,
LPCSTR  domain 
)

◆ WTSOpenServerA()

WINPR_API HANDLE WINAPI WTSOpenServerA ( LPSTR  pServerName)
Here is the caller graph for this function:

◆ WTSOpenServerExA()

WINPR_API HANDLE WINAPI WTSOpenServerExA ( LPSTR  pServerName)

◆ WTSOpenServerExW()

WINPR_API HANDLE WINAPI WTSOpenServerExW ( LPWSTR  pServerName)

◆ WTSOpenServerW()

WINPR_API HANDLE WINAPI WTSOpenServerW ( LPWSTR  pServerName)

◆ WTSQueryListenerConfigA()

WINPR_API BOOL WINAPI WTSQueryListenerConfigA ( HANDLE  hServer,
PVOID  pReserved,
DWORD  Reserved,
LPSTR  pListenerName,
PWTSLISTENERCONFIGA  pBuffer 
)

◆ WTSQueryListenerConfigW()

WINPR_API BOOL WINAPI WTSQueryListenerConfigW ( HANDLE  hServer,
PVOID  pReserved,
DWORD  Reserved,
LPWSTR  pListenerName,
PWTSLISTENERCONFIGW  pBuffer 
)

◆ WTSQuerySessionInformationA()

WINPR_API BOOL WINAPI WTSQuerySessionInformationA ( HANDLE  hServer,
DWORD  SessionId,
WTS_INFO_CLASS  WTSInfoClass,
LPSTR *  ppBuffer,
DWORD *  pBytesReturned 
)
Here is the caller graph for this function:

◆ WTSQuerySessionInformationW()

WINPR_API BOOL WINAPI WTSQuerySessionInformationW ( HANDLE  hServer,
DWORD  SessionId,
WTS_INFO_CLASS  WTSInfoClass,
LPWSTR *  ppBuffer,
DWORD *  pBytesReturned 
)

◆ WTSQueryUserConfigA()

WINPR_API BOOL WINAPI WTSQueryUserConfigA ( LPSTR  pServerName,
LPSTR  pUserName,
WTS_CONFIG_CLASS  WTSConfigClass,
LPSTR *  ppBuffer,
DWORD *  pBytesReturned 
)

◆ WTSQueryUserConfigW()

WINPR_API BOOL WINAPI WTSQueryUserConfigW ( LPWSTR  pServerName,
LPWSTR  pUserName,
WTS_CONFIG_CLASS  WTSConfigClass,
LPWSTR *  ppBuffer,
DWORD *  pBytesReturned 
)

◆ WTSQueryUserToken()

WINPR_API BOOL WINAPI WTSQueryUserToken ( ULONG  SessionId,
PHANDLE  phToken 
)

◆ WTSRegisterSessionNotification()

WINPR_API BOOL WINAPI WTSRegisterSessionNotification ( HWND  hWnd,
DWORD  dwFlags 
)
Here is the caller graph for this function:

◆ WTSRegisterSessionNotificationEx()

WINPR_API BOOL WINAPI WTSRegisterSessionNotificationEx ( HANDLE  hServer,
HWND  hWnd,
DWORD  dwFlags 
)

◆ WTSRegisterWtsApiFunctionTable()

WINPR_API BOOL WTSRegisterWtsApiFunctionTable ( const WtsApiFunctionTable table)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ WTSSendMessageA()

WINPR_API BOOL WINAPI WTSSendMessageA ( HANDLE  hServer,
DWORD  SessionId,
LPSTR  pTitle,
DWORD  TitleLength,
LPSTR  pMessage,
DWORD  MessageLength,
DWORD  Style,
DWORD  Timeout,
DWORD *  pResponse,
BOOL  bWait 
)
Here is the caller graph for this function:

◆ WTSSendMessageW()

WINPR_API BOOL WINAPI WTSSendMessageW ( HANDLE  hServer,
DWORD  SessionId,
LPWSTR  pTitle,
DWORD  TitleLength,
LPWSTR  pMessage,
DWORD  MessageLength,
DWORD  Style,
DWORD  Timeout,
DWORD *  pResponse,
BOOL  bWait 
)

◆ WTSSessionStateToString()

WINPR_API const CHAR* WTSSessionStateToString ( WTS_CONNECTSTATE_CLASS  state)
Here is the caller graph for this function:

◆ WTSSetListenerSecurityA()

WINPR_API BOOL WINAPI WTSSetListenerSecurityA ( HANDLE  hServer,
PVOID  pReserved,
DWORD  Reserved,
LPSTR  pListenerName,
SECURITY_INFORMATION  SecurityInformation,
PSECURITY_DESCRIPTOR  pSecurityDescriptor 
)

◆ WTSSetListenerSecurityW()

WINPR_API BOOL WINAPI WTSSetListenerSecurityW ( HANDLE  hServer,
PVOID  pReserved,
DWORD  Reserved,
LPWSTR  pListenerName,
SECURITY_INFORMATION  SecurityInformation,
PSECURITY_DESCRIPTOR  pSecurityDescriptor 
)

◆ WTSSetUserConfigA()

WINPR_API BOOL WINAPI WTSSetUserConfigA ( LPSTR  pServerName,
LPSTR  pUserName,
WTS_CONFIG_CLASS  WTSConfigClass,
LPSTR  pBuffer,
DWORD  DataLength 
)

◆ WTSSetUserConfigW()

WINPR_API BOOL WINAPI WTSSetUserConfigW ( LPWSTR  pServerName,
LPWSTR  pUserName,
WTS_CONFIG_CLASS  WTSConfigClass,
LPWSTR  pBuffer,
DWORD  DataLength 
)

◆ WTSShutdownSystem()

WINPR_API BOOL WINAPI WTSShutdownSystem ( HANDLE  hServer,
DWORD  ShutdownFlag 
)
Here is the caller graph for this function:

◆ WTSStartRemoteControlSessionA()

WINPR_API BOOL WINAPI WTSStartRemoteControlSessionA ( LPSTR  pTargetServerName,
ULONG  TargetLogonId,
BYTE  HotkeyVk,
USHORT  HotkeyModifiers 
)

◆ WTSStartRemoteControlSessionExA()

WINPR_API BOOL WINAPI WTSStartRemoteControlSessionExA ( LPSTR  pTargetServerName,
ULONG  TargetLogonId,
BYTE  HotkeyVk,
USHORT  HotkeyModifiers,
DWORD  flags 
)

◆ WTSStartRemoteControlSessionExW()

WINPR_API BOOL WINAPI WTSStartRemoteControlSessionExW ( LPWSTR  pTargetServerName,
ULONG  TargetLogonId,
BYTE  HotkeyVk,
USHORT  HotkeyModifiers,
DWORD  flags 
)

◆ WTSStartRemoteControlSessionW()

WINPR_API BOOL WINAPI WTSStartRemoteControlSessionW ( LPWSTR  pTargetServerName,
ULONG  TargetLogonId,
BYTE  HotkeyVk,
USHORT  HotkeyModifiers 
)

◆ WTSStopRemoteControlSession()

WINPR_API BOOL WINAPI WTSStopRemoteControlSession ( ULONG  LogonId)

◆ WTSTerminateProcess()

WINPR_API BOOL WINAPI WTSTerminateProcess ( HANDLE  hServer,
DWORD  ProcessId,
DWORD  ExitCode 
)
Here is the call graph for this function:

◆ WTSUnRegisterSessionNotification()

WINPR_API BOOL WINAPI WTSUnRegisterSessionNotification ( HWND  hWnd)
Here is the caller graph for this function:

◆ WTSUnRegisterSessionNotificationEx()

WINPR_API BOOL WINAPI WTSUnRegisterSessionNotificationEx ( HANDLE  hServer,
HWND  hWnd 
)

◆ WTSVirtualChannelClose()

WINPR_API BOOL WINAPI WTSVirtualChannelClose ( HANDLE  hChannelHandle)
Here is the caller graph for this function:

◆ WTSVirtualChannelOpen()

WINPR_API HANDLE WINAPI WTSVirtualChannelOpen ( HANDLE  hServer,
DWORD  SessionId,
LPSTR  pVirtualName 
)
Here is the caller graph for this function:

◆ WTSVirtualChannelOpenEx()

WINPR_API HANDLE WINAPI WTSVirtualChannelOpenEx ( DWORD  SessionId,
LPSTR  pVirtualName,
DWORD  flags 
)
Here is the caller graph for this function:

◆ WTSVirtualChannelPurgeInput()

WINPR_API BOOL WINAPI WTSVirtualChannelPurgeInput ( HANDLE  hChannelHandle)

◆ WTSVirtualChannelPurgeOutput()

WINPR_API BOOL WINAPI WTSVirtualChannelPurgeOutput ( HANDLE  hChannelHandle)

◆ WTSVirtualChannelQuery()

WINPR_API BOOL WINAPI WTSVirtualChannelQuery ( HANDLE  hChannelHandle,
WTS_VIRTUAL_CLASS  WtsVirtualClass,
PVOID *  ppBuffer,
DWORD *  pBytesReturned 
)
Here is the caller graph for this function:

◆ WTSVirtualChannelRead()

WINPR_API BOOL WINAPI WTSVirtualChannelRead ( HANDLE  hChannelHandle,
ULONG  TimeOut,
PCHAR  Buffer,
ULONG  BufferSize,
PULONG  pBytesRead 
)
Here is the caller graph for this function:

◆ WTSVirtualChannelWrite()

WINPR_API BOOL WINAPI WTSVirtualChannelWrite ( HANDLE  hChannelHandle,
PCHAR  Buffer,
ULONG  Length,
PULONG  pBytesWritten 
)
Here is the caller graph for this function:

◆ WTSWaitSystemEvent()

WINPR_API BOOL WINAPI WTSWaitSystemEvent ( HANDLE  hServer,
DWORD  EventMask,
DWORD *  pEventFlags 
)
Here is the caller graph for this function: