2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>

* include/wtsapi32.h (WTSSendMessageA, WTSSendMessageW, WTSSendMessage):
        Define.
This commit is contained in:
Chris Sutcliffe 2011-03-05 20:43:53 +00:00
parent 174cb44b90
commit 8a456980d6
2 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/wtsapi32.h (WTSSendMessageA, WTSSendMessageW, WTSSendMessage):
Define.
2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net> 2011-03-05 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* include/winbase.h (PSAPI_WORKING_SET_BLOCK, * include/winbase.h (PSAPI_WORKING_SET_BLOCK,

View File

@ -136,6 +136,38 @@ void WINAPI WTSFreeMemory(PVOID pMemory);
#define WTSQuerySessionInformation WTSQuerySessionInformationA #define WTSQuerySessionInformation WTSQuerySessionInformationA
#endif #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 */ #endif /* _WIN32_WINNT >= 0x0500 */
#ifdef __cplusplus #ifdef __cplusplus