Stub implementations for WTSCloseServer, WTSDisconnectSession,
[wine] / include / wtsapi32.h
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #ifndef __WINE_WTSAPI32_H
20 #define __WINE_WTSAPI32_H
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26
27 typedef enum tagWTS_INFO_CLASS
28 {
29     WTSInitialProgram,
30     WTSApplicationName,
31     WTSWorkingDirectory,
32     WTSOEMId,
33     WTSSessionId,
34     WTSUserName,
35     WTSWinStationName,
36     WTSDomainName,
37     WTSConnectState,
38     WTSClientBuildNumber,
39     WTSClientName,
40     WTSClientDirectory,
41     WTSClientProductId,
42     WTSClientHardwareId,
43     WTSClientAddress,
44     WTSClientDisplay,
45     WTSClientProtocolType,
46 } WTS_INFO_CLASS;
47
48 typedef enum _WTS_CONNECTSTATE_CLASS
49 {
50     WTSActive,
51     WTSConnected,
52     WTSConnectQuery,
53     WTSShadow,
54     WTSDisconnected,
55     WTSIdle,
56     WTSListen,
57     WTSReset,
58     WTSDown,
59     WTSInit
60 } WTS_CONNECTSTATE_CLASS;
61
62 typedef struct _WTS_PROCESS_INFOA
63 {
64     DWORD SessionId;
65     DWORD ProcessId;
66     LPSTR pProcessName;
67     PSID pUserSid;
68 } WTS_PROCESS_INFOA, *PWTS_PROCESS_INFOA;
69
70 typedef struct _WTS_PROCESS_INFOW
71 {
72     DWORD SessionId;
73     DWORD ProcessId;
74     LPWSTR pProcessName;
75     PSID pUserSid;
76 } WTS_PROCESS_INFOW, *PWTS_PROCESS_INFOW;
77
78 typedef struct _WTS_SESSION_INFOA
79 {
80     DWORD SessionId;
81     LPSTR pWinStationName;
82     WTS_CONNECTSTATE_CLASS State;
83 } WTS_SESSION_INFOA, *PWTS_SESSION_INFOA;
84
85 typedef struct _WTS_SESSION_INFOW
86 {
87     DWORD SessionId;
88     LPWSTR pWinStationName;
89     WTS_CONNECTSTATE_CLASS State;
90 } WTS_SESSION_INFOW, *PWTS_SESSION_INFOW;
91
92 BOOL WINAPI WTSQuerySessionInformationW(
93     HANDLE hServer,
94     DWORD SessionId,
95     WTS_INFO_CLASS WTSInfoClass,
96     LPWSTR * Buffer,
97     DWORD * BytesReturned
98     );
99
100 BOOL WINAPI WTSQuerySessionInformationA(
101     HANDLE hServer,
102     DWORD SessionId,
103     WTS_INFO_CLASS WTSInfoClass,
104     LPSTR * Buffer,
105     DWORD * BytesReturned
106     );
107 #define WTSQuerySessionInformation WINELIB_NAME_AW(WTSQuerySessionInformation)
108
109 BOOL WINAPI WTSWaitSystemEvent(HANDLE hServer, DWORD Mask, DWORD* Flags);
110
111 #ifdef __cplusplus
112 }
113 #endif
114
115 #endif