summaryrefslogtreecommitdiffstats
path: root/xrdpapi/xrdpapi.h
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-08-02 14:39:35 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-08-02 14:39:35 -0700
commit97ec29f9fff14aa28d1a0e22c3fcfea00a9dd4df (patch)
tree196a13f5d9b32a1bf797b688adc3fd0065b3a8eb /xrdpapi/xrdpapi.h
parente9aa5df42086b32f9bce915c063464f25b388e3b (diff)
downloadxrdp-proprietary-97ec29f9fff14aa28d1a0e22c3fcfea00a9dd4df.tar.gz
xrdp-proprietary-97ec29f9fff14aa28d1a0e22c3fcfea00a9dd4df.zip
xrdpapi: complete basic WTSVirtual* functions
Diffstat (limited to 'xrdpapi/xrdpapi.h')
-rw-r--r--xrdpapi/xrdpapi.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/xrdpapi/xrdpapi.h b/xrdpapi/xrdpapi.h
index c4571e46..cb451559 100644
--- a/xrdpapi/xrdpapi.h
+++ b/xrdpapi/xrdpapi.h
@@ -17,7 +17,8 @@
* limitations under the License.
*/
/*
- xrdpapi header
+ xrdpapi header, do not use os_calls.h, arch.h or any xrdp internal headers
+ this file is included in 3rd party apps
*/
#if !defined(XRDPAPI_H_)
@@ -26,6 +27,12 @@
#define WTS_CURRENT_SERVER_HANDLE 0
#define WTS_CURRENT_SESSION 0xffffffff
+typedef enum _WTS_VIRTUAL_CLASS
+{
+ WTSVirtualClientData,
+ WTSVirtualFileHandle
+} WTS_VIRTUAL_CLASS;
+
/*
Reference:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa383464(v=vs.85).aspx
@@ -41,10 +48,15 @@ int
WTSVirtualChannelWrite(void* hChannelHandle, const char* Buffer,
unsigned int Length, unsigned int* pBytesWritten);
int
-WTSVirtualChannelRead(void* nChannelHandle, unsigned int TimeOut,
+WTSVirtualChannelRead(void* hChannelHandle, unsigned int TimeOut,
char* Buffer, unsigned int BufferSize,
unsigned int* pBytesRead);
int
-WTSVirtualChannelClose(void* openHandle);
+WTSVirtualChannelClose(void* hChannelHandle);
+int
+WTSVirtualChannelQuery(void* hChannelHandle, WTS_VIRTUAL_CLASS WtsVirtualClass,
+ void** ppBuffer, unsigned int* pBytesReturned);
+void
+WTSFreeMemory(void* pMemory);
#endif /* XRDPAPI_H_ */