2014-06-24 00:18:03 +04:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
* Multiparty Virtual Channel
|
|
|
|
*
|
|
|
|
* Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FREERDP_CHANNEL_ENCOMSP_H
|
|
|
|
#define FREERDP_CHANNEL_ENCOMSP_H
|
|
|
|
|
|
|
|
#include <freerdp/api.h>
|
|
|
|
#include <freerdp/types.h>
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ENCOMSP_SVC_CHANNEL_NAME "encomsp"
|
2014-06-24 00:18:03 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-24 02:17:26 +04:00
|
|
|
{
|
|
|
|
UINT16 cchString;
|
|
|
|
WCHAR wString[1024];
|
2022-02-14 16:59:22 +03:00
|
|
|
} ENCOMSP_UNICODE_STRING;
|
2014-06-24 02:17:26 +04:00
|
|
|
|
|
|
|
/* Filter Updated PDU Flags */
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ENCOMSP_FILTER_ENABLED 0x0001
|
2014-06-24 02:17:26 +04:00
|
|
|
|
|
|
|
/* Application Created PDU Flags */
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ENCOMSP_APPLICATION_SHARED 0x0001
|
2014-06-24 02:17:26 +04:00
|
|
|
|
|
|
|
/* Window Created PDU Flags */
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ENCOMSP_WINDOW_SHARED 0x0001
|
2014-06-24 02:17:26 +04:00
|
|
|
|
|
|
|
/* Participant Created PDU Flags */
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ENCOMSP_MAY_VIEW 0x0001
|
|
|
|
#define ENCOMSP_MAY_INTERACT 0x0002
|
|
|
|
#define ENCOMSP_IS_PARTICIPANT 0x0004
|
2014-06-24 02:17:26 +04:00
|
|
|
|
|
|
|
/* Participant Removed PDU Disconnection Types */
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ENCOMSP_PARTICIPANT_DISCONNECTION_REASON_APP 0x00000000
|
|
|
|
#define ENCOMSP_PARTICIPANT_DISCONNECTION_REASON_CLI 0x00000002
|
2014-06-24 02:17:26 +04:00
|
|
|
|
|
|
|
/* Change Participant Control Level PDU Flags */
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ENCOMSP_REQUEST_VIEW 0x0001
|
|
|
|
#define ENCOMSP_REQUEST_INTERACT 0x0002
|
|
|
|
#define ENCOMSP_ALLOW_CONTROL_REQUESTS 0x0008
|
2014-06-24 02:17:26 +04:00
|
|
|
|
|
|
|
/* PDU Order Types */
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ODTYPE_FILTER_STATE_UPDATED 0x0001
|
|
|
|
#define ODTYPE_APP_REMOVED 0x0002
|
|
|
|
#define ODTYPE_APP_CREATED 0x0003
|
|
|
|
#define ODTYPE_WND_REMOVED 0x0004
|
|
|
|
#define ODTYPE_WND_CREATED 0x0005
|
|
|
|
#define ODTYPE_WND_SHOW 0x0006
|
|
|
|
#define ODTYPE_PARTICIPANT_REMOVED 0x0007
|
|
|
|
#define ODTYPE_PARTICIPANT_CREATED 0x0008
|
|
|
|
#define ODTYPE_PARTICIPANT_CTRL_CHANGED 0x0009
|
|
|
|
#define ODTYPE_GRAPHICS_STREAM_PAUSED 0x000A
|
|
|
|
#define ODTYPE_GRAPHICS_STREAM_RESUMED 0x000B
|
2014-06-24 02:17:26 +04:00
|
|
|
|
|
|
|
#define DEFINE_ENCOMSP_HEADER_COMMON() \
|
2019-11-06 17:24:51 +03:00
|
|
|
UINT16 Type; \
|
2014-06-24 02:17:26 +04:00
|
|
|
UINT16 Length
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define ENCOMSP_ORDER_HEADER_SIZE 4
|
2014-06-24 02:17:26 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-24 02:17:26 +04:00
|
|
|
{
|
|
|
|
DEFINE_ENCOMSP_HEADER_COMMON();
|
2022-02-14 16:59:22 +03:00
|
|
|
} ENCOMSP_ORDER_HEADER;
|
2014-06-24 02:17:26 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-24 02:17:26 +04:00
|
|
|
{
|
|
|
|
DEFINE_ENCOMSP_HEADER_COMMON();
|
|
|
|
|
|
|
|
BYTE Flags;
|
2022-02-14 16:59:22 +03:00
|
|
|
} ENCOMSP_FILTER_UPDATED_PDU;
|
2014-06-24 02:17:26 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-24 02:17:26 +04:00
|
|
|
{
|
|
|
|
DEFINE_ENCOMSP_HEADER_COMMON();
|
|
|
|
|
|
|
|
UINT16 Flags;
|
|
|
|
UINT32 AppId;
|
|
|
|
ENCOMSP_UNICODE_STRING Name;
|
2022-02-14 16:59:22 +03:00
|
|
|
} ENCOMSP_APPLICATION_CREATED_PDU;
|
2014-06-24 02:17:26 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-24 02:17:26 +04:00
|
|
|
{
|
|
|
|
DEFINE_ENCOMSP_HEADER_COMMON();
|
|
|
|
|
|
|
|
UINT32 AppId;
|
2022-02-14 16:59:22 +03:00
|
|
|
} ENCOMSP_APPLICATION_REMOVED_PDU;
|
2014-06-24 02:17:26 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-24 02:17:26 +04:00
|
|
|
{
|
|
|
|
DEFINE_ENCOMSP_HEADER_COMMON();
|
|
|
|
|
|
|
|
UINT16 Flags;
|
|
|
|
UINT32 AppId;
|
|
|
|
UINT32 WndId;
|
|
|
|
ENCOMSP_UNICODE_STRING Name;
|
2022-02-14 16:59:22 +03:00
|
|
|
} ENCOMSP_WINDOW_CREATED_PDU;
|
2014-06-24 02:17:26 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-24 02:17:26 +04:00
|
|
|
{
|
|
|
|
DEFINE_ENCOMSP_HEADER_COMMON();
|
|
|
|
|
|
|
|
UINT32 WndId;
|
2022-02-14 16:59:22 +03:00
|
|
|
} ENCOMSP_WINDOW_REMOVED_PDU;
|
2014-06-24 02:17:26 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-24 02:17:26 +04:00
|
|
|
{
|
|
|
|
DEFINE_ENCOMSP_HEADER_COMMON();
|
|
|
|
|
|
|
|
UINT32 WndId;
|
2022-02-14 16:59:22 +03:00
|
|
|
} ENCOMSP_SHOW_WINDOW_PDU;
|
2014-06-24 02:17:26 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-24 02:17:26 +04:00
|
|
|
{
|
|
|
|
DEFINE_ENCOMSP_HEADER_COMMON();
|
|
|
|
|
|
|
|
UINT32 ParticipantId;
|
|
|
|
UINT32 GroupId;
|
|
|
|
UINT16 Flags;
|
|
|
|
ENCOMSP_UNICODE_STRING FriendlyName;
|
2022-02-14 16:59:22 +03:00
|
|
|
} ENCOMSP_PARTICIPANT_CREATED_PDU;
|
2014-06-24 02:17:26 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-24 02:17:26 +04:00
|
|
|
{
|
|
|
|
DEFINE_ENCOMSP_HEADER_COMMON();
|
|
|
|
|
|
|
|
UINT32 ParticipantId;
|
|
|
|
UINT32 DiscType;
|
|
|
|
UINT32 DiscCode;
|
2022-02-14 16:59:22 +03:00
|
|
|
} ENCOMSP_PARTICIPANT_REMOVED_PDU;
|
2014-06-24 02:17:26 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-24 02:17:26 +04:00
|
|
|
{
|
|
|
|
DEFINE_ENCOMSP_HEADER_COMMON();
|
|
|
|
|
|
|
|
UINT16 Flags;
|
|
|
|
UINT32 ParticipantId;
|
2022-02-14 16:59:22 +03:00
|
|
|
} ENCOMSP_CHANGE_PARTICIPANT_CONTROL_LEVEL_PDU;
|
2014-06-24 02:17:26 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-24 02:17:26 +04:00
|
|
|
{
|
|
|
|
DEFINE_ENCOMSP_HEADER_COMMON();
|
2022-02-14 16:59:22 +03:00
|
|
|
} ENCOMSP_GRAPHICS_STREAM_PAUSED_PDU;
|
2014-06-24 02:17:26 +04:00
|
|
|
|
2022-02-14 16:59:22 +03:00
|
|
|
typedef struct
|
2014-06-24 02:17:26 +04:00
|
|
|
{
|
|
|
|
DEFINE_ENCOMSP_HEADER_COMMON();
|
2022-02-14 16:59:22 +03:00
|
|
|
} ENCOMSP_GRAPHICS_STREAM_RESUMED_PDU;
|
2014-06-24 02:17:26 +04:00
|
|
|
|
2014-06-24 00:18:03 +04:00
|
|
|
#endif /* FREERDP_CHANNEL_ENCOMSP_H */
|