Blame channels/rail/rail_common.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * RAIL Virtual Channel Plugin
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Packit 1fb8d4
 * Copyright 2011 Roman Barabanov <romanbarabanov@gmail.com>
Packit 1fb8d4
 * Copyright 2011 Vic Lee
Packit 1fb8d4
 * Copyright 2015 Thincast Technologies GmbH
Packit 1fb8d4
 * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>
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
#ifndef FREERDP_CHANNEL_RAIL_COMMON_H
Packit 1fb8d4
#define FREERDP_CHANNEL_RAIL_COMMON_H
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/rail.h>
Packit 1fb8d4
Packit Service 5a9772
const char* rail_get_order_type_string(BYTE orderType);
Packit 1fb8d4
Packit Service 5a9772
#define RAIL_PDU_HEADER_LENGTH 4
Packit 1fb8d4
Packit 1fb8d4
/* Fixed length of PDUs, excluding variable lengths */
Packit Service 5a9772
#define RAIL_HANDSHAKE_ORDER_LENGTH 4             /* fixed */
Packit Service 5a9772
#define RAIL_HANDSHAKE_EX_ORDER_LENGTH 8          /* fixed */
Packit Service 5a9772
#define RAIL_CLIENT_STATUS_ORDER_LENGTH 4         /* fixed */
Packit Service 5a9772
#define RAIL_EXEC_ORDER_LENGTH 8                  /* variable */
Packit Service 5a9772
#define RAIL_EXEC_RESULT_ORDER_LENGTH 12          /* variable */
Packit Service 5a9772
#define RAIL_SYSPARAM_ORDER_LENGTH 4              /* variable */
Packit Service 5a9772
#define RAIL_MINMAXINFO_ORDER_LENGTH 20           /* fixed */
Packit Service 5a9772
#define RAIL_LOCALMOVESIZE_ORDER_LENGTH 12        /* fixed */
Packit Service 5a9772
#define RAIL_ACTIVATE_ORDER_LENGTH 5              /* fixed */
Packit Service 5a9772
#define RAIL_SYSMENU_ORDER_LENGTH 8               /* fixed */
Packit Service 5a9772
#define RAIL_SYSCOMMAND_ORDER_LENGTH 6            /* fixed */
Packit Service 5a9772
#define RAIL_NOTIFY_EVENT_ORDER_LENGTH 12         /* fixed */
Packit Service 5a9772
#define RAIL_WINDOW_MOVE_ORDER_LENGTH 12          /* fixed */
Packit Service 5a9772
#define RAIL_SNAP_ARRANGE_ORDER_LENGTH 12         /* fixed */
Packit Service 5a9772
#define RAIL_GET_APPID_REQ_ORDER_LENGTH 4         /* fixed */
Packit Service 5a9772
#define RAIL_LANGBAR_INFO_ORDER_LENGTH 4          /* fixed */
Packit Service 5a9772
#define RAIL_LANGUAGEIME_INFO_ORDER_LENGTH 42     /* fixed */
Packit Service 5a9772
#define RAIL_COMPARTMENT_INFO_ORDER_LENGTH 16     /* fixed */
Packit Service 5a9772
#define RAIL_CLOAK_ORDER_LENGTH 5                 /* fixed */
Packit Service 5a9772
#define RAIL_TASKBAR_INFO_ORDER_LENGTH 12         /* fixed */
Packit Service 5a9772
#define RAIL_Z_ORDER_SYNC_ORDER_LENGTH 4          /* fixed */
Packit Service 5a9772
#define RAIL_POWER_DISPLAY_REQUEST_ORDER_LENGTH 4 /* fixed */
Packit Service 5a9772
#define RAIL_GET_APPID_RESP_ORDER_LENGTH 524      /* fixed */
Packit Service 5a9772
#define RAIL_GET_APPID_RESP_EX_ORDER_LENGTH 1048  /* fixed */
Packit Service 5a9772
Packit 1fb8d4
UINT rail_read_handshake_order(wStream* s, RAIL_HANDSHAKE_ORDER* handshake);
Packit 1fb8d4
void rail_write_handshake_order(wStream* s, const RAIL_HANDSHAKE_ORDER* handshake);
Packit 1fb8d4
UINT rail_read_handshake_ex_order(wStream* s, RAIL_HANDSHAKE_EX_ORDER* handshakeEx);
Packit 1fb8d4
void rail_write_handshake_ex_order(wStream* s, const RAIL_HANDSHAKE_EX_ORDER* handshakeEx);
Packit 1fb8d4
Packit 1fb8d4
wStream* rail_pdu_init(size_t length);
Packit 1fb8d4
UINT rail_read_pdu_header(wStream* s, UINT16* orderType, UINT16* orderLength);
Packit 1fb8d4
void rail_write_pdu_header(wStream* s, UINT16 orderType, UINT16 orderLength);
Packit 1fb8d4
Packit Service 5a9772
UINT rail_write_unicode_string(wStream* s, const RAIL_UNICODE_STRING* unicode_string);
Packit Service 5a9772
UINT rail_write_unicode_string_value(wStream* s, const RAIL_UNICODE_STRING* unicode_string);
Packit Service 5a9772
Packit Service 5a9772
UINT rail_read_sysparam_order(wStream* s, RAIL_SYSPARAM_ORDER* sysparam, BOOL extendedSpiSupported);
Packit Service 5a9772
UINT rail_write_sysparam_order(wStream* s, const RAIL_SYSPARAM_ORDER* sysparam,
Packit Service 5a9772
                               BOOL extendedSpiSupported);
Packit Service 5a9772
BOOL rail_is_extended_spi_supported(UINT32 channelsFlags);
Packit Service 5a9772
Packit 1fb8d4
#endif /* FREERDP_CHANNEL_RAIL_COMMON_H */