2009-08-30 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/wtsapi32.h (WTSQuerySessionInformationA, WTSQuerySessionInformationW, WTSQuerySessionInformation, WTSFreeMemory): Moved to (_WIN32_WINNT >= 0x0500) guard. (thanks to Pierre Ossman)
This commit is contained in:
parent
96d3d07383
commit
89b883512d
|
@ -1,3 +1,10 @@
|
||||||
|
2009-08-30 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
|
||||||
|
|
||||||
|
* include/wtsapi32.h (WTSQuerySessionInformationA,
|
||||||
|
WTSQuerySessionInformationW, WTSQuerySessionInformation, WTSFreeMemory):
|
||||||
|
Moved to (_WIN32_WINNT >= 0x0500) guard.
|
||||||
|
(thanks to Pierre Ossman)
|
||||||
|
|
||||||
2009-08-09 Andy Koppe <andy.koppe@gmail.com>
|
2009-08-09 Andy Koppe <andy.koppe@gmail.com>
|
||||||
|
|
||||||
* include/winnls.h (IS_HIGH_SURROGATE, IS_LOW_SURROGATE,
|
* include/winnls.h (IS_HIGH_SURROGATE, IS_LOW_SURROGATE,
|
||||||
|
|
|
@ -70,18 +70,7 @@ typedef enum _WTS_CONNECTSTATE_CLASS {
|
||||||
|
|
||||||
BOOL WINAPI WTSRegisterSessionNotification(HWND hWnd, DWORD dwFlags);
|
BOOL WINAPI WTSRegisterSessionNotification(HWND hWnd, DWORD dwFlags);
|
||||||
BOOL WINAPI WTSUnRegisterSessionNotification(HWND hWnd);
|
BOOL WINAPI WTSUnRegisterSessionNotification(HWND hWnd);
|
||||||
BOOL WINAPI WTSQuerySessionInformationA(HANDLE hServer, DWORD SessionId, WTS_INFO_CLASS WTSInfoClass,
|
|
||||||
LPSTR *ppBuffer, DWORD *pBytesReturned);
|
|
||||||
BOOL WINAPI WTSQuerySessionInformationW(HANDLE hServer, DWORD SessionId, WTS_INFO_CLASS WTSInfoClass,
|
|
||||||
LPTSTR *ppBuffer, DWORD *pBytesReturned);
|
|
||||||
BOOL WINAPI WTSQueryUserToken(ULONG SessionId, PHANDLE pToken);
|
BOOL WINAPI WTSQueryUserToken(ULONG SessionId, PHANDLE pToken);
|
||||||
void WINAPI WTSFreeMemory(PVOID pMemory);
|
|
||||||
|
|
||||||
#ifdef UNICODE
|
|
||||||
#define WTSQuerySessionInformation WTSQuerySessionInformationW
|
|
||||||
#else
|
|
||||||
#define WTSQuerySessionInformation WTSQuerySessionInformationA
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _WIN32_WINNT >= 0x0501 */
|
#endif /* _WIN32_WINNT >= 0x0501 */
|
||||||
|
|
||||||
|
@ -125,6 +114,10 @@ typedef struct _WTS_SESSION_INFOA {
|
||||||
#define WTS_EVENT_ALL 0x7FFFFFFF
|
#define WTS_EVENT_ALL 0x7FFFFFFF
|
||||||
#define WTS_EVENT_FLUSH 0x80000000
|
#define WTS_EVENT_FLUSH 0x80000000
|
||||||
|
|
||||||
|
BOOL WINAPI WTSQuerySessionInformationA(HANDLE hServer, DWORD SessionId, WTS_INFO_CLASS WTSInfoClass,
|
||||||
|
LPSTR *ppBuffer, DWORD *pBytesReturned);
|
||||||
|
BOOL WINAPI WTSQuerySessionInformationW(HANDLE hServer, DWORD SessionId, WTS_INFO_CLASS WTSInfoClass,
|
||||||
|
LPTSTR *ppBuffer, DWORD *pBytesReturned);
|
||||||
BOOL WINAPI WTSWaitSystemEvent(HANDLE hServer, DWORD EventMask, DWORD* pEventFlags);
|
BOOL WINAPI WTSWaitSystemEvent(HANDLE hServer, DWORD EventMask, DWORD* pEventFlags);
|
||||||
BOOL WINAPI WTSDisconnectSession(HANDLE hServer, DWORD SessionId, BOOL bWait);
|
BOOL WINAPI WTSDisconnectSession(HANDLE hServer, DWORD SessionId, BOOL bWait);
|
||||||
BOOL WINAPI WTSEnumerateSessionsW(HANDLE hServer, DWORD Reserved, DWORD Version,
|
BOOL WINAPI WTSEnumerateSessionsW(HANDLE hServer, DWORD Reserved, DWORD Version,
|
||||||
|
@ -133,11 +126,14 @@ BOOL WINAPI WTSEnumerateSessionsW(HANDLE hServer, DWORD Reserved, DWORD Version,
|
||||||
BOOL WINAPI WTSEnumerateSessionsA(HANDLE hServer, DWORD Reserved, DWORD Version,
|
BOOL WINAPI WTSEnumerateSessionsA(HANDLE hServer, DWORD Reserved, DWORD Version,
|
||||||
PWTS_SESSION_INFOA *ppSessionInfo,
|
PWTS_SESSION_INFOA *ppSessionInfo,
|
||||||
PDWORD pCount);
|
PDWORD pCount);
|
||||||
|
void WINAPI WTSFreeMemory(PVOID pMemory);
|
||||||
|
|
||||||
#ifdef UNICODE
|
#ifdef UNICODE
|
||||||
#define WTSEnumerateSessions WTSEnumerateSessionsW
|
#define WTSEnumerateSessions WTSEnumerateSessionsW
|
||||||
|
#define WTSQuerySessionInformation WTSQuerySessionInformationW
|
||||||
#else
|
#else
|
||||||
#define WTSEnumerateSessions WTSEnumerateSessionsA
|
#define WTSEnumerateSessions WTSEnumerateSessionsA
|
||||||
|
#define WTSQuerySessionInformation WTSQuerySessionInformationA
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _WIN32_WINNT >= 0x0500 */
|
#endif /* _WIN32_WINNT >= 0x0500 */
|
||||||
|
|
Loading…
Reference in New Issue