VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/wtsapi32.h@ 96080

最後變更 在這個檔案從96080是 53206,由 vboxsync 提交於 10 年 前

Devices/vmsvga: header fixes

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 6.2 KB
 
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 * Oracle 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, Oracle 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 _WTS_VIRTUAL_CLASS
37{
38 WTSVirtualClientData,
39 WTSVirtualFileHandle
40} WTS_VIRTUAL_CLASS;
41
42typedef enum tagWTS_INFO_CLASS
43{
44 WTSInitialProgram,
45 WTSApplicationName,
46 WTSWorkingDirectory,
47 WTSOEMId,
48 WTSSessionId,
49 WTSUserName,
50 WTSWinStationName,
51 WTSDomainName,
52 WTSConnectState,
53 WTSClientBuildNumber,
54 WTSClientName,
55 WTSClientDirectory,
56 WTSClientProductId,
57 WTSClientHardwareId,
58 WTSClientAddress,
59 WTSClientDisplay,
60 WTSClientProtocolType,
61} WTS_INFO_CLASS;
62
63typedef enum _WTS_CONNECTSTATE_CLASS
64{
65 WTSActive,
66 WTSConnected,
67 WTSConnectQuery,
68 WTSShadow,
69 WTSDisconnected,
70 WTSIdle,
71 WTSListen,
72 WTSReset,
73 WTSDown,
74 WTSInit
75} WTS_CONNECTSTATE_CLASS;
76
77typedef enum _WTS_CONFIG_CLASS
78{
79 WTSUserConfigInitialProgram,
80 WTSUserConfigWorkingDirectory,
81 WTSUserConfigInheritInitialProgram,
82 WTSUserConfigAllowLogonTerminalServer,
83 WTSUserConfigTimeoutSettingsConnections,
84 WTSUserConfigTimeoutSettingsDisconnections,
85 WTSUserConfigTimeoutSettingsIdle,
86 WTSUserConfigDeviceClientDrives,
87 WTSUserConfigDeviceClientPrinters,
88 WTSUserConfigDeviceClientDefaultPrinter,
89 WTSUserConfigBrokenTimeoutSettings,
90 WTSUserConfigModemCallbackSettings,
91 WTSUserConfigModemCallbackPhoneNumber,
92 WTSUserConfigShadowSettings,
93 WTSUserConfigTerminalServerProfilePath,
94 WTSUserConfigTerminalServerHomeDirectory,
95 WTSUserConfigfTerminalServerRemoteHomeDir
96} WTS_CONFIG_CLASS;
97
98typedef struct _WTS_PROCESS_INFOA
99{
100 DWORD SessionId;
101 DWORD ProcessId;
102 LPSTR pProcessName;
103 PSID pUserSid;
104} WTS_PROCESS_INFOA, *PWTS_PROCESS_INFOA;
105
106typedef struct _WTS_PROCESS_INFOW
107{
108 DWORD SessionId;
109 DWORD ProcessId;
110 LPWSTR pProcessName;
111 PSID pUserSid;
112} WTS_PROCESS_INFOW, *PWTS_PROCESS_INFOW;
113
114DECL_WINELIB_TYPE_AW(WTS_PROCESS_INFO)
115DECL_WINELIB_TYPE_AW(PWTS_PROCESS_INFO)
116
117typedef struct _WTS_SESSION_INFOA
118{
119 DWORD SessionId;
120 LPSTR pWinStationName;
121 WTS_CONNECTSTATE_CLASS State;
122} WTS_SESSION_INFOA, *PWTS_SESSION_INFOA;
123
124typedef struct _WTS_SESSION_INFOW
125{
126 DWORD SessionId;
127 LPWSTR pWinStationName;
128 WTS_CONNECTSTATE_CLASS State;
129} WTS_SESSION_INFOW, *PWTS_SESSION_INFOW;
130
131DECL_WINELIB_TYPE_AW(WTS_SESSION_INFO)
132DECL_WINELIB_TYPE_AW(PWTS_SESSION_INFO)
133
134typedef struct _WTS_SERVER_INFOA
135{
136 LPSTR pServerName;
137} WTS_SERVER_INFOA, *PWTS_SERVER_INFOA;
138
139typedef struct _WTS_SERVER_INFOW
140{
141 LPWSTR pServerName;
142} WTS_SERVER_INFOW, *PWTS_SERVER_INFOW;
143
144DECL_WINELIB_TYPE_AW(WTS_SERVER_INFO)
145DECL_WINELIB_TYPE_AW(PWTS_SERVER_INFO)
146
147void WINAPI WTSCloseServer(HANDLE);
148BOOL WINAPI WTSConnectSessionA(ULONG, ULONG, PSTR, BOOL);
149BOOL WINAPI WTSConnectSessionW(ULONG, ULONG, PWSTR, BOOL);
150#define WTSConnectSession WINELIB_NAME_AW(WTSConnectSession)
151BOOL WINAPI WTSDisconnectSession(HANDLE, DWORD, BOOL);
152BOOL WINAPI WTSEnumerateProcessesA(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOA *, DWORD *);
153BOOL WINAPI WTSEnumerateProcessesW(HANDLE, DWORD, DWORD, PWTS_PROCESS_INFOW *, DWORD *);
154#define WTSEnumerateProcesses WINELIB_NAME_AW(WTSEnumerateProcesses)
155BOOL WINAPI WTSEnumerateServersA( LPSTR, DWORD, DWORD, PWTS_SERVER_INFOA*, DWORD*);
156BOOL WINAPI WTSEnumerateServersW( LPWSTR, DWORD, DWORD, PWTS_SERVER_INFOW*, DWORD*);
157#define WTSEnumerateServers WINELIB_NAME_AW(WTSEnumerateServers)
158BOOL WINAPI WTSEnumerateSessionsA(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOA *, DWORD *);
159BOOL WINAPI WTSEnumerateSessionsW(HANDLE, DWORD, DWORD, PWTS_SESSION_INFOW *, DWORD *);
160#define WTSEnumerateSessions WINELIB_NAME_AW(WTSEnumerateSessions)
161void WINAPI WTSFreeMemory(PVOID);
162HANDLE WINAPI WTSOpenServerA(LPSTR);
163HANDLE WINAPI WTSOpenServerW(LPWSTR);
164#define WTSOpenServer WINELIB_NAME_AW(WTSOpenServer)
165BOOL WINAPI WTSQuerySessionInformationA(HANDLE, DWORD, WTS_INFO_CLASS, LPSTR *, DWORD *);
166BOOL WINAPI WTSQuerySessionInformationW(HANDLE, DWORD, WTS_INFO_CLASS, LPWSTR *, DWORD *);
167#define WTSQuerySessionInformation WINELIB_NAME_AW(WTSQuerySessionInformation)
168BOOL WINAPI WTSQueryUserConfigA(LPSTR,LPSTR,WTS_CONFIG_CLASS,LPSTR*,DWORD*);
169BOOL WINAPI WTSQueryUserConfigW(LPWSTR,LPWSTR,WTS_CONFIG_CLASS,LPWSTR*,DWORD*);
170#define WTSQueryUserConfig WINELIB_NAME_AW(WTSQueryUserConfig)
171BOOL WINAPI WTSQueryUserToken(ULONG, PHANDLE);
172BOOL WINAPI WTSRegisterSessionNotification(HWND, DWORD);
173BOOL WINAPI WTSRegisterSessionNotificationEx(HANDLE, HWND, DWORD);
174BOOL WINAPI WTSStartRemoteControlSessionA(LPSTR, ULONG, BYTE, USHORT);
175BOOL WINAPI WTSStartRemoteControlSessionW(LPWSTR, ULONG, BYTE, USHORT);
176#define WTSStartRemoteControlSession WINELIB_NAME_AW(WTSStartRemoteControlSession)
177BOOL WINAPI WTSStopRemoteControlSession(ULONG);
178BOOL WINAPI WTSTerminateProcess(HANDLE, DWORD, DWORD);
179BOOL WINAPI WTSUnRegisterSessionNotification(HWND);
180BOOL WINAPI WTSUnRegisterSessionNotificationEx(HANDLE, HWND);
181BOOL WINAPI WTSWaitSystemEvent(HANDLE, DWORD, DWORD*);
182
183#ifdef __cplusplus
184}
185#endif
186
187#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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