2011-12-11 19:49:08 +08:00
|
|
|
/**
|
2012-10-08 23:02:04 -04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-12-11 19:49:08 +08:00
|
|
|
* Server Virtual Channel Interface
|
|
|
|
*
|
|
|
|
* Copyright 2011-2012 Vic Lee
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The server-side virtual channel API follows the Microsoft Remote Desktop
|
|
|
|
* Services API functions WTSVirtualChannel* defined in:
|
|
|
|
* http://msdn.microsoft.com/en-us/library/windows/desktop/aa383464.aspx
|
|
|
|
*
|
|
|
|
* Difference between the MS API are documented in this header. All functions
|
|
|
|
* are implemented in and integrated with libfreerdp-channels.
|
|
|
|
*
|
2011-12-12 16:42:42 +08:00
|
|
|
* Unlike MS API, all functions except WTSVirtualChannelOpenEx in this
|
|
|
|
* implementation are thread-safe.
|
2011-12-11 19:49:08 +08:00
|
|
|
*/
|
|
|
|
|
2012-12-14 00:25:48 -05:00
|
|
|
#ifndef FREERDP_WTSVC_H
|
|
|
|
#define FREERDP_WTSVC_H
|
2011-12-11 19:49:08 +08:00
|
|
|
|
|
|
|
#include <freerdp/types.h>
|
|
|
|
#include <freerdp/peer.h>
|
|
|
|
|
2013-08-20 18:06:19 -04:00
|
|
|
#include <winpr/winpr.h>
|
|
|
|
#include <winpr/wtypes.h>
|
2014-02-16 17:27:36 -05:00
|
|
|
|
2014-02-16 18:02:50 -05:00
|
|
|
#include <winpr/wtsapi.h>
|
2011-12-11 19:49:08 +08:00
|
|
|
|
2014-02-16 18:02:50 -05:00
|
|
|
#define WTSVirtualEventHandle 3 /* Extended */
|
|
|
|
#define WTSVirtualChannelReady 4 /* Extended */
|
2013-08-20 18:06:19 -04:00
|
|
|
|
|
|
|
typedef struct WTSVirtualChannelManager WTSVirtualChannelManager;
|
|
|
|
|
2013-03-19 15:33:01 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2011-12-12 16:42:42 +08:00
|
|
|
/**
|
|
|
|
* WTSVirtualChannelManager functions are FreeRDP extensions to the API.
|
|
|
|
*/
|
|
|
|
|
2013-08-20 19:26:36 -04:00
|
|
|
FREERDP_API void WTSVirtualChannelManagerGetFileDescriptor(WTSVirtualChannelManager* vcm, void** fds, int* fds_count);
|
|
|
|
FREERDP_API BOOL WTSVirtualChannelManagerCheckFileDescriptor(WTSVirtualChannelManager* vcm);
|
2013-08-16 21:17:24 -04:00
|
|
|
FREERDP_API HANDLE WTSVirtualChannelManagerGetEventHandle(WTSVirtualChannelManager* vcm);
|
|
|
|
|
2014-02-15 17:42:59 -05:00
|
|
|
FREERDP_API BOOL WTSVirtualChannelManagerIsChannelJoined(WTSVirtualChannelManager* vcm, const char* name);
|
|
|
|
|
2013-03-19 15:33:01 -07:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-12-14 00:25:48 -05:00
|
|
|
#endif /* FREERDP_WTSVC_H */
|