Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / include / wtsapi32.h
bloba7213b882ceb6533cf1e1bfe411a834c6a60e674
1 #ifndef _WTSAPI32_H
2 #define _WTSAPI32_H
3 #if __GNUC__ >= 3
4 #pragma GCC system_header
5 #endif
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
11 #if (_WIN32_WINNT >= 0x0501)
12 // session notification message
13 #define WM_WTSSESSION_CHANGE 0x02B1
15 // session notification message flags
16 #define WTS_CONSOLE_CONNECT 0x1
17 #define WTS_CONSOLE_DISCONNECT 0x2
18 #define WTS_REMOTE_CONNECT 0x3
19 #define WTS_REMOTE_DISCONNECT 0x4
20 #define WTS_SESSION_LOGON 0x5
21 #define WTS_SESSION_LOGOFF 0x6
22 #define WTS_SESSION_LOCK 0x7
23 #define WTS_SESSION_UNLOCK 0x8
24 #define WTS_SESSION_REMOTE_CONTROL 0x9
26 // WTSRegisterSessionNotifiction flags
27 #define NOTIFY_FOR_THIS_SESSION 0
28 #define NOTIFY_FOR_ALL_SESSIONS 1
30 BOOL WINAPI WTSRegisterSessionNotification(HWND hWnd, DWORD dwFlags);
31 BOOL WINAPI WTSUnRegisterSessionNotification(HWND hWnd);
32 #endif /* _WIN32_WINNT >= 0x0501 */
34 #if (_WIN32_WINNT >= 0x0500)
36 // WTSWaitSystemEvent local server handle
37 #define WTS_CURRENT_SERVER_HANDLE 0
39 // WTSWaitSystemEvent flags
40 #define WTS_EVENT_NONE 0x00000000
41 #define WTS_EVENT_CREATE 0x00000001
42 #define WTS_EVENT_DELETE 0x00000002
43 #define WTS_EVENT_RENAME 0x00000004
44 #define WTS_EVENT_CONNECT 0x00000008
45 #define WTS_EVENT_DISCONNECT 0x00000010
46 #define WTS_EVENT_LOGON 0x00000020
47 #define WTS_EVENT_LOGOFF 0x00000040
48 #define WTS_EVENT_STATECHANGE 0x00000080
49 #define WTS_EVENT_LICENSE 0x00000100
50 #define WTS_EVENT_ALL 0x7FFFFFFF
51 #define WTS_EVENT_FLUSH 0x80000000
53 BOOL WINAPI WTSWaitSystemEvent(HANDLE hServer, DWORD EventMask, DWORD* pEventFlags);
54 #endif /* _WIN32_WINNT >= 0x0500 */
56 #ifdef __cplusplus
58 #endif
60 #endif /* _WTSAPI32_H */