FreeRDP
rail_orders.c File Reference
#include <winpr/crt.h>
#include <freerdp/channels/log.h>
#include "rail_orders.h"

Functions

static UINT rail_write_unicode_string (wStream *s, const RAIL_UNICODE_STRING *unicode_string)
 
static UINT rail_write_unicode_string_value (wStream *s, const RAIL_UNICODE_STRING *unicode_string)
 
UINT rail_send_pdu (railPlugin *rail, wStream *s, UINT16 orderType)
 
static UINT rail_write_high_contrast (wStream *s, const RAIL_HIGH_CONTRAST *highContrast)
 
static UINT rail_read_server_exec_result_order (wStream *s, RAIL_EXEC_RESULT_ORDER *execResult)
 
static UINT rail_read_server_sysparam_order (wStream *s, RAIL_SYSPARAM_ORDER *sysparam)
 
static UINT rail_read_server_minmaxinfo_order (wStream *s, RAIL_MINMAXINFO_ORDER *minmaxinfo)
 
static UINT rail_read_server_localmovesize_order (wStream *s, RAIL_LOCALMOVESIZE_ORDER *localMoveSize)
 
static UINT rail_read_server_get_appid_resp_order (wStream *s, RAIL_GET_APPID_RESP_ORDER *getAppidResp)
 
static UINT rail_read_langbar_info_order (wStream *s, RAIL_LANGBAR_INFO_ORDER *langbarInfo)
 
static UINT rail_write_client_status_order (wStream *s, const RAIL_CLIENT_STATUS_ORDER *clientStatus)
 
static UINT rail_write_client_exec_order (wStream *s, UINT16 flags, const RAIL_UNICODE_STRING *exeOrFile, const RAIL_UNICODE_STRING *workingDir, const RAIL_UNICODE_STRING *arguments)
 
UINT rail_write_client_sysparam_order (wStream *s, const RAIL_SYSPARAM_ORDER *sysparam)
 
static UINT rail_write_client_activate_order (wStream *s, const RAIL_ACTIVATE_ORDER *activate)
 
static UINT rail_write_client_sysmenu_order (wStream *s, const RAIL_SYSMENU_ORDER *sysmenu)
 
static UINT rail_write_client_syscommand_order (wStream *s, const RAIL_SYSCOMMAND_ORDER *syscommand)
 
static UINT rail_write_client_notify_event_order (wStream *s, const RAIL_NOTIFY_EVENT_ORDER *notifyEvent)
 
static UINT rail_write_client_window_move_order (wStream *s, const RAIL_WINDOW_MOVE_ORDER *windowMove)
 
static UINT rail_write_client_get_appid_req_order (wStream *s, const RAIL_GET_APPID_REQ_ORDER *getAppidReq)
 
static UINT rail_write_langbar_info_order (wStream *s, const RAIL_LANGBAR_INFO_ORDER *langbarInfo)
 
static UINT rail_recv_handshake_order (railPlugin *rail, RAIL_HANDSHAKE_ORDER *handshake, wStream *s)
 
static UINT rail_recv_handshake_ex_order (railPlugin *rail, RAIL_HANDSHAKE_EX_ORDER *handshakeEx, wStream *s)
 
static UINT rail_recv_exec_result_order (railPlugin *rail, RAIL_EXEC_RESULT_ORDER *execResult, wStream *s)
 
static UINT rail_recv_server_sysparam_order (railPlugin *rail, RAIL_SYSPARAM_ORDER *sysparam, wStream *s)
 
static UINT rail_recv_server_minmaxinfo_order (railPlugin *rail, RAIL_MINMAXINFO_ORDER *minMaxInfo, wStream *s)
 
static UINT rail_recv_server_localmovesize_order (railPlugin *rail, RAIL_LOCALMOVESIZE_ORDER *localMoveSize, wStream *s)
 
static UINT rail_recv_server_get_appid_resp_order (railPlugin *rail, RAIL_GET_APPID_RESP_ORDER *getAppIdResp, wStream *s)
 
static UINT rail_recv_langbar_info_order (railPlugin *rail, RAIL_LANGBAR_INFO_ORDER *langBarInfo, wStream *s)
 
UINT rail_order_recv (railPlugin *rail, wStream *s)
 
UINT rail_send_handshake_order (railPlugin *rail, const RAIL_HANDSHAKE_ORDER *handshake)
 
UINT rail_send_handshake_ex_order (railPlugin *rail, const RAIL_HANDSHAKE_EX_ORDER *handshakeEx)
 
UINT rail_send_client_status_order (railPlugin *rail, const RAIL_CLIENT_STATUS_ORDER *clientStatus)
 
UINT rail_send_client_exec_order (railPlugin *rail, UINT16 flags, const RAIL_UNICODE_STRING *exeOrFile, const RAIL_UNICODE_STRING *workingDir, const RAIL_UNICODE_STRING *arguments)
 
static UINT rail_send_client_sysparam_order (railPlugin *rail, const RAIL_SYSPARAM_ORDER *sysparam)
 
static UINT rail_send_client_sysparams_order (railPlugin *rail, RAIL_SYSPARAM_ORDER *sysparam)
 
UINT rail_send_client_activate_order (railPlugin *rail, const RAIL_ACTIVATE_ORDER *activate)
 
UINT rail_send_client_sysmenu_order (railPlugin *rail, const RAIL_SYSMENU_ORDER *sysmenu)
 
UINT rail_send_client_syscommand_order (railPlugin *rail, const RAIL_SYSCOMMAND_ORDER *syscommand)
 
UINT rail_send_client_notify_event_order (railPlugin *rail, const RAIL_NOTIFY_EVENT_ORDER *notifyEvent)
 
UINT rail_send_client_window_move_order (railPlugin *rail, const RAIL_WINDOW_MOVE_ORDER *windowMove)
 
UINT rail_send_client_get_appid_req_order (railPlugin *rail, const RAIL_GET_APPID_REQ_ORDER *getAppIdReq)
 
UINT rail_send_client_langbar_info_order (railPlugin *rail, const RAIL_LANGBAR_INFO_ORDER *langBarInfo)
 

Function Documentation

UINT rail_order_recv ( railPlugin *  rail,
wStream *  s 
)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_read_langbar_info_order ( wStream *  s,
RAIL_LANGBAR_INFO_ORDER *  langbarInfo 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_read_server_exec_result_order ( wStream *  s,
RAIL_EXEC_RESULT_ORDER *  execResult 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_read_server_get_appid_resp_order ( wStream *  s,
RAIL_GET_APPID_RESP_ORDER *  getAppidResp 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_read_server_localmovesize_order ( wStream *  s,
RAIL_LOCALMOVESIZE_ORDER *  localMoveSize 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_read_server_minmaxinfo_order ( wStream *  s,
RAIL_MINMAXINFO_ORDER *  minmaxinfo 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_read_server_sysparam_order ( wStream *  s,
RAIL_SYSPARAM_ORDER *  sysparam 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_recv_exec_result_order ( railPlugin *  rail,
RAIL_EXEC_RESULT_ORDER *  execResult,
wStream *  s 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_recv_handshake_ex_order ( railPlugin *  rail,
RAIL_HANDSHAKE_EX_ORDER *  handshakeEx,
wStream *  s 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_recv_handshake_order ( railPlugin *  rail,
RAIL_HANDSHAKE_ORDER *  handshake,
wStream *  s 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_recv_langbar_info_order ( railPlugin *  rail,
RAIL_LANGBAR_INFO_ORDER *  langBarInfo,
wStream *  s 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_recv_server_get_appid_resp_order ( railPlugin *  rail,
RAIL_GET_APPID_RESP_ORDER *  getAppIdResp,
wStream *  s 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_recv_server_localmovesize_order ( railPlugin *  rail,
RAIL_LOCALMOVESIZE_ORDER *  localMoveSize,
wStream *  s 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_recv_server_minmaxinfo_order ( railPlugin *  rail,
RAIL_MINMAXINFO_ORDER *  minMaxInfo,
wStream *  s 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_recv_server_sysparam_order ( railPlugin *  rail,
RAIL_SYSPARAM_ORDER *  sysparam,
wStream *  s 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

UINT rail_send_client_activate_order ( railPlugin *  rail,
const RAIL_ACTIVATE_ORDER *  activate 
)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

UINT rail_send_client_exec_order ( railPlugin *  rail,
UINT16  flags,
const RAIL_UNICODE_STRING *  exeOrFile,
const RAIL_UNICODE_STRING *  workingDir,
const RAIL_UNICODE_STRING *  arguments 
)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

UINT rail_send_client_get_appid_req_order ( railPlugin *  rail,
const RAIL_GET_APPID_REQ_ORDER *  getAppIdReq 
)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

UINT rail_send_client_langbar_info_order ( railPlugin *  rail,
const RAIL_LANGBAR_INFO_ORDER *  langBarInfo 
)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

UINT rail_send_client_notify_event_order ( railPlugin *  rail,
const RAIL_NOTIFY_EVENT_ORDER *  notifyEvent 
)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

UINT rail_send_client_status_order ( railPlugin *  rail,
const RAIL_CLIENT_STATUS_ORDER *  clientStatus 
)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

UINT rail_send_client_syscommand_order ( railPlugin *  rail,
const RAIL_SYSCOMMAND_ORDER *  syscommand 
)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

UINT rail_send_client_sysmenu_order ( railPlugin *  rail,
const RAIL_SYSMENU_ORDER *  sysmenu 
)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_send_client_sysparam_order ( railPlugin *  rail,
const RAIL_SYSPARAM_ORDER *  sysparam 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_send_client_sysparams_order ( railPlugin *  rail,
RAIL_SYSPARAM_ORDER *  sysparam 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

UINT rail_send_client_window_move_order ( railPlugin *  rail,
const RAIL_WINDOW_MOVE_ORDER *  windowMove 
)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

UINT rail_send_handshake_ex_order ( railPlugin *  rail,
const RAIL_HANDSHAKE_EX_ORDER *  handshakeEx 
)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

UINT rail_send_handshake_order ( railPlugin *  rail,
const RAIL_HANDSHAKE_ORDER *  handshake 
)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

UINT rail_send_pdu ( railPlugin *  rail,
wStream *  s,
UINT16  orderType 
)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_write_client_activate_order ( wStream *  s,
const RAIL_ACTIVATE_ORDER *  activate 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_write_client_exec_order ( wStream *  s,
UINT16  flags,
const RAIL_UNICODE_STRING *  exeOrFile,
const RAIL_UNICODE_STRING *  workingDir,
const RAIL_UNICODE_STRING *  arguments 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_write_client_get_appid_req_order ( wStream *  s,
const RAIL_GET_APPID_REQ_ORDER *  getAppidReq 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_write_client_notify_event_order ( wStream *  s,
const RAIL_NOTIFY_EVENT_ORDER *  notifyEvent 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_write_client_status_order ( wStream *  s,
const RAIL_CLIENT_STATUS_ORDER *  clientStatus 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_write_client_syscommand_order ( wStream *  s,
const RAIL_SYSCOMMAND_ORDER *  syscommand 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_write_client_sysmenu_order ( wStream *  s,
const RAIL_SYSMENU_ORDER *  sysmenu 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

UINT rail_write_client_sysparam_order ( wStream *  s,
const RAIL_SYSPARAM_ORDER *  sysparam 
)

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_write_client_window_move_order ( wStream *  s,
const RAIL_WINDOW_MOVE_ORDER *  windowMove 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_write_high_contrast ( wStream *  s,
const RAIL_HIGH_CONTRAST *  highContrast 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_write_langbar_info_order ( wStream *  s,
const RAIL_LANGBAR_INFO_ORDER *  langbarInfo 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_write_unicode_string ( wStream *  s,
const RAIL_UNICODE_STRING *  unicode_string 
)
static

FreeRDP: A Remote Desktop Protocol Implementation Remote Applications Integrated Locally (RAIL) Orders

Copyright 2009 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2011 Roman Barabanov roman.nosp@m.bara.nosp@m.banov.nosp@m.@gma.nosp@m.il.co.nosp@m.m Copyright 2015 Thincast Technologies GmbH Copyright 2015 DI (FH) Martin Haimberger marti.nosp@m.n.ha.nosp@m.imber.nosp@m.ger@.nosp@m.thinc.nosp@m.ast..nosp@m.com Copyright 2017 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m Copyright 2017 Thincast Technologies GmbH

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. Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function:

static UINT rail_write_unicode_string_value ( wStream *  s,
const RAIL_UNICODE_STRING *  unicode_string 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code

Here is the call graph for this function:

Here is the caller graph for this function: