VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/wtsapi32.h@ 33281

Last change on this file since 33281 was 16477, checked in by vboxsync, 16 years ago

LGPL disclaimer by filemuncher

  • Property svn:eol-style set to native
File size: 5.7 KB
Line 
1/*
2 * Copyright 2005 Ulrich Czekalla (For CodeWeavers)
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef __WINE_WTSAPI32_H
29#define __WINE_WTSAPI32_H
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
35
36typedef enum tagWTS_INFO_CLASS
37{
38 WTSInitialProgram,
39 WTSApplicationName,
40 WTSWorkingDirectory,
41 WTSOEMId,
42 WTSSessionId,
43 WTSUserName,
44 WTSWinStationName,
45 WTSDomainName,
46 WTSConnectState,
47 WTSClientBuildNumber,
48 WTSClientName,
49 WTSClientDirectory,
50 WTSClientProductId,
51 WTSClientHardwareId,
52 WTSClientAddress,
53 WTSClientDisplay,
54 WTSClientProtocolType,
55} WTS_INFO_CLASS;
56
57typedef enum _WTS_CONNECTSTATE_CLASS
58{
59 WTSActive,
60 WTSConnected,
61 WTSConnectQuery,
62 WTSShadow,
63 WTSDisconnected,
64 WTSIdle,
65 WTSListen,
66 WTSReset,
67 WTSDown,
68 WTSInit
69} WTS_CONNECTSTATE_CLASS;
70
71typedef enum _WTS_CONFIG_CLASS
72{
73 WTSUserConfigInitialProgram,
74 WTSUserConfigWorkingDirectory,
75 WTSUserConfigInheritInitialProgram,
76 WTSUserConfigAllowLogonTerminalServer,
77 WTSUserConfigTimeoutSettingsConnections,
78 WTSUserConfigTimeoutSettingsDisconnections,
79 WTSUserConfigTimeoutSettingsIdle,
80 WTSUserConfigDeviceClientDrives,
81 WTSUserConfigDeviceClientPrinters,
82 WTSUserConfigDeviceClientDefaultPrinter,
83 WTSUserConfigBrokenTimeoutSettings,
84 WTSUserConfigModemCallbackSettings,
85 WTSUserConfigModemCallbackPhoneNumber,
86 WTSUserConfigShadowSettings,
87 WTSUserConfigTerminalServerProfilePath,
88 WTSUserConfigTerminalServerHomeDirectory,
89 WTSUserConfigfTerminalServerRemoteHomeDir
90} WTS_CONFIG_CLASS;
91
92typedef struct _WTS_PROCESS_INFOA
93{
94 DWORD SessionId;
95 DWORD ProcessId;
96 LPSTR pProcessName;
97 PSID pUserSid;
98} WTS_PROCESS_INFOA, *PWTS_PROCESS_INFOA;
99
100typedef struct _WTS_PROCESS_INFOW
101{
102 DWORD SessionId;
103 DWORD ProcessId;
104 LPWSTR pProcessName;
105 PSID pUserSid;
106} WTS_PROCESS_INFOW, *PWTS_PROCESS_INFOW;
107
108DECL_WINELIB_TYPE_AW(WTS_PROCESS_INFO)
109DECL_WINELIB_TYPE_AW(PWTS_PROCESS_INFO)
110
111typedef struct _WTS_SESSION_INFOA
112{
113 DWORD SessionId;
114 LPSTR pWinStationName;
115 WTS_CONNECTSTATE_CLASS State;
116} WTS_SESSION_INFOA, *PWTS_SESSION_INFOA;
117
118typedef struct _WTS_SESSION_INFOW
119{
120 DWORD SessionId;
121 LPWSTR pWinStationName;
122 WTS_CONNECTSTATE_CLASS State;
123} WTS_SESSION_INFOW, *PWTS_SESSION_INFOW;
124
125DECL_WINELIB_TYPE_AW(WTS_SESSION_INFO)
126DECL_WINELIB_TYPE_AW(PWTS_SESSION_INFO)
127
128typedef struct _WTS_SERVER_INFOA
129{
130 LPSTR pServerName;
131} WTS_SERVER_INFOA, *PWTS_SERVER_INFOA;
132
133typedef struct _WTS_SERVER_INFOW
134{
135 LPWSTR pServerName;
136} WTS_SERVER_INFOW, *PWTS_SERVER_INFOW;
137
138DECL_WINELIB_TYPE_AW(WTS_SERVER_INFO)
139DECL_WINELIB_TYPE_AW(PWTS_SERVER_INFO)
140
141void WINAPI WTSCloseServer(HANDLE);
142BOOL WINAPI WTSDisconnectSession(HANDLE, DWORD, BOOL);
143BOOL WINAPI WTSEnumerateProcessesA(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOA *, DWORD *);
144BOOL WINAPI WTSEnumerateProcessesW(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOW *, DWORD *);
145#define WTSEnumerateProcesses WINELIB_NAME_AW(WTSEnumerateProcesses)
146BOOL WINAPI WTSEnumerateServersA( LPSTR, DWORD, DWORD, PWTS_SERVER_INFOA*, DWORD*);
147BOOL WINAPI WTSEnumerateServersW( LPWSTR, DWORD, DWORD, PWTS_SERVER_INFOW*, DWORD*);
148#define WTSEnumerateServers WINELIB_NAME_AW(WTSEnumerateServers)
149BOOL WINAPI WTSEnumerateSessionsA(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOA *, DWORD *);
150BOOL WINAPI WTSEnumerateSessionsW(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOW *, DWORD *);
151#define WTSEnumerateSessions WINELIB_NAME_AW(WTSEnumerateSessions)
152void WINAPI WTSFreeMemory(PVOID);
153HANDLE WINAPI WTSOpenServerA(LPSTR);
154HANDLE WINAPI WTSOpenServerW(LPWSTR);
155#define WTSOpenServer WINELIB_NAME_AW(WTSOpenServer)
156BOOL WINAPI WTSQuerySessionInformationA(HANDLE, DWORD, WTS_INFO_CLASS, LPSTR *, DWORD *);
157BOOL WINAPI WTSQuerySessionInformationW(HANDLE, DWORD, WTS_INFO_CLASS, LPWSTR *, DWORD *);
158#define WTSQuerySessionInformation WINELIB_NAME_AW(WTSQuerySessionInformation)
159BOOL WINAPI WTSQueryUserConfigA(LPSTR,LPSTR,WTS_CONFIG_CLASS,LPSTR*,DWORD*);
160BOOL WINAPI WTSQueryUserConfigW(LPWSTR,LPWSTR,WTS_CONFIG_CLASS,LPWSTR*,DWORD*);
161#define WTSQueryUserConfig WINELIB_NAME_AW(WTSQueryUserConfig)
162BOOL WINAPI WTSQueryUserToken(ULONG, PHANDLE);
163BOOL WINAPI WTSRegisterSessionNotification(HWND, DWORD);
164BOOL WINAPI WTSRegisterSessionNotificationEx(HANDLE, HWND, DWORD);
165BOOL WINAPI WTSTerminateProcess(HANDLE, DWORD, DWORD);
166BOOL WINAPI WTSUnRegisterSessionNotification(HWND);
167BOOL WINAPI WTSUnRegisterSessionNotificationEx(HANDLE, HWND);
168BOOL WINAPI WTSWaitSystemEvent(HANDLE, DWORD, DWORD*);
169
170#ifdef __cplusplus
171}
172#endif
173
174#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette