24 #ifndef FREERDP_CHANNEL_RAIL_COMMON_H
25 #define FREERDP_CHANNEL_RAIL_COMMON_H
27 #include <freerdp/rail.h>
29 #define RAIL_PDU_HEADER_LENGTH 4
32 #define RAIL_HANDSHAKE_ORDER_LENGTH 4
33 #define RAIL_HANDSHAKE_EX_ORDER_LENGTH 8
34 #define RAIL_CLIENT_STATUS_ORDER_LENGTH 4
35 #define RAIL_EXEC_ORDER_LENGTH 8
36 #define RAIL_EXEC_RESULT_ORDER_LENGTH 12
37 #define RAIL_SYSPARAM_ORDER_LENGTH 4
38 #define RAIL_MINMAXINFO_ORDER_LENGTH 20
39 #define RAIL_LOCALMOVESIZE_ORDER_LENGTH 12
40 #define RAIL_ACTIVATE_ORDER_LENGTH 5
41 #define RAIL_SYSMENU_ORDER_LENGTH 8
42 #define RAIL_SYSCOMMAND_ORDER_LENGTH 6
43 #define RAIL_NOTIFY_EVENT_ORDER_LENGTH 12
44 #define RAIL_WINDOW_MOVE_ORDER_LENGTH 12
45 #define RAIL_SNAP_ARRANGE_ORDER_LENGTH 12
46 #define RAIL_GET_APPID_REQ_ORDER_LENGTH 4
47 #define RAIL_LANGBAR_INFO_ORDER_LENGTH 4
48 #define RAIL_LANGUAGEIME_INFO_ORDER_LENGTH 42
49 #define RAIL_COMPARTMENT_INFO_ORDER_LENGTH 16
50 #define RAIL_CLOAK_ORDER_LENGTH 5
51 #define RAIL_TASKBAR_INFO_ORDER_LENGTH 12
52 #define RAIL_Z_ORDER_SYNC_ORDER_LENGTH 4
53 #define RAIL_POWER_DISPLAY_REQUEST_ORDER_LENGTH 4
54 #define RAIL_GET_APPID_RESP_ORDER_LENGTH 524
55 #define RAIL_GET_APPID_RESP_EX_ORDER_LENGTH 1048
62 wStream* rail_pdu_init(
size_t length);
63 UINT rail_read_pdu_header(
wStream* s, UINT16* orderType, UINT16* orderLength);
64 void rail_write_pdu_header(
wStream* s, UINT16 orderType, UINT16 orderLength);
71 BOOL extendedSpiSupported);
72 BOOL rail_is_extended_spi_supported(UINT32 channelFlags);
73 const char* rail_get_order_type_string(UINT16 orderType);
74 const char* rail_get_order_type_string_full(UINT16 orderType,
char* buffer,
size_t length);