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

Macros

#define TAG   CHANNELS_TAG("rail.common")
 

Functions

const char * rail_get_order_type_string (UINT16 orderType)
 
const char * rail_get_order_type_string_full (UINT16 orderType, char *buffer, size_t length)
 
UINT rail_read_pdu_header (wStream *s, UINT16 *orderType, UINT16 *orderLength)
 
void rail_write_pdu_header (wStream *s, UINT16 orderType, UINT16 orderLength)
 
wStreamrail_pdu_init (size_t length)
 
UINT rail_read_handshake_order (wStream *s, RAIL_HANDSHAKE_ORDER *handshake)
 
void rail_write_handshake_order (wStream *s, const RAIL_HANDSHAKE_ORDER *handshake)
 
UINT rail_read_handshake_ex_order (wStream *s, RAIL_HANDSHAKE_EX_ORDER *handshakeEx)
 
void rail_write_handshake_ex_order (wStream *s, const RAIL_HANDSHAKE_EX_ORDER *handshakeEx)
 
UINT rail_write_unicode_string (wStream *s, const RAIL_UNICODE_STRING *unicode_string)
 
UINT rail_write_unicode_string_value (wStream *s, const RAIL_UNICODE_STRING *unicode_string)
 
static UINT rail_read_high_contrast (wStream *s, RAIL_HIGH_CONTRAST *highContrast)
 
static UINT rail_write_high_contrast (wStream *s, const RAIL_HIGH_CONTRAST *highContrast)
 
static UINT rail_read_filterkeys (wStream *s, TS_FILTERKEYS *filterKeys)
 
static UINT rail_write_filterkeys (wStream *s, const TS_FILTERKEYS *filterKeys)
 
UINT rail_read_sysparam_order (wStream *s, RAIL_SYSPARAM_ORDER *sysparam, BOOL extendedSpiSupported)
 
UINT rail_write_sysparam_order (wStream *s, const RAIL_SYSPARAM_ORDER *sysparam, BOOL extendedSpiSupported)
 
BOOL rail_is_extended_spi_supported (UINT32 channelFlags)
 
const char * rail_handshake_ex_flags_to_string (UINT32 flags, char *buffer, size_t len)
 

Macro Definition Documentation

◆ TAG

#define TAG   CHANNELS_TAG("rail.common")

FreeRDP: A Remote Desktop Protocol Implementation RAIL common functions

Copyright 2011 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 2011 Vic Lee 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

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 Documentation

◆ rail_get_order_type_string()

const char* rail_get_order_type_string ( UINT16  orderType)
Here is the caller graph for this function:

◆ rail_get_order_type_string_full()

const char* rail_get_order_type_string_full ( UINT16  orderType,
char *  buffer,
size_t  length 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rail_handshake_ex_flags_to_string()

const char* rail_handshake_ex_flags_to_string ( UINT32  flags,
char *  buffer,
size_t  len 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rail_is_extended_spi_supported()

BOOL rail_is_extended_spi_supported ( UINT32  channelFlags)
Here is the caller graph for this function:

◆ rail_pdu_init()

wStream* rail_pdu_init ( size_t  length)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rail_read_filterkeys()

static UINT rail_read_filterkeys ( wStream s,
TS_FILTERKEYS filterKeys 
)
static

Function description

Returns
0 on success, otherwise a Win32 error code
Here is the caller graph for this function:

◆ rail_read_handshake_ex_order()

UINT rail_read_handshake_ex_order ( wStream s,
RAIL_HANDSHAKE_EX_ORDER handshakeEx 
)

Function description

Returns
0 on success, otherwise a Win32 error code
Here is the caller graph for this function:

◆ rail_read_handshake_order()

UINT rail_read_handshake_order ( wStream s,
RAIL_HANDSHAKE_ORDER handshake 
)

Function description

Returns
0 on success, otherwise a Win32 error code
Here is the caller graph for this function:

◆ rail_read_high_contrast()

static UINT rail_read_high_contrast ( wStream s,
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:

◆ rail_read_pdu_header()

UINT rail_read_pdu_header ( wStream s,
UINT16 orderType,
UINT16 orderLength 
)

Function description

Returns
0 on success, otherwise a Win32 error code
Here is the caller graph for this function:

◆ rail_read_sysparam_order()

UINT rail_read_sysparam_order ( wStream s,
RAIL_SYSPARAM_ORDER sysparam,
BOOL  extendedSpiSupported 
)

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:

◆ rail_write_filterkeys()

static UINT rail_write_filterkeys ( wStream s,
const TS_FILTERKEYS filterKeys 
)
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:

◆ rail_write_handshake_ex_order()

void rail_write_handshake_ex_order ( wStream s,
const RAIL_HANDSHAKE_EX_ORDER handshakeEx 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rail_write_handshake_order()

void rail_write_handshake_order ( wStream s,
const RAIL_HANDSHAKE_ORDER handshake 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rail_write_high_contrast()

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:

◆ rail_write_pdu_header()

void rail_write_pdu_header ( wStream s,
UINT16  orderType,
UINT16  orderLength 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rail_write_sysparam_order()

UINT rail_write_sysparam_order ( wStream s,
const RAIL_SYSPARAM_ORDER sysparam,
BOOL  extendedSpiSupported 
)

Function description

Returns
0 on success, otherwise a Win32 err2or code
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rail_write_unicode_string()

UINT rail_write_unicode_string ( wStream s,
const RAIL_UNICODE_STRING unicode_string 
)

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:

◆ rail_write_unicode_string_value()

UINT rail_write_unicode_string_value ( wStream s,
const RAIL_UNICODE_STRING unicode_string 
)

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: