Blame channels/rdpdr/server/rdpdr_main.h

Packit Service fa4841
/**
Packit Service fa4841
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit Service fa4841
 * Device Redirection Virtual Channel Extension
Packit Service fa4841
 *
Packit Service fa4841
 * Copyright 2014 Dell Software <Mike.McDonald@software.dell.com>
Packit Service fa4841
 * Copyright 2013 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Packit Service fa4841
 * Copyright 2015 Thincast Technologies GmbH
Packit Service fa4841
 * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>
Packit Service fa4841
 *
Packit Service fa4841
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit Service fa4841
 * you may not use this file except in compliance with the License.
Packit Service fa4841
 * You may obtain a copy of the License at
Packit Service fa4841
 *
Packit Service fa4841
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit Service fa4841
 *
Packit Service fa4841
 * Unless required by applicable law or agreed to in writing, software
Packit Service fa4841
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit Service fa4841
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit Service fa4841
 * See the License for the specific language governing permissions and
Packit Service fa4841
 * limitations under the License.
Packit Service fa4841
 */
Packit Service fa4841
Packit Service fa4841
#ifndef FREERDP_CHANNEL_RDPDR_SERVER_MAIN_H
Packit Service fa4841
#define FREERDP_CHANNEL_RDPDR_SERVER_MAIN_H
Packit Service fa4841
Packit Service fa4841
#include <winpr/collections.h>
Packit Service fa4841
#include <winpr/crt.h>
Packit Service fa4841
#include <winpr/synch.h>
Packit Service fa4841
#include <winpr/thread.h>
Packit Service fa4841
Packit Service fa4841
#include <freerdp/settings.h>
Packit Service fa4841
#include <freerdp/server/rdpdr.h>
Packit Service fa4841
Packit Service fa4841
struct _rdpdr_server_private
Packit Service fa4841
{
Packit Service fa4841
	HANDLE Thread;
Packit Service fa4841
	HANDLE StopEvent;
Packit Service fa4841
	void* ChannelHandle;
Packit Service fa4841
Packit Service fa4841
	UINT32 ClientId;
Packit Service fa4841
	UINT16 VersionMajor;
Packit Service fa4841
	UINT16 VersionMinor;
Packit Service fa4841
	char* ClientComputerName;
Packit Service fa4841
Packit Service fa4841
	BOOL UserLoggedOnPdu;
Packit Service fa4841
Packit Service fa4841
	wListDictionary* IrpList;
Packit Service fa4841
	UINT32 NextCompletionId;
Packit Service fa4841
};
Packit Service fa4841
Packit Service bb5c11
#define RDPDR_HEADER_LENGTH		4
Packit Service fa4841
Packit Service fa4841
struct _RDPDR_HEADER
Packit Service fa4841
{
Packit Service fa4841
	UINT16 Component;
Packit Service fa4841
	UINT16 PacketId;
Packit Service fa4841
};
Packit Service fa4841
typedef struct _RDPDR_HEADER RDPDR_HEADER;
Packit Service fa4841
Packit Service bb5c11
#define RDPDR_VERSION_MAJOR		0x0001
Packit Service fa4841
Packit Service bb5c11
#define RDPDR_VERSION_MINOR_RDP50	0x0002
Packit Service bb5c11
#define RDPDR_VERSION_MINOR_RDP51	0x0005
Packit Service bb5c11
#define RDPDR_VERSION_MINOR_RDP52	0x000A
Packit Service bb5c11
#define RDPDR_VERSION_MINOR_RDP6X	0x000C
Packit Service fa4841
Packit Service bb5c11
#define RDPDR_CAPABILITY_HEADER_LENGTH	8
Packit Service fa4841
Packit Service fa4841
struct _RDPDR_CAPABILITY_HEADER
Packit Service fa4841
{
Packit Service fa4841
	UINT16 CapabilityType;
Packit Service fa4841
	UINT16 CapabilityLength;
Packit Service fa4841
	UINT32 Version;
Packit Service fa4841
};
Packit Service fa4841
typedef struct _RDPDR_CAPABILITY_HEADER RDPDR_CAPABILITY_HEADER;
Packit Service fa4841
Packit Service fa4841
struct _RDPDR_IRP
Packit Service fa4841
{
Packit Service fa4841
	UINT32 CompletionId;
Packit Service fa4841
	UINT32 DeviceId;
Packit Service fa4841
	UINT32 FileId;
Packit Service fa4841
	char PathName[256];
Packit Service fa4841
	char ExtraBuffer[256];
Packit Service bb5c11
	void *CallbackData;
Packit Service bb5c11
	UINT (*Callback)(RdpdrServerContext* context, wStream* s, struct _RDPDR_IRP* irp, UINT32 deviceId, UINT32 completionId, UINT32 ioStatus);
Packit Service fa4841
};
Packit Service fa4841
typedef struct _RDPDR_IRP RDPDR_IRP;
Packit Service fa4841
Packit Service fa4841
#endif /* FREERDP_CHANNEL_RDPDR_SERVER_MAIN_H */