FreeRDP
client/encomsp_main.c File Reference
#include <freerdp/config.h>
#include <winpr/crt.h>
#include <winpr/assert.h>
#include <winpr/print.h>
#include <freerdp/freerdp.h>
#include <freerdp/channels/log.h>
#include <freerdp/client/encomsp.h>
#include "encomsp_main.h"

Macros

#define VirtualChannelEntryEx   encomsp_VirtualChannelEntryEx
 

Functions

static UINT encomsp_read_header (wStream *s, ENCOMSP_ORDER_HEADER *header)
 
static UINT encomsp_write_header (wStream *s, const ENCOMSP_ORDER_HEADER *header)
 
static UINT encomsp_read_unicode_string (wStream *s, ENCOMSP_UNICODE_STRING *str)
 
static EncomspClientContext * encomsp_get_client_interface (encomspPlugin *encomsp)
 
static UINT encomsp_virtual_channel_write (encomspPlugin *encomsp, wStream *s)
 
static UINT encomsp_recv_filter_updated_pdu (encomspPlugin *encomsp, wStream *s, const ENCOMSP_ORDER_HEADER *header)
 
static UINT encomsp_recv_application_created_pdu (encomspPlugin *encomsp, wStream *s, const ENCOMSP_ORDER_HEADER *header)
 
static UINT encomsp_recv_application_removed_pdu (encomspPlugin *encomsp, wStream *s, const ENCOMSP_ORDER_HEADER *header)
 
static UINT encomsp_recv_window_created_pdu (encomspPlugin *encomsp, wStream *s, const ENCOMSP_ORDER_HEADER *header)
 
static UINT encomsp_recv_window_removed_pdu (encomspPlugin *encomsp, wStream *s, const ENCOMSP_ORDER_HEADER *header)
 
static UINT encomsp_recv_show_window_pdu (encomspPlugin *encomsp, wStream *s, const ENCOMSP_ORDER_HEADER *header)
 
static UINT encomsp_recv_participant_created_pdu (encomspPlugin *encomsp, wStream *s, const ENCOMSP_ORDER_HEADER *header)
 
static UINT encomsp_recv_participant_removed_pdu (encomspPlugin *encomsp, wStream *s, const ENCOMSP_ORDER_HEADER *header)
 
static UINT encomsp_recv_change_participant_control_level_pdu (encomspPlugin *encomsp, wStream *s, const ENCOMSP_ORDER_HEADER *header)
 
static UINT encomsp_send_change_participant_control_level_pdu (EncomspClientContext *context, const ENCOMSP_CHANGE_PARTICIPANT_CONTROL_LEVEL_PDU *pdu)
 
static UINT encomsp_recv_graphics_stream_paused_pdu (encomspPlugin *encomsp, wStream *s, const ENCOMSP_ORDER_HEADER *header)
 
static UINT encomsp_recv_graphics_stream_resumed_pdu (encomspPlugin *encomsp, wStream *s, const ENCOMSP_ORDER_HEADER *header)
 
static UINT encomsp_process_receive (encomspPlugin *encomsp, wStream *s)
 
static UINT encomsp_virtual_channel_event_data_received (encomspPlugin *encomsp, const void *pData, UINT32 dataLength, UINT32 totalLength, UINT32 dataFlags)
 
static VOID VCAPITYPE encomsp_virtual_channel_open_event_ex (LPVOID lpUserParam, DWORD openHandle, UINT event, LPVOID pData, UINT32 dataLength, UINT32 totalLength, UINT32 dataFlags)
 
static DWORD WINAPI encomsp_virtual_channel_client_thread (LPVOID arg)
 
static UINT encomsp_virtual_channel_event_connected (encomspPlugin *encomsp, LPVOID pData, UINT32 dataLength)
 
static UINT encomsp_virtual_channel_event_disconnected (encomspPlugin *encomsp)
 
static UINT encomsp_virtual_channel_event_terminated (encomspPlugin *encomsp)
 
static VOID VCAPITYPE encomsp_virtual_channel_init_event_ex (LPVOID lpUserParam, LPVOID pInitHandle, UINT event, LPVOID pData, UINT dataLength)
 
 FREERDP_ENTRY_POINT (BOOL VCAPITYPE VirtualChannelEntryEx(PCHANNEL_ENTRY_POINTS_EX pEntryPoints, PVOID pInitHandle))
 

Macro Definition Documentation

◆ VirtualChannelEntryEx

#define VirtualChannelEntryEx   encomsp_VirtualChannelEntryEx

Function Documentation

◆ encomsp_get_client_interface()

static EncomspClientContext* encomsp_get_client_interface ( encomspPlugin *  encomsp)
static
Here is the caller graph for this function:

◆ encomsp_process_receive()

static UINT encomsp_process_receive ( encomspPlugin *  encomsp,
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:

◆ encomsp_read_header()

static UINT encomsp_read_header ( wStream s,
ENCOMSP_ORDER_HEADER header 
)
static

Function description

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

◆ encomsp_read_unicode_string()

static UINT encomsp_read_unicode_string ( wStream s,
ENCOMSP_UNICODE_STRING str 
)
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:

◆ encomsp_recv_application_created_pdu()

static UINT encomsp_recv_application_created_pdu ( encomspPlugin *  encomsp,
wStream s,
const ENCOMSP_ORDER_HEADER header 
)
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:

◆ encomsp_recv_application_removed_pdu()

static UINT encomsp_recv_application_removed_pdu ( encomspPlugin *  encomsp,
wStream s,
const ENCOMSP_ORDER_HEADER header 
)
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:

◆ encomsp_recv_change_participant_control_level_pdu()

static UINT encomsp_recv_change_participant_control_level_pdu ( encomspPlugin *  encomsp,
wStream s,
const ENCOMSP_ORDER_HEADER header 
)
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:

◆ encomsp_recv_filter_updated_pdu()

static UINT encomsp_recv_filter_updated_pdu ( encomspPlugin *  encomsp,
wStream s,
const ENCOMSP_ORDER_HEADER header 
)
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:

◆ encomsp_recv_graphics_stream_paused_pdu()

static UINT encomsp_recv_graphics_stream_paused_pdu ( encomspPlugin *  encomsp,
wStream s,
const ENCOMSP_ORDER_HEADER header 
)
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:

◆ encomsp_recv_graphics_stream_resumed_pdu()

static UINT encomsp_recv_graphics_stream_resumed_pdu ( encomspPlugin *  encomsp,
wStream s,
const ENCOMSP_ORDER_HEADER header 
)
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:

◆ encomsp_recv_participant_created_pdu()

static UINT encomsp_recv_participant_created_pdu ( encomspPlugin *  encomsp,
wStream s,
const ENCOMSP_ORDER_HEADER header 
)
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:

◆ encomsp_recv_participant_removed_pdu()

static UINT encomsp_recv_participant_removed_pdu ( encomspPlugin *  encomsp,
wStream s,
const ENCOMSP_ORDER_HEADER header 
)
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:

◆ encomsp_recv_show_window_pdu()

static UINT encomsp_recv_show_window_pdu ( encomspPlugin *  encomsp,
wStream s,
const ENCOMSP_ORDER_HEADER header 
)
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:

◆ encomsp_recv_window_created_pdu()

static UINT encomsp_recv_window_created_pdu ( encomspPlugin *  encomsp,
wStream s,
const ENCOMSP_ORDER_HEADER header 
)
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:

◆ encomsp_recv_window_removed_pdu()

static UINT encomsp_recv_window_removed_pdu ( encomspPlugin *  encomsp,
wStream s,
const ENCOMSP_ORDER_HEADER header 
)
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:

◆ encomsp_send_change_participant_control_level_pdu()

static UINT encomsp_send_change_participant_control_level_pdu ( EncomspClientContext *  context,
const ENCOMSP_CHANGE_PARTICIPANT_CONTROL_LEVEL_PDU pdu 
)
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:

◆ encomsp_virtual_channel_client_thread()

static DWORD WINAPI encomsp_virtual_channel_client_thread ( LPVOID  arg)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ encomsp_virtual_channel_event_connected()

static UINT encomsp_virtual_channel_event_connected ( encomspPlugin *  encomsp,
LPVOID  pData,
UINT32  dataLength 
)
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:

◆ encomsp_virtual_channel_event_data_received()

static UINT encomsp_virtual_channel_event_data_received ( encomspPlugin *  encomsp,
const void *  pData,
UINT32  dataLength,
UINT32  totalLength,
UINT32  dataFlags 
)
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:

◆ encomsp_virtual_channel_event_disconnected()

static UINT encomsp_virtual_channel_event_disconnected ( encomspPlugin *  encomsp)
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:

◆ encomsp_virtual_channel_event_terminated()

static UINT encomsp_virtual_channel_event_terminated ( encomspPlugin *  encomsp)
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:

◆ encomsp_virtual_channel_init_event_ex()

static VOID VCAPITYPE encomsp_virtual_channel_init_event_ex ( LPVOID  lpUserParam,
LPVOID  pInitHandle,
UINT  event,
LPVOID  pData,
UINT  dataLength 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ encomsp_virtual_channel_open_event_ex()

static VOID VCAPITYPE encomsp_virtual_channel_open_event_ex ( LPVOID  lpUserParam,
DWORD  openHandle,
UINT  event,
LPVOID  pData,
UINT32  dataLength,
UINT32  totalLength,
UINT32  dataFlags 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ encomsp_virtual_channel_write()

static UINT encomsp_virtual_channel_write ( encomspPlugin *  encomsp,
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:

◆ encomsp_write_header()

static UINT encomsp_write_header ( wStream s,
const ENCOMSP_ORDER_HEADER header 
)
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:

◆ FREERDP_ENTRY_POINT()

FREERDP_ENTRY_POINT ( BOOL VCAPITYPE   VirtualChannelEntryExPCHANNEL_ENTRY_POINTS_EX pEntryPoints, PVOID pInitHandle)
Here is the call graph for this function: