Process Hacker
winsta.h File Reference

Go to the source code of this file.

Data Structures

struct  _VARDATA_WIRE
 
struct  _SESSIONIDW
 
struct  _WINSTATIONCREATE
 
struct  _WINSTATIONCLIENT
 
struct  _TSHARE_COUNTERS
 
struct  _PROTOCOLCOUNTERS
 
struct  _THINWIRECACHE
 
struct  _RESERVED_CACHE
 
struct  _TSHARE_CACHE
 
struct  CACHE_STATISTICS
 
struct  _PROTOCOLSTATUS
 
struct  _WINSTATIONINFORMATION
 
struct  _WINSTATIONUSERTOKEN
 
struct  _WINSTATIONVIDEODATA
 
struct  _WINSTATIONPRODID
 
struct  _WINSTATIONREMOTEADDRESS
 
struct  _WINSTATIONINFORMATIONEX_LEVEL1
 
struct  _WINSTATIONINFORMATIONEX_LEVEL2
 
union  _WINSTATIONINFORMATIONEX_LEVEL
 
struct  _WINSTATIONINFORMATIONEX
 
struct  _TS_PROCESS_INFORMATION_NT4
 
struct  _TS_SYS_PROCESS_INFORMATION
 
struct  _TS_ALL_PROCESSES_INFO
 
struct  _TS_COUNTER_HEADER
 
struct  _TS_COUNTER
 

Macros

#define WINSTATION_QUERY   0x00000001
 
#define WINSTATION_SET   0x00000002
 
#define WINSTATION_RESET   0x00000004
 
#define WINSTATION_VIRTUAL   0x00000008
 
#define WINSTATION_SHADOW   0x00000010
 
#define WINSTATION_LOGON   0x00000020
 
#define WINSTATION_LOGOFF   0x00000040
 
#define WINSTATION_MSG   0x00000080
 
#define WINSTATION_CONNECT   0x00000100
 
#define WINSTATION_DISCONNECT   0x00000200
 
#define WINSTATION_GUEST_ACCESS   WINSTATION_LOGON
 
#define WINSTATION_CURRENT_GUEST_ACCESS   (WINSTATION_VIRTUAL | WINSTATION_LOGOFF)
 
#define WINSTATION_USER_ACCESS   (WINSTATION_GUEST_ACCESS | WINSTATION_QUERY | WINSTATION_CONNECT)
 
#define WINSTATION_CURRENT_USER_ACCESS
 
#define WINSTATION_ALL_ACCESS
 
#define WDPREFIX_LENGTH   12
 
#define STACK_ADDRESS_LENGTH   128
 
#define MAX_BR_NAME   65
 
#define DIRECTORY_LENGTH   256
 
#define INITIALPROGRAM_LENGTH   256
 
#define USERNAME_LENGTH   20
 
#define DOMAIN_LENGTH   17
 
#define PASSWORD_LENGTH   14
 
#define NASISPECIFICNAME_LENGTH   14
 
#define NASIUSERNAME_LENGTH   47
 
#define NASIPASSWORD_LENGTH   24
 
#define NASISESSIONNAME_LENGTH   16
 
#define NASIFILESERVER_LENGTH   47
 
#define CLIENTDATANAME_LENGTH   7
 
#define CLIENTNAME_LENGTH   20
 
#define CLIENTADDRESS_LENGTH   30
 
#define IMEFILENAME_LENGTH   32
 
#define DIRECTORY_LENGTH   256
 
#define CLIENTLICENSE_LENGTH   32
 
#define CLIENTMODEM_LENGTH   40
 
#define CLIENT_PRODUCT_ID_LENGTH   32
 
#define MAX_COUNTER_EXTENSIONS   2
 
#define WINSTATIONNAME_LENGTH   32
 
#define TERMSRV_TOTAL_SESSIONS   1
 
#define TERMSRV_DISC_SESSIONS   2
 
#define TERMSRV_RECON_SESSIONS   3
 
#define TERMSRV_CURRENT_ACTIVE_SESSIONS   4
 
#define TERMSRV_CURRENT_DISC_SESSIONS   5
 
#define TERMSRV_PENDING_SESSIONS   6
 
#define TERMSRV_SUCC_TOTAL_LOGONS   7
 
#define TERMSRV_SUCC_LOCAL_LOGONS   8
 
#define TERMSRV_SUCC_REMOTE_LOGONS   9
 
#define TERMSRV_SUCC_SESSION0_LOGONS   10
 
#define TERMSRV_CURRENT_TERMINATING_SESSIONS   11
 
#define TERMSRV_CURRENT_LOGGEDON_SESSIONS   12
 
#define MAX_THINWIRECACHE   4
 
#define TS_PROCESS_INFO_MAGIC_NT4   0x23495452
 
#define SIZEOF_TS4_SYSTEM_THREAD_INFORMATION   64
 
#define SIZEOF_TS4_SYSTEM_PROCESS_INFORMATION   136
 
#define WSD_LOGOFF   0x1
 
#define WSD_SHUTDOWN   0x2
 
#define WSD_REBOOT   0x4
 
#define WSD_POWEROFF   0x8
 
#define WEVENT_NONE   0x0
 
#define WEVENT_CREATE   0x1
 
#define WEVENT_DELETE   0x2
 
#define WEVENT_RENAME   0x4
 
#define WEVENT_CONNECT   0x8
 
#define WEVENT_DISCONNECT   0x10
 
#define WEVENT_LOGON   0x20
 
#define WEVENT_LOGOFF   0x40
 
#define WEVENT_STATECHANGE   0x80
 
#define WEVENT_LICENSE   0x100
 
#define WEVENT_ALL   0x7fffffff
 
#define WEVENT_FLUSH   0x80000000
 
#define KBDSHIFT   0x1
 
#define KBDCTRL   0x2
 
#define KBDALT   0x4
 
#define WNOTIFY_ALL_SESSIONS   0x1
 
#define LOGONID_CURRENT   (-1)
 
#define SERVERNAME_CURRENT   (NULL)
 

Typedefs

typedef RTL_TIME_ZONE_INFORMATION TS_TIME_ZONE_INFORMATION
 
typedef RTL_TIME_ZONE_INFORMATIONPTS_TIME_ZONE_INFORMATION
 
typedef WCHAR WINSTATIONNAME [WINSTATIONNAME_LENGTH+1]
 
typedef struct _VARDATA_WIRE VARDATA_WIRE
 
typedef struct _VARDATA_WIREPVARDATA_WIRE
 
typedef enum _WINSTATIONSTATECLASS WINSTATIONSTATECLASS
 
typedef struct _SESSIONIDW SESSIONIDW
 
typedef struct _SESSIONIDWPSESSIONIDW
 
typedef enum _WINSTATIONINFOCLASS WINSTATIONINFOCLASS
 
typedef struct _WINSTATIONCREATE WINSTATIONCREATE
 
typedef struct _WINSTATIONCREATEPWINSTATIONCREATE
 
typedef struct _WINSTATIONCLIENT WINSTATIONCLIENT
 
typedef struct _WINSTATIONCLIENTPWINSTATIONCLIENT
 
typedef struct _TSHARE_COUNTERS TSHARE_COUNTERS
 
typedef struct _TSHARE_COUNTERSPTSHARE_COUNTERS
 
typedef struct _PROTOCOLCOUNTERS PROTOCOLCOUNTERS
 
typedef struct _PROTOCOLCOUNTERSPPROTOCOLCOUNTERS
 
typedef struct _THINWIRECACHE THINWIRECACHE
 
typedef struct _THINWIRECACHEPTHINWIRECACHE
 
typedef struct _RESERVED_CACHE RESERVED_CACHE
 
typedef struct _RESERVED_CACHEPRESERVED_CACHE
 
typedef struct _TSHARE_CACHE TSHARE_CACHE
 
typedef struct _TSHARE_CACHEPTSHARE_CACHE
 
typedef struct CACHE_STATISTICS CACHE_STATISTICS
 
typedef struct CACHE_STATISTICSPCACHE_STATISTICS
 
typedef struct _PROTOCOLSTATUS PROTOCOLSTATUS
 
typedef struct _PROTOCOLSTATUSPPROTOCOLSTATUS
 
typedef struct
_WINSTATIONINFORMATION 
WINSTATIONINFORMATION
 
typedef struct
_WINSTATIONINFORMATION
PWINSTATIONINFORMATION
 
typedef struct _WINSTATIONUSERTOKEN WINSTATIONUSERTOKEN
 
typedef struct
_WINSTATIONUSERTOKEN
PWINSTATIONUSERTOKEN
 
typedef struct _WINSTATIONVIDEODATA WINSTATIONVIDEODATA
 
typedef struct
_WINSTATIONVIDEODATA
PWINSTATIONVIDEODATA
 
typedef struct _WINSTATIONPRODID WINSTATIONPRODID
 
typedef struct _WINSTATIONPRODIDPWINSTATIONPRODID
 
typedef struct
_WINSTATIONREMOTEADDRESS 
WINSTATIONREMOTEADDRESS
 
typedef struct
_WINSTATIONREMOTEADDRESS
PWINSTATIONREMOTEADDRESS
 
typedef struct
_WINSTATIONINFORMATIONEX_LEVEL1 
WINSTATIONINFORMATIONEX_LEVEL1
 
typedef struct
_WINSTATIONINFORMATIONEX_LEVEL1
PWINSTATIONINFORMATIONEX_LEVEL1
 
typedef struct
_WINSTATIONINFORMATIONEX_LEVEL2 
WINSTATIONINFORMATIONEX_LEVEL2
 
typedef struct
_WINSTATIONINFORMATIONEX_LEVEL2
PWINSTATIONINFORMATIONEX_LEVEL2
 
typedef union
_WINSTATIONINFORMATIONEX_LEVEL 
WINSTATIONINFORMATIONEX_LEVEL
 
typedef union
_WINSTATIONINFORMATIONEX_LEVEL
PWINSTATIONINFORMATIONEX_LEVEL
 
typedef struct
_WINSTATIONINFORMATIONEX 
WINSTATIONINFORMATIONEX
 
typedef struct
_WINSTATIONINFORMATIONEX
PWINSTATIONINFORMATIONEX
 
typedef struct
_TS_PROCESS_INFORMATION_NT4 
TS_PROCESS_INFORMATION_NT4
 
typedef struct
_TS_PROCESS_INFORMATION_NT4
PTS_PROCESS_INFORMATION_NT4
 
typedef struct
_TS_SYS_PROCESS_INFORMATION 
TS_SYS_PROCESS_INFORMATION
 
typedef struct
_TS_SYS_PROCESS_INFORMATION
PTS_SYS_PROCESS_INFORMATION
 
typedef struct
_TS_ALL_PROCESSES_INFO 
TS_ALL_PROCESSES_INFO
 
typedef struct
_TS_ALL_PROCESSES_INFO
PTS_ALL_PROCESSES_INFO
 
typedef struct _TS_COUNTER_HEADER TS_COUNTER_HEADER
 
typedef struct _TS_COUNTER_HEADERPTS_COUNTER_HEADER
 
typedef struct _TS_COUNTER TS_COUNTER
 
typedef struct _TS_COUNTERPTS_COUNTER
 

Enumerations

enum  _WINSTATIONSTATECLASS {
  State_Active = 0, State_Connected = 1, State_ConnectQuery = 2, State_Shadow = 3,
  State_Disconnected = 4, State_Idle = 5, State_Listen = 6, State_Reset = 7,
  State_Down = 8, State_Init = 9
}
 
enum  _WINSTATIONINFOCLASS {
  WinStationCreateData, WinStationConfiguration, WinStationPdParams, WinStationWd,
  WinStationPd, WinStationPrinter, WinStationClient, WinStationModules,
  WinStationInformation, WinStationTrace, WinStationBeep, WinStationEncryptionOff,
  WinStationEncryptionPerm, WinStationNtSecurity, WinStationUserToken, WinStationUnused1,
  WinStationVideoData, WinStationInitialProgram, WinStationCd, WinStationSystemTrace,
  WinStationVirtualData, WinStationClientData, WinStationSecureDesktopEnter, WinStationSecureDesktopExit,
  WinStationLoadBalanceSessionTarget, WinStationLoadIndicator, WinStationShadowInfo, WinStationDigProductId,
  WinStationLockedState, WinStationRemoteAddress, WinStationIdleTime, WinStationLastReconnectType,
  WinStationDisallowAutoReconnect, WinStationUnused2, WinStationUnused3, WinStationUnused4,
  WinStationUnused5, WinStationReconnectedFromId, WinStationEffectsPolicy, WinStationType,
  WinStationInformationEx, WinStationValidationInfo
}
 

Functions

BOOLEAN WINAPI WinStationFreeMemory (_In_ PVOID Buffer)
 
HANDLE WINAPI WinStationOpenServerW (_In_ PWSTR ServerName)
 
BOOLEAN WINAPI WinStationCloseServer (_In_ HANDLE hServer)
 
BOOLEAN WINAPI WinStationServerPing (_In_opt_ HANDLE hServer)
 
BOOLEAN WINAPI WinStationGetTermSrvCountersValue (_In_opt_ HANDLE hServer, _In_ ULONG Count, _Inout_ PTS_COUNTER Counters)
 
BOOLEAN WINAPI WinStationShutdownSystem (_In_opt_ HANDLE hServer, _In_ ULONG ShutdownFlags)
 
BOOLEAN WINAPI WinStationWaitSystemEvent (_In_opt_ HANDLE hServer, _In_ ULONG EventMask, _Out_ PULONG EventFlags)
 
BOOLEAN WINAPI WinStationRegisterConsoleNotification (_In_opt_ HANDLE hServer, _In_ HWND WindowHandle, _In_ ULONG Flags)
 
BOOLEAN WINAPI WinStationUnRegisterConsoleNotification (_In_opt_ HANDLE hServer, _In_ HWND WindowHandle)
 
BOOLEAN WINAPI WinStationEnumerateW (_In_opt_ HANDLE hServer, _Out_ PSESSIONIDW *SessionIds, _Out_ PULONG Count)
 
BOOLEAN WINAPI WinStationQueryInformationW (_In_opt_ HANDLE hServer, _In_ ULONG SessionId, _In_ WINSTATIONINFOCLASS WinStationInformationClass, _Out_writes_bytes_(WinStationInformationLength) PVOID pWinStationInformation, _In_ ULONG WinStationInformationLength, _Out_ PULONG pReturnLength)
 
BOOLEAN WINAPI WinStationSetInformationW (_In_opt_ HANDLE hServer, _In_ ULONG SessionId, _In_ WINSTATIONINFOCLASS WinStationInformationClass, _In_reads_bytes_(WinStationInformationLength) PVOID pWinStationInformation, _In_ ULONG WinStationInformationLength)
 
BOOLEAN WINAPI WinStationNameFromLogonIdW (_In_opt_ HANDLE hServer, _In_ ULONG SessionId, _Out_writes_(WINSTATIONNAME_LENGTH+1) PWSTR pWinStationName)
 
BOOLEAN WINAPI WinStationSendMessageW (_In_opt_ HANDLE hServer, _In_ ULONG SessionId, _In_ PWSTR Title, _In_ ULONG TitleLength, _In_ PWSTR Message, _In_ ULONG MessageLength, _In_ ULONG Style, _In_ ULONG Timeout, _Out_ PULONG Response, _In_ BOOLEAN DoNotWait)
 
BOOLEAN WINAPI WinStationConnectW (_In_opt_ HANDLE hServer, _In_ ULONG SessionId, _In_ ULONG TargetSessionId, _In_opt_ PWSTR pPassword, _In_ BOOLEAN bWait)
 
BOOLEAN WINAPI WinStationDisconnect (_In_opt_ HANDLE hServer, _In_ ULONG SessionId, _In_ BOOLEAN bWait)
 
BOOLEAN WINAPI WinStationReset (_In_opt_ HANDLE hServer, _In_ ULONG SessionId, _In_ BOOLEAN bWait)
 
BOOLEAN WINAPI WinStationShadow (_In_opt_ HANDLE hServer, _In_ PWSTR TargetServerName, _In_ ULONG TargetSessionId, _In_ UCHAR HotKeyVk, _In_ USHORT HotkeyModifiers)
 
BOOLEAN WINAPI WinStationShadowStop (_In_opt_ HANDLE hServer, _In_ ULONG SessionId, _In_ BOOLEAN bWait)
 
BOOLEAN WINAPI WinStationEnumerateProcesses (_In_opt_ HANDLE hServer, _Out_ PVOID *Processes)
 
BOOLEAN WINAPI WinStationGetAllProcesses (_In_opt_ HANDLE hServer, _In_ ULONG Level, _Out_ PULONG NumberOfProcesses, _Out_ PTS_ALL_PROCESSES_INFO *Processes)
 
BOOLEAN WINAPI WinStationFreeGAPMemory (_In_ ULONG Level, _In_ PTS_ALL_PROCESSES_INFO Processes, _In_ ULONG NumberOfProcesses)
 
BOOLEAN WINAPI WinStationTerminateProcess (_In_opt_ HANDLE hServer, _In_ ULONG ProcessId, _In_ ULONG ExitCode)
 
BOOLEAN WINAPI WinStationGetProcessSid (_In_opt_ HANDLE hServer, _In_ ULONG ProcessId, _In_ FILETIME ProcessStartTime, _Out_ PVOID pProcessUserSid, _Inout_ PULONG dwSidSize)
 
BOOLEAN WINAPI WinStationSwitchToServicesSession (VOID)
 
BOOLEAN WINAPI WinStationRevertFromServicesSession (VOID)
 
BOOLEAN WINAPI _WinStationWaitForConnect (VOID)
 

Macro Definition Documentation

#define CLIENT_PRODUCT_ID_LENGTH   32

Definition at line 51 of file winsta.h.

#define CLIENTADDRESS_LENGTH   30

Definition at line 46 of file winsta.h.

#define CLIENTDATANAME_LENGTH   7

Definition at line 44 of file winsta.h.

#define CLIENTLICENSE_LENGTH   32

Definition at line 49 of file winsta.h.

#define CLIENTMODEM_LENGTH   40

Definition at line 50 of file winsta.h.

#define CLIENTNAME_LENGTH   20

Definition at line 45 of file winsta.h.

#define DIRECTORY_LENGTH   256

Definition at line 48 of file winsta.h.

#define DIRECTORY_LENGTH   256

Definition at line 48 of file winsta.h.

#define DOMAIN_LENGTH   17

Definition at line 36 of file winsta.h.

#define IMEFILENAME_LENGTH   32

Definition at line 47 of file winsta.h.

#define INITIALPROGRAM_LENGTH   256

Definition at line 34 of file winsta.h.

#define KBDALT   0x4

Definition at line 481 of file winsta.h.

#define KBDCTRL   0x2

Definition at line 480 of file winsta.h.

#define KBDSHIFT   0x1

Definition at line 479 of file winsta.h.

#define LOGONID_CURRENT   (-1)

Definition at line 492 of file winsta.h.

#define MAX_BR_NAME   65

Definition at line 32 of file winsta.h.

#define MAX_COUNTER_EXTENSIONS   2

Definition at line 52 of file winsta.h.

#define MAX_THINWIRECACHE   4

Definition at line 244 of file winsta.h.

#define NASIFILESERVER_LENGTH   47

Definition at line 42 of file winsta.h.

#define NASIPASSWORD_LENGTH   24

Definition at line 40 of file winsta.h.

#define NASISESSIONNAME_LENGTH   16

Definition at line 41 of file winsta.h.

#define NASISPECIFICNAME_LENGTH   14

Definition at line 38 of file winsta.h.

#define NASIUSERNAME_LENGTH   47

Definition at line 39 of file winsta.h.

#define PASSWORD_LENGTH   14

Definition at line 37 of file winsta.h.

#define SERVERNAME_CURRENT   (NULL)

Definition at line 493 of file winsta.h.

#define SIZEOF_TS4_SYSTEM_PROCESS_INFORMATION   136

Definition at line 405 of file winsta.h.

#define SIZEOF_TS4_SYSTEM_THREAD_INFORMATION   64

Definition at line 404 of file winsta.h.

#define STACK_ADDRESS_LENGTH   128

Definition at line 31 of file winsta.h.

#define TERMSRV_CURRENT_ACTIVE_SESSIONS   4

Definition at line 58 of file winsta.h.

#define TERMSRV_CURRENT_DISC_SESSIONS   5

Definition at line 59 of file winsta.h.

#define TERMSRV_CURRENT_LOGGEDON_SESSIONS   12

Definition at line 66 of file winsta.h.

#define TERMSRV_CURRENT_TERMINATING_SESSIONS   11

Definition at line 65 of file winsta.h.

#define TERMSRV_DISC_SESSIONS   2

Definition at line 56 of file winsta.h.

#define TERMSRV_PENDING_SESSIONS   6

Definition at line 60 of file winsta.h.

#define TERMSRV_RECON_SESSIONS   3

Definition at line 57 of file winsta.h.

#define TERMSRV_SUCC_LOCAL_LOGONS   8

Definition at line 62 of file winsta.h.

#define TERMSRV_SUCC_REMOTE_LOGONS   9

Definition at line 63 of file winsta.h.

#define TERMSRV_SUCC_SESSION0_LOGONS   10

Definition at line 64 of file winsta.h.

#define TERMSRV_SUCC_TOTAL_LOGONS   7

Definition at line 61 of file winsta.h.

#define TERMSRV_TOTAL_SESSIONS   1

Definition at line 55 of file winsta.h.

#define TS_PROCESS_INFO_MAGIC_NT4   0x23495452

Definition at line 394 of file winsta.h.

#define USERNAME_LENGTH   20

Definition at line 35 of file winsta.h.

#define WDPREFIX_LENGTH   12

Definition at line 30 of file winsta.h.

#define WEVENT_ALL   0x7fffffff

Definition at line 475 of file winsta.h.

#define WEVENT_CONNECT   0x8

Definition at line 469 of file winsta.h.

#define WEVENT_CREATE   0x1

Definition at line 466 of file winsta.h.

#define WEVENT_DELETE   0x2

Definition at line 467 of file winsta.h.

#define WEVENT_DISCONNECT   0x10

Definition at line 470 of file winsta.h.

#define WEVENT_FLUSH   0x80000000

Definition at line 476 of file winsta.h.

#define WEVENT_LICENSE   0x100

Definition at line 474 of file winsta.h.

#define WEVENT_LOGOFF   0x40

Definition at line 472 of file winsta.h.

#define WEVENT_LOGON   0x20

Definition at line 471 of file winsta.h.

#define WEVENT_NONE   0x0

Definition at line 465 of file winsta.h.

#define WEVENT_RENAME   0x4

Definition at line 468 of file winsta.h.

#define WEVENT_STATECHANGE   0x80

Definition at line 473 of file winsta.h.

#define WINSTATION_ALL_ACCESS
Value:
(STANDARD_RIGHTS_REQUIRED | WINSTATION_QUERY | \
WINSTATION_SET | WINSTATION_RESET | WINSTATION_VIRTUAL | \
WINSTATION_SHADOW | WINSTATION_LOGON | WINSTATION_MSG | \
WINSTATION_CONNECT | WINSTATION_DISCONNECT)

Definition at line 25 of file winsta.h.

#define WINSTATION_CONNECT   0x00000100

Definition at line 16 of file winsta.h.

#define WINSTATION_CURRENT_GUEST_ACCESS   (WINSTATION_VIRTUAL | WINSTATION_LOGOFF)

Definition at line 20 of file winsta.h.

#define WINSTATION_CURRENT_USER_ACCESS
Value:

Definition at line 22 of file winsta.h.

#define WINSTATION_DISCONNECT   0x00000200

Definition at line 17 of file winsta.h.

#define WINSTATION_GUEST_ACCESS   WINSTATION_LOGON

Definition at line 18 of file winsta.h.

#define WINSTATION_LOGOFF   0x00000040

Definition at line 14 of file winsta.h.

#define WINSTATION_LOGON   0x00000020

Definition at line 13 of file winsta.h.

#define WINSTATION_MSG   0x00000080

Definition at line 15 of file winsta.h.

#define WINSTATION_QUERY   0x00000001

Definition at line 8 of file winsta.h.

#define WINSTATION_RESET   0x00000004

Definition at line 10 of file winsta.h.

#define WINSTATION_SET   0x00000002

Definition at line 9 of file winsta.h.

#define WINSTATION_SHADOW   0x00000010

Definition at line 12 of file winsta.h.

#define WINSTATION_USER_ACCESS   (WINSTATION_GUEST_ACCESS | WINSTATION_QUERY | WINSTATION_CONNECT)

Definition at line 21 of file winsta.h.

#define WINSTATION_VIRTUAL   0x00000008

Definition at line 11 of file winsta.h.

#define WINSTATIONNAME_LENGTH   32

Definition at line 53 of file winsta.h.

#define WNOTIFY_ALL_SESSIONS   0x1

Definition at line 485 of file winsta.h.

#define WSD_LOGOFF   0x1

Definition at line 459 of file winsta.h.

#define WSD_POWEROFF   0x8

Definition at line 462 of file winsta.h.

#define WSD_REBOOT   0x4

Definition at line 461 of file winsta.h.

#define WSD_SHUTDOWN   0x2

Definition at line 460 of file winsta.h.

Typedef Documentation

typedef struct _PROTOCOLSTATUS * PPROTOCOLSTATUS
typedef struct _RESERVED_CACHE * PRESERVED_CACHE
typedef struct _SESSIONIDW * PSESSIONIDW
typedef struct _THINWIRECACHE * PTHINWIRECACHE
typedef struct _TS_COUNTER * PTS_COUNTER

Definition at line 68 of file winsta.h.

typedef struct _TSHARE_CACHE * PTSHARE_CACHE
typedef struct _VARDATA_WIRE * PVARDATA_WIRE
typedef struct _SESSIONIDW SESSIONIDW
typedef struct _THINWIRECACHE THINWIRECACHE
typedef struct _TS_COUNTER TS_COUNTER

Definition at line 68 of file winsta.h.

typedef struct _TSHARE_CACHE TSHARE_CACHE
typedef struct _VARDATA_WIRE VARDATA_WIRE
typedef WCHAR WINSTATIONNAME[WINSTATIONNAME_LENGTH+1]

Definition at line 70 of file winsta.h.

Enumeration Type Documentation

Enumerator:
WinStationCreateData 
WinStationConfiguration 
WinStationPdParams 
WinStationWd 
WinStationPd 
WinStationPrinter 
WinStationClient 
WinStationModules 
WinStationInformation 
WinStationTrace 
WinStationBeep 
WinStationEncryptionOff 
WinStationEncryptionPerm 
WinStationNtSecurity 
WinStationUserToken 
WinStationUnused1 
WinStationVideoData 
WinStationInitialProgram 
WinStationCd 
WinStationSystemTrace 
WinStationVirtualData 
WinStationClientData 
WinStationSecureDesktopEnter 
WinStationSecureDesktopExit 
WinStationLoadBalanceSessionTarget 
WinStationLoadIndicator 
WinStationShadowInfo 
WinStationDigProductId 
WinStationLockedState 
WinStationRemoteAddress 
WinStationIdleTime 
WinStationLastReconnectType 
WinStationDisallowAutoReconnect 
WinStationUnused2 
WinStationUnused3 
WinStationUnused4 
WinStationUnused5 
WinStationReconnectedFromId 
WinStationEffectsPolicy 
WinStationType 
WinStationInformationEx 
WinStationValidationInfo 

Definition at line 104 of file winsta.h.

Enumerator:
State_Active 
State_Connected 
State_ConnectQuery 
State_Shadow 
State_Disconnected 
State_Idle 
State_Listen 
State_Reset 
State_Down 
State_Init 

Definition at line 79 of file winsta.h.

Function Documentation

BOOLEAN WINAPI _WinStationWaitForConnect ( VOID  )
BOOLEAN WINAPI WinStationCloseServer ( _In_ HANDLE  hServer)
BOOLEAN WINAPI WinStationConnectW ( _In_opt_ HANDLE  hServer,
_In_ ULONG  SessionId,
_In_ ULONG  TargetSessionId,
_In_opt_ PWSTR  pPassword,
_In_ BOOLEAN  bWait 
)
BOOLEAN WINAPI WinStationDisconnect ( _In_opt_ HANDLE  hServer,
_In_ ULONG  SessionId,
_In_ BOOLEAN  bWait 
)
BOOLEAN WINAPI WinStationEnumerateProcesses ( _In_opt_ HANDLE  hServer,
_Out_ PVOID *  Processes 
)
BOOLEAN WINAPI WinStationEnumerateW ( _In_opt_ HANDLE  hServer,
_Out_ PSESSIONIDW SessionIds,
_Out_ PULONG  Count 
)
BOOLEAN WINAPI WinStationFreeGAPMemory ( _In_ ULONG  Level,
_In_ PTS_ALL_PROCESSES_INFO  Processes,
_In_ ULONG  NumberOfProcesses 
)
BOOLEAN WINAPI WinStationFreeMemory ( _In_ PVOID  Buffer)
BOOLEAN WINAPI WinStationGetAllProcesses ( _In_opt_ HANDLE  hServer,
_In_ ULONG  Level,
_Out_ PULONG  NumberOfProcesses,
_Out_ PTS_ALL_PROCESSES_INFO Processes 
)
BOOLEAN WINAPI WinStationGetProcessSid ( _In_opt_ HANDLE  hServer,
_In_ ULONG  ProcessId,
_In_ FILETIME  ProcessStartTime,
_Out_ PVOID  pProcessUserSid,
_Inout_ PULONG  dwSidSize 
)
BOOLEAN WINAPI WinStationGetTermSrvCountersValue ( _In_opt_ HANDLE  hServer,
_In_ ULONG  Count,
_Inout_ PTS_COUNTER  Counters 
)
BOOLEAN WINAPI WinStationNameFromLogonIdW ( _In_opt_ HANDLE  hServer,
_In_ ULONG  SessionId,
_Out_writes_(WINSTATIONNAME_LENGTH+1) PWSTR  pWinStationName 
)
HANDLE WINAPI WinStationOpenServerW ( _In_ PWSTR  ServerName)
BOOLEAN WINAPI WinStationQueryInformationW ( _In_opt_ HANDLE  hServer,
_In_ ULONG  SessionId,
_In_ WINSTATIONINFOCLASS  WinStationInformationClass,
_Out_writes_bytes_(WinStationInformationLength) PVOID  pWinStationInformation,
_In_ ULONG  WinStationInformationLength,
_Out_ PULONG  pReturnLength 
)
BOOLEAN WINAPI WinStationRegisterConsoleNotification ( _In_opt_ HANDLE  hServer,
_In_ HWND  WindowHandle,
_In_ ULONG  Flags 
)
BOOLEAN WINAPI WinStationReset ( _In_opt_ HANDLE  hServer,
_In_ ULONG  SessionId,
_In_ BOOLEAN  bWait 
)
BOOLEAN WINAPI WinStationRevertFromServicesSession ( VOID  )
BOOLEAN WINAPI WinStationSendMessageW ( _In_opt_ HANDLE  hServer,
_In_ ULONG  SessionId,
_In_ PWSTR  Title,
_In_ ULONG  TitleLength,
_In_ PWSTR  Message,
_In_ ULONG  MessageLength,
_In_ ULONG  Style,
_In_ ULONG  Timeout,
_Out_ PULONG  Response,
_In_ BOOLEAN  DoNotWait 
)
BOOLEAN WINAPI WinStationServerPing ( _In_opt_ HANDLE  hServer)
BOOLEAN WINAPI WinStationSetInformationW ( _In_opt_ HANDLE  hServer,
_In_ ULONG  SessionId,
_In_ WINSTATIONINFOCLASS  WinStationInformationClass,
_In_reads_bytes_(WinStationInformationLength) PVOID  pWinStationInformation,
_In_ ULONG  WinStationInformationLength 
)
BOOLEAN WINAPI WinStationShadow ( _In_opt_ HANDLE  hServer,
_In_ PWSTR  TargetServerName,
_In_ ULONG  TargetSessionId,
_In_ UCHAR  HotKeyVk,
_In_ USHORT  HotkeyModifiers 
)
BOOLEAN WINAPI WinStationShadowStop ( _In_opt_ HANDLE  hServer,
_In_ ULONG  SessionId,
_In_ BOOLEAN  bWait 
)
BOOLEAN WINAPI WinStationShutdownSystem ( _In_opt_ HANDLE  hServer,
_In_ ULONG  ShutdownFlags 
)
BOOLEAN WINAPI WinStationSwitchToServicesSession ( VOID  )
BOOLEAN WINAPI WinStationTerminateProcess ( _In_opt_ HANDLE  hServer,
_In_ ULONG  ProcessId,
_In_ ULONG  ExitCode 
)
BOOLEAN WINAPI WinStationUnRegisterConsoleNotification ( _In_opt_ HANDLE  hServer,
_In_ HWND  WindowHandle 
)
BOOLEAN WINAPI WinStationWaitSystemEvent ( _In_opt_ HANDLE  hServer,
_In_ ULONG  EventMask,
_Out_ PULONG  EventFlags 
)