diff options
Diffstat (limited to 'winsup/w32api')
-rw-r--r-- | winsup/w32api/ChangeLog | 9 | ||||
-rw-r--r-- | winsup/w32api/include/wtsapi32.h | 52 | ||||
-rwxr-xr-x | winsup/w32api/lib/wtsapi32.def | 1 |
3 files changed, 61 insertions, 1 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog index 88cec4ccb..01c59252f 100644 --- a/winsup/w32api/ChangeLog +++ b/winsup/w32api/ChangeLog @@ -2,6 +2,15 @@ * include/winuser.h (tagMENUITEMINFOA): Correct dwItemData definition. (tagMENUITEMINFOW): Ditto. + * include/wtsapi32.h (WTSVirtualChannelClose): Add declaration. + (WTSVirtualChannelOpen): Ditto. + (WTSVirtualchannelOpenEx): Ditto. + (WTSVirtualChannelPurgeInput): Ditto. + (WTSVirtualChannelPurgeOutput): Ditto. + (WTSVirtualChannelQuery): Ditto. + (WTSVirtualChannelRead): Ditto. + (WTSVirtualChannelWrite): Ditto. + * lib/wtsapi32.def (WTSVirtualChannelOpenEx@12): Add import. 2012-07-29 Earnie Boyd <earnie@users.sourceforge.net> diff --git a/winsup/w32api/include/wtsapi32.h b/winsup/w32api/include/wtsapi32.h index 5bd09bbbd..298acb9b6 100644 --- a/winsup/w32api/include/wtsapi32.h +++ b/winsup/w32api/include/wtsapi32.h @@ -74,7 +74,7 @@ BOOL WINAPI WTSQueryUserToken(ULONG SessionId, PHANDLE pToken); #endif /* _WIN32_WINNT >= 0x0501 */ -#if (_WIN32_WINNT >= 0x0500) +#if (_WIN32_WINNT >= _WIN32_WINNT_WIN2K) typedef struct _WTS_SESSION_INFOW { DWORD SessionId; @@ -168,6 +168,56 @@ BOOL WTSSendMessageW( #define WTSSendMessage WTSSendMessageA #endif +BOOL WTSVirtualChannelClose( + __in HANDLE hChannelHandle +); + +HANDLE WTSVirtualChannelOpen( + __in HANDLE hServer, + __in DWORD SessionId, + __in LPSTR pVirtualName +); + +#if _WIN32_WINNT >= _WIN32_WINNT_VISTA +HANDLE WTSVirtualChannelOpenEx( + __in DWORD SessionId, + __in LPSTR pVirtualName, + __in DWORD flags +); +#endif + +BOOL WTSVirtualChannelPurgeInput( + __in HANDLE hChannelHandle +); + +BOOL WTSVirtualChannelPurgeOutput( + __in HANDLE hChannelHandle +); + +#if _WIN32_WINNT >= _WIN32_WINNT_WINXP +BOOL WTSVirtualChannelQuery( + __in HANDLE hChannelHandle, + __in WTS_VIRTUAL_CLASS WtsVirtualClass, + __out PVOID *ppBuffer, + __out DWORD *pBytesReturned +); +#endif + +BOOL WTSVirtualChannelRead( + __in HANDLE hChannelHandle, + __in ULONG TimeOut, + __out PCHAR Buffer, + __in ULONG BufferSize, + __out PULONG pBytesRead +); + +BOOL WTSVirtualChannelWrite( + __in HANDLE hChannelHandle, + __in PCHAR Buffer, + __in ULONG Length, + __out PULONG pBytesWritten +); + #endif /* _WIN32_WINNT >= 0x0500 */ #ifdef __cplusplus diff --git a/winsup/w32api/lib/wtsapi32.def b/winsup/w32api/lib/wtsapi32.def index e02e4705c..6baaa7124 100755 --- a/winsup/w32api/lib/wtsapi32.def +++ b/winsup/w32api/lib/wtsapi32.def @@ -27,6 +27,7 @@ WTSTerminateProcess@12 WTSUnRegisterSessionNotification@4 WTSVirtualChannelClose@4 WTSVirtualChannelOpen@12 +WTSVirtualChannelOpenEx@12 WTSVirtualChannelPurgeInput@4 WTSVirtualChannelPurgeOutput@4 WTSVirtualChannelQuery@16 |