Blame include/freerdp/channels/wtsvc.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * Server Virtual Channel Interface
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2011-2012 Vic Lee
Packit 1fb8d4
 *
Packit 1fb8d4
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit 1fb8d4
 * you may not use this file except in compliance with the License.
Packit 1fb8d4
 * You may obtain a copy of the License at
Packit 1fb8d4
 *
Packit 1fb8d4
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 1fb8d4
 *
Packit 1fb8d4
 * Unless required by applicable law or agreed to in writing, software
Packit 1fb8d4
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 1fb8d4
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 1fb8d4
 * See the License for the specific language governing permissions and
Packit 1fb8d4
 * limitations under the License.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
/**
Packit 1fb8d4
 * The server-side virtual channel API follows the Microsoft Remote Desktop
Packit 1fb8d4
 * Services API functions WTSVirtualChannel* defined in:
Packit 1fb8d4
 * http://msdn.microsoft.com/en-us/library/windows/desktop/aa383464.aspx
Packit 1fb8d4
 *
Packit 1fb8d4
 * Difference between the MS API are documented in this header. All functions
Packit 1fb8d4
 * are implemented in and integrated with libfreerdp-channels.
Packit 1fb8d4
 *
Packit 1fb8d4
 * Unlike MS API, all functions except WTSVirtualChannelOpenEx in this
Packit 1fb8d4
 * implementation are thread-safe.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
#ifndef FREERDP_WTSVC_H
Packit 1fb8d4
#define FREERDP_WTSVC_H
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/types.h>
Packit 1fb8d4
#include <freerdp/peer.h>
Packit 1fb8d4
Packit 1fb8d4
#include <winpr/winpr.h>
Packit 1fb8d4
#include <winpr/wtypes.h>
Packit 1fb8d4
#include <winpr/wtsapi.h>
Packit 1fb8d4
Packit 1fb8d4
#ifdef __cplusplus
Packit 1fb8d4
extern "C" {
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit 1fb8d4
enum
Packit 1fb8d4
{
Packit 1fb8d4
	DRDYNVC_STATE_NONE = 0,
Packit 1fb8d4
	DRDYNVC_STATE_INITIALIZED = 1,
Packit 1fb8d4
	DRDYNVC_STATE_READY = 2,
Packit 1fb8d4
	DRDYNVC_STATE_FAILED = 3
Packit 1fb8d4
};
Packit 1fb8d4
Packit 1fb8d4
/**
Packit 1fb8d4
 * WTSVirtualChannelManager functions are FreeRDP extensions to the API.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
FREERDP_API void WTSVirtualChannelManagerGetFileDescriptor(HANDLE hServer, void** fds, int* fds_count);
Packit 1fb8d4
FREERDP_API BOOL WTSVirtualChannelManagerCheckFileDescriptor(HANDLE hServer);
Packit 1fb8d4
FREERDP_API HANDLE WTSVirtualChannelManagerGetEventHandle(HANDLE hServer);
Packit 1fb8d4
FREERDP_API BOOL WTSVirtualChannelManagerIsChannelJoined(HANDLE hServer, const char* name);
Packit 1fb8d4
FREERDP_API BYTE WTSVirtualChannelManagerGetDrdynvcState(HANDLE hServer);
Packit 1fb8d4
Packit 1fb8d4
/**
Packit 1fb8d4
 * Extended FreeRDP WTS functions for channel handling
Packit 1fb8d4
 */
Packit 1fb8d4
FREERDP_API UINT16 WTSChannelGetId(freerdp_peer *client, const char *channel_name);
Packit 1fb8d4
FREERDP_API BOOL WTSIsChannelJoinedByName(freerdp_peer *client, const char *channel_name);
Packit 1fb8d4
FREERDP_API BOOL WTSIsChannelJoinedById(freerdp_peer *client, const UINT16 channel_id);
Packit 1fb8d4
FREERDP_API BOOL WTSChannelSetHandleByName(freerdp_peer *client, const char *channel_name, void *handle);
Packit 1fb8d4
FREERDP_API BOOL WTSChannelSetHandleById(freerdp_peer *client, const UINT16 channel_id, void *handle);
Packit 1fb8d4
FREERDP_API void *WTSChannelGetHandleByName(freerdp_peer *client, const char *channel_name);
Packit 1fb8d4
FREERDP_API void *WTSChannelGetHandleById(freerdp_peer *client, const UINT16 channel_id);
Packit 1fb8d4
Packit 1fb8d4
#ifdef __cplusplus
Packit 1fb8d4
}
Packit 1fb8d4
#endif
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_WTSVC_H */