Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenwtsapi32.h
Go to the documentation of this file.
00001 /* 00002 * Copyright 2005 Ulrich Czekalla (For CodeWeavers) 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00017 */ 00018 00019 #ifndef __WINE_WTSAPI32_H 00020 #define __WINE_WTSAPI32_H 00021 00022 #ifdef __cplusplus 00023 extern "C" { 00024 #endif 00025 00026 00027 typedef enum _WTS_VIRTUAL_CLASS 00028 { 00029 WTSVirtualClientData, 00030 WTSVirtualFileHandle 00031 } WTS_VIRTUAL_CLASS; 00032 00033 typedef enum tagWTS_INFO_CLASS 00034 { 00035 WTSInitialProgram, 00036 WTSApplicationName, 00037 WTSWorkingDirectory, 00038 WTSOEMId, 00039 WTSSessionId, 00040 WTSUserName, 00041 WTSWinStationName, 00042 WTSDomainName, 00043 WTSConnectState, 00044 WTSClientBuildNumber, 00045 WTSClientName, 00046 WTSClientDirectory, 00047 WTSClientProductId, 00048 WTSClientHardwareId, 00049 WTSClientAddress, 00050 WTSClientDisplay, 00051 WTSClientProtocolType, 00052 } WTS_INFO_CLASS; 00053 00054 typedef enum _WTS_CONNECTSTATE_CLASS 00055 { 00056 WTSActive, 00057 WTSConnected, 00058 WTSConnectQuery, 00059 WTSShadow, 00060 WTSDisconnected, 00061 WTSIdle, 00062 WTSListen, 00063 WTSReset, 00064 WTSDown, 00065 WTSInit 00066 } WTS_CONNECTSTATE_CLASS; 00067 00068 typedef enum _WTS_CONFIG_CLASS 00069 { 00070 WTSUserConfigInitialProgram, 00071 WTSUserConfigWorkingDirectory, 00072 WTSUserConfigInheritInitialProgram, 00073 WTSUserConfigAllowLogonTerminalServer, 00074 WTSUserConfigTimeoutSettingsConnections, 00075 WTSUserConfigTimeoutSettingsDisconnections, 00076 WTSUserConfigTimeoutSettingsIdle, 00077 WTSUserConfigDeviceClientDrives, 00078 WTSUserConfigDeviceClientPrinters, 00079 WTSUserConfigDeviceClientDefaultPrinter, 00080 WTSUserConfigBrokenTimeoutSettings, 00081 WTSUserConfigModemCallbackSettings, 00082 WTSUserConfigModemCallbackPhoneNumber, 00083 WTSUserConfigShadowSettings, 00084 WTSUserConfigTerminalServerProfilePath, 00085 WTSUserConfigTerminalServerHomeDirectory, 00086 WTSUserConfigfTerminalServerRemoteHomeDir 00087 } WTS_CONFIG_CLASS; 00088 00089 typedef struct _WTS_PROCESS_INFOA 00090 { 00091 DWORD SessionId; 00092 DWORD ProcessId; 00093 LPSTR pProcessName; 00094 PSID pUserSid; 00095 } WTS_PROCESS_INFOA, *PWTS_PROCESS_INFOA; 00096 00097 typedef struct _WTS_PROCESS_INFOW 00098 { 00099 DWORD SessionId; 00100 DWORD ProcessId; 00101 LPWSTR pProcessName; 00102 PSID pUserSid; 00103 } WTS_PROCESS_INFOW, *PWTS_PROCESS_INFOW; 00104 00105 DECL_WINELIB_TYPE_AW(WTS_PROCESS_INFO) 00106 DECL_WINELIB_TYPE_AW(PWTS_PROCESS_INFO) 00107 00108 typedef struct _WTS_SESSION_INFOA 00109 { 00110 DWORD SessionId; 00111 LPSTR pWinStationName; 00112 WTS_CONNECTSTATE_CLASS State; 00113 } WTS_SESSION_INFOA, *PWTS_SESSION_INFOA; 00114 00115 typedef struct _WTS_SESSION_INFOW 00116 { 00117 DWORD SessionId; 00118 LPWSTR pWinStationName; 00119 WTS_CONNECTSTATE_CLASS State; 00120 } WTS_SESSION_INFOW, *PWTS_SESSION_INFOW; 00121 00122 DECL_WINELIB_TYPE_AW(WTS_SESSION_INFO) 00123 DECL_WINELIB_TYPE_AW(PWTS_SESSION_INFO) 00124 00125 typedef struct _WTS_SERVER_INFOA 00126 { 00127 LPSTR pServerName; 00128 } WTS_SERVER_INFOA, *PWTS_SERVER_INFOA; 00129 00130 typedef struct _WTS_SERVER_INFOW 00131 { 00132 LPWSTR pServerName; 00133 } WTS_SERVER_INFOW, *PWTS_SERVER_INFOW; 00134 00135 DECL_WINELIB_TYPE_AW(WTS_SERVER_INFO) 00136 DECL_WINELIB_TYPE_AW(PWTS_SERVER_INFO) 00137 00138 void WINAPI WTSCloseServer(HANDLE); 00139 BOOL WINAPI WTSConnectSessionA(ULONG, ULONG, PSTR, BOOL); 00140 BOOL WINAPI WTSConnectSessionW(ULONG, ULONG, PWSTR, BOOL); 00141 #define WTSConnectSession WINELIB_NAME_AW(WTSConnectSession) 00142 BOOL WINAPI WTSDisconnectSession(HANDLE, DWORD, BOOL); 00143 BOOL WINAPI WTSEnumerateProcessesA(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOA *, DWORD *); 00144 BOOL WINAPI WTSEnumerateProcessesW(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOW *, DWORD *); 00145 #define WTSEnumerateProcesses WINELIB_NAME_AW(WTSEnumerateProcesses) 00146 BOOL WINAPI WTSEnumerateServersA( LPSTR, DWORD, DWORD, PWTS_SERVER_INFOA*, DWORD*); 00147 BOOL WINAPI WTSEnumerateServersW( LPWSTR, DWORD, DWORD, PWTS_SERVER_INFOW*, DWORD*); 00148 #define WTSEnumerateServers WINELIB_NAME_AW(WTSEnumerateServers) 00149 BOOL WINAPI WTSEnumerateSessionsA(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOA *, DWORD *); 00150 BOOL WINAPI WTSEnumerateSessionsW(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOW *, DWORD *); 00151 #define WTSEnumerateSessions WINELIB_NAME_AW(WTSEnumerateSessions) 00152 void WINAPI WTSFreeMemory(PVOID); 00153 HANDLE WINAPI WTSOpenServerA(LPSTR); 00154 HANDLE WINAPI WTSOpenServerW(LPWSTR); 00155 #define WTSOpenServer WINELIB_NAME_AW(WTSOpenServer) 00156 BOOL WINAPI WTSQuerySessionInformationA(HANDLE, DWORD, WTS_INFO_CLASS, LPSTR *, DWORD *); 00157 BOOL WINAPI WTSQuerySessionInformationW(HANDLE, DWORD, WTS_INFO_CLASS, LPWSTR *, DWORD *); 00158 #define WTSQuerySessionInformation WINELIB_NAME_AW(WTSQuerySessionInformation) 00159 BOOL WINAPI WTSQueryUserConfigA(LPSTR,LPSTR,WTS_CONFIG_CLASS,LPSTR*,DWORD*); 00160 BOOL WINAPI WTSQueryUserConfigW(LPWSTR,LPWSTR,WTS_CONFIG_CLASS,LPWSTR*,DWORD*); 00161 #define WTSQueryUserConfig WINELIB_NAME_AW(WTSQueryUserConfig) 00162 BOOL WINAPI WTSQueryUserToken(ULONG, PHANDLE); 00163 BOOL WINAPI WTSRegisterSessionNotification(HWND, DWORD); 00164 BOOL WINAPI WTSRegisterSessionNotificationEx(HANDLE, HWND, DWORD); 00165 BOOL WINAPI WTSStartRemoteControlSessionA(LPSTR, ULONG, BYTE, USHORT); 00166 BOOL WINAPI WTSStartRemoteControlSessionW(LPWSTR, ULONG, BYTE, USHORT); 00167 #define WTSStartRemoteControlSession WINELIB_NAME_AW(WTSStartRemoteControlSession) 00168 BOOL WINAPI WTSStopRemoteControlSession(ULONG); 00169 BOOL WINAPI WTSTerminateProcess(HANDLE, DWORD, DWORD); 00170 BOOL WINAPI WTSUnRegisterSessionNotification(HWND); 00171 BOOL WINAPI WTSUnRegisterSessionNotificationEx(HANDLE, HWND); 00172 BOOL WINAPI WTSWaitSystemEvent(HANDLE, DWORD, DWORD*); 00173 00174 #ifdef __cplusplus 00175 } 00176 #endif 00177 00178 #endif Generated on Sun May 27 2012 04:33:05 for ReactOS by
1.7.6.1
|