From 8a456980d633d85fd226021d77c61aed7f258e00 Mon Sep 17 00:00:00 2001 From: Chris Sutcliffe Date: Sat, 5 Mar 2011 20:43:53 +0000 Subject: [PATCH] 2011-03-05 Chris Sutcliffe * include/wtsapi32.h (WTSSendMessageA, WTSSendMessageW, WTSSendMessage): Define. --- winsup/w32api/ChangeLog | 5 +++++ winsup/w32api/include/wtsapi32.h | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 471798955..1b66997d2 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -1,3 +1,8 @@ +2011-03-05 Chris Sutcliffe + + * include/wtsapi32.h (WTSSendMessageA, WTSSendMessageW, WTSSendMessage): + Define. + 2011-03-05 Chris Sutcliffe * include/winbase.h (PSAPI_WORKING_SET_BLOCK, diff --git a/winsup/w32api/include/wtsapi32.h b/winsup/w32api/include/wtsapi32.h index f9f180270..5bd09bbbd 100644 --- a/winsup/w32api/include/wtsapi32.h +++ b/winsup/w32api/include/wtsapi32.h @@ -136,6 +136,38 @@ void WINAPI WTSFreeMemory(PVOID pMemory); #define WTSQuerySessionInformation WTSQuerySessionInformationA #endif +BOOL WTSSendMessageA( + HANDLE hServer, + DWORD SessionId, + LPSTR pTitle, + DWORD TitleLength, + LPSTR pMessage, + DWORD MessageLength, + DWORD Style, + DWORD Timeout, + DWORD *pResponse, + BOOL bWait +); + +BOOL WTSSendMessageW( + HANDLE hServer, + DWORD SessionId, + LPWSTR pTitle, + DWORD TitleLength, + LPWSTR pMessage, + DWORD MessageLength, + DWORD Style, + DWORD Timeout, + DWORD *pResponse, + BOOL bWait +); + +#ifdef UNICODE +#define WTSSendMessage WTSSendMessageW +#else +#define WTSSendMessage WTSSendMessageA +#endif + #endif /* _WIN32_WINNT >= 0x0500 */ #ifdef __cplusplus