Something went wrong. Try again.
Reactos
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242/* * Copyright 2005 Ulrich Czekalla (For CodeWeavers) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
#ifndef __WINE_WTSAPI32_H#define __WINE_WTSAPI32_H
#ifdef __cplusplusextern "C" {#endif
/* * pResponse values from WTSSendMessage(), in addition * to those from the standard MessageBox() API. */#ifndef IDTIMEOUT#define IDTIMEOUT 32000#endif#ifndef IDASYNC#define IDASYNC 32001#endif
typedef enum _WTS_VIRTUAL_CLASS{ WTSVirtualClientData, WTSVirtualFileHandle} WTS_VIRTUAL_CLASS;
typedef enum tagWTS_INFO_CLASS{ WTSInitialProgram, WTSApplicationName, WTSWorkingDirectory, WTSOEMId, WTSSessionId, WTSUserName, WTSWinStationName, WTSDomainName, WTSConnectState, WTSClientBuildNumber, WTSClientName, WTSClientDirectory, WTSClientProductId, WTSClientHardwareId, WTSClientAddress, WTSClientDisplay, WTSClientProtocolType,#if (NTDDI_VERSION >= NTDDI_WS08) WTSIdleTime, WTSLogonTime, WTSIncomingBytes, WTSOutgoingBytes, WTSIncomingFrames, WTSOutgoingFrames, WTSClientInfo, WTSSessionInfo, WTSSessionInfoEx, WTSConfigInfo, WTSValidationInfo, WTSSessionAddressV4, WTSIsRemoteSession#endif /* (NTDDI_VERSION >= NTDDI_WS08) */} WTS_INFO_CLASS;
typedef enum _WTS_CONNECTSTATE_CLASS{ WTSActive, WTSConnected, WTSConnectQuery, WTSShadow, WTSDisconnected, WTSIdle, WTSListen, WTSReset, WTSDown, WTSInit} WTS_CONNECTSTATE_CLASS;
typedef enum _WTS_CONFIG_CLASS{ WTSUserConfigInitialProgram, WTSUserConfigWorkingDirectory, WTSUserConfigInheritInitialProgram, WTSUserConfigAllowLogonTerminalServer, WTSUserConfigTimeoutSettingsConnections, WTSUserConfigTimeoutSettingsDisconnections, WTSUserConfigTimeoutSettingsIdle, WTSUserConfigDeviceClientDrives, WTSUserConfigDeviceClientPrinters, WTSUserConfigDeviceClientDefaultPrinter, WTSUserConfigBrokenTimeoutSettings, WTSUserConfigModemCallbackSettings, WTSUserConfigModemCallbackPhoneNumber, WTSUserConfigShadowSettings, WTSUserConfigTerminalServerProfilePath, WTSUserConfigTerminalServerHomeDirectory, WTSUserConfigfTerminalServerRemoteHomeDir} WTS_CONFIG_CLASS;
typedef enum _WTS_TYPE_CLASS{ WTSTypeProcessInfoLevel0, WTSTypeProcessInfoLevel1, WTSTypeSessionInfoLevel1} WTS_TYPE_CLASS;
typedef struct _WTS_PROCESS_INFOA{ DWORD SessionId; DWORD ProcessId; LPSTR pProcessName; PSID pUserSid;} WTS_PROCESS_INFOA, *PWTS_PROCESS_INFOA;
typedef struct _WTS_PROCESS_INFOW{ DWORD SessionId; DWORD ProcessId; LPWSTR pProcessName; PSID pUserSid;} WTS_PROCESS_INFOW, *PWTS_PROCESS_INFOW;
DECL_WINELIB_TYPE_AW(WTS_PROCESS_INFO)DECL_WINELIB_TYPE_AW(PWTS_PROCESS_INFO)
typedef struct _WTS_SESSION_INFOA{ DWORD SessionId; LPSTR pWinStationName; WTS_CONNECTSTATE_CLASS State;} WTS_SESSION_INFOA, *PWTS_SESSION_INFOA;
typedef struct _WTS_SESSION_INFOW{ DWORD SessionId; LPWSTR pWinStationName; WTS_CONNECTSTATE_CLASS State;} WTS_SESSION_INFOW, *PWTS_SESSION_INFOW;
DECL_WINELIB_TYPE_AW(WTS_SESSION_INFO)DECL_WINELIB_TYPE_AW(PWTS_SESSION_INFO)
typedef struct _WTS_SESSION_INFO_1A{ DWORD ExecEnvId; WTS_CONNECTSTATE_CLASS State; DWORD SessionId; char *pSessionName; char *pHostName; char *pUserName; char *pDomainName; char *pFarmName;} WTS_SESSION_INFO_1A, *PWTS_SESSION_INFO_1A;
typedef struct _WTS_SESSION_INFO_1W{ DWORD ExecEnvId; WTS_CONNECTSTATE_CLASS State; DWORD SessionId; WCHAR *pSessionName; WCHAR *pHostName; WCHAR *pUserName; WCHAR *pDomainName; WCHAR *pFarmName;} WTS_SESSION_INFO_1W, *PWTS_SESSION_INFO_1W;
DECL_WINELIB_TYPE_AW(WTS_SESSION_INFO_1)DECL_WINELIB_TYPE_AW(PWTS_SESSION_INFO_1)
typedef struct _WTS_SERVER_INFOA{ LPSTR pServerName;} WTS_SERVER_INFOA, *PWTS_SERVER_INFOA;
typedef struct _WTS_SERVER_INFOW{ LPWSTR pServerName;} WTS_SERVER_INFOW, *PWTS_SERVER_INFOW;
DECL_WINELIB_TYPE_AW(WTS_SERVER_INFO)DECL_WINELIB_TYPE_AW(PWTS_SERVER_INFO)
#define WTS_CURRENT_SERVER_HANDLE ((HANDLE)NULL)#define WTS_CURRENT_SESSION (~0u)
void WINAPI WTSCloseServer(HANDLE);BOOL WINAPI WTSConnectSessionA(ULONG, ULONG, PSTR, BOOL);BOOL WINAPI WTSConnectSessionW(ULONG, ULONG, PWSTR, BOOL);#define WTSConnectSession WINELIB_NAME_AW(WTSConnectSession)BOOL WINAPI WTSDisconnectSession(HANDLE, DWORD, BOOL);BOOL WINAPI WTSEnableChildSessions(BOOL);BOOL WINAPI WTSEnumerateProcessesA(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOA *, DWORD *);BOOL WINAPI WTSEnumerateProcessesW(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOW *, DWORD *);#define WTSEnumerateProcesses WINELIB_NAME_AW(WTSEnumerateProcesses)BOOL WINAPI WTSEnumerateServersA( LPSTR, DWORD, DWORD, PWTS_SERVER_INFOA*, DWORD*);BOOL WINAPI WTSEnumerateServersW( LPWSTR, DWORD, DWORD, PWTS_SERVER_INFOW*, DWORD*);#define WTSEnumerateServers WINELIB_NAME_AW(WTSEnumerateServers)BOOL WINAPI WTSEnumerateSessionsA(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOA *, DWORD *);BOOL WINAPI WTSEnumerateSessionsW(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOW *, DWORD *);#define WTSEnumerateSessions WINELIB_NAME_AW(WTSEnumerateSessions)void WINAPI WTSFreeMemory(PVOID);HANDLE WINAPI WTSOpenServerA(LPSTR);HANDLE WINAPI WTSOpenServerW(LPWSTR);#define WTSOpenServer WINELIB_NAME_AW(WTSOpenServer)BOOL WINAPI WTSQuerySessionInformationA(HANDLE, DWORD, WTS_INFO_CLASS, LPSTR *, DWORD *);BOOL WINAPI WTSQuerySessionInformationW(HANDLE, DWORD, WTS_INFO_CLASS, LPWSTR *, DWORD *);#define WTSQuerySessionInformation WINELIB_NAME_AW(WTSQuerySessionInformation)BOOL WINAPI WTSQueryUserConfigA(LPSTR,LPSTR,WTS_CONFIG_CLASS,LPSTR*,DWORD*);BOOL WINAPI WTSQueryUserConfigW(LPWSTR,LPWSTR,WTS_CONFIG_CLASS,LPWSTR*,DWORD*);#define WTSQueryUserConfig WINELIB_NAME_AW(WTSQueryUserConfig)BOOL WINAPI WTSQueryUserToken(ULONG, PHANDLE);BOOL WINAPI WTSRegisterSessionNotification(HWND, DWORD);BOOL WINAPI WTSRegisterSessionNotificationEx(HANDLE, HWND, DWORD);BOOL WINAPI WTSStartRemoteControlSessionA(LPSTR, ULONG, BYTE, USHORT);BOOL WINAPI WTSStartRemoteControlSessionW(LPWSTR, ULONG, BYTE, USHORT);#define WTSStartRemoteControlSession WINELIB_NAME_AW(WTSStartRemoteControlSession)BOOL WINAPI WTSStopRemoteControlSession(ULONG);BOOL WINAPI WTSTerminateProcess(HANDLE, DWORD, DWORD);BOOL WINAPI WTSUnRegisterSessionNotification(HWND);BOOL WINAPI WTSUnRegisterSessionNotificationEx(HANDLE, HWND);BOOL WINAPI WTSWaitSystemEvent(HANDLE, DWORD, DWORD*);
#ifdef __cplusplus}#endif
#endif