2011-07-20 00:30:05 +04:00
|
|
|
/**
|
2012-10-09 07:02:04 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-07-20 00:30:05 +04:00
|
|
|
* RDP Capability Sets
|
|
|
|
*
|
|
|
|
* Copyright 2011 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.
|
|
|
|
*/
|
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#ifndef FREERDP_LIB_CORE_CAPABILITIES_H
|
|
|
|
#define FREERDP_LIB_CORE_CAPABILITIES_H
|
2011-07-20 00:30:05 +04:00
|
|
|
|
2011-07-21 21:57:57 +04:00
|
|
|
#include "rdp.h"
|
|
|
|
|
2011-07-20 00:30:05 +04:00
|
|
|
#include <freerdp/freerdp.h>
|
2011-08-09 19:45:55 +04:00
|
|
|
#include <freerdp/constants.h>
|
2011-07-20 00:30:05 +04:00
|
|
|
#include <freerdp/settings.h>
|
2016-08-10 10:12:55 +03:00
|
|
|
#include <freerdp/api.h>
|
2013-03-22 00:45:25 +04:00
|
|
|
|
|
|
|
#include <winpr/stream.h>
|
2011-07-20 00:30:05 +04:00
|
|
|
|
|
|
|
/* Capability Set Types */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define CAPSET_TYPE_GENERAL 0x0001
|
|
|
|
#define CAPSET_TYPE_BITMAP 0x0002
|
|
|
|
#define CAPSET_TYPE_ORDER 0x0003
|
|
|
|
#define CAPSET_TYPE_BITMAP_CACHE 0x0004
|
|
|
|
#define CAPSET_TYPE_CONTROL 0x0005
|
|
|
|
#define CAPSET_TYPE_BITMAP_CACHE_V3_CODEC_ID 0x0006
|
|
|
|
#define CAPSET_TYPE_ACTIVATION 0x0007
|
|
|
|
#define CAPSET_TYPE_POINTER 0x0008
|
|
|
|
#define CAPSET_TYPE_SHARE 0x0009
|
|
|
|
#define CAPSET_TYPE_COLOR_CACHE 0x000A
|
|
|
|
#define CAPSET_TYPE_SOUND 0x000C
|
|
|
|
#define CAPSET_TYPE_INPUT 0x000D
|
|
|
|
#define CAPSET_TYPE_FONT 0x000E
|
|
|
|
#define CAPSET_TYPE_BRUSH 0x000F
|
|
|
|
#define CAPSET_TYPE_GLYPH_CACHE 0x0010
|
|
|
|
#define CAPSET_TYPE_OFFSCREEN_CACHE 0x0011
|
|
|
|
#define CAPSET_TYPE_BITMAP_CACHE_HOST_SUPPORT 0x0012
|
|
|
|
#define CAPSET_TYPE_BITMAP_CACHE_V2 0x0013
|
|
|
|
#define CAPSET_TYPE_VIRTUAL_CHANNEL 0x0014
|
|
|
|
#define CAPSET_TYPE_DRAW_NINE_GRID_CACHE 0x0015
|
|
|
|
#define CAPSET_TYPE_DRAW_GDI_PLUS 0x0016
|
|
|
|
#define CAPSET_TYPE_RAIL 0x0017
|
|
|
|
#define CAPSET_TYPE_WINDOW 0x0018
|
|
|
|
#define CAPSET_TYPE_COMP_DESK 0x0019
|
|
|
|
#define CAPSET_TYPE_MULTI_FRAGMENT_UPDATE 0x001A
|
|
|
|
#define CAPSET_TYPE_LARGE_POINTER 0x001B
|
|
|
|
#define CAPSET_TYPE_SURFACE_COMMANDS 0x001C
|
|
|
|
#define CAPSET_TYPE_BITMAP_CODECS 0x001D
|
|
|
|
#define CAPSET_TYPE_FRAME_ACKNOWLEDGE 0x001E
|
|
|
|
|
|
|
|
#define CAPSET_HEADER_LENGTH 4
|
|
|
|
|
|
|
|
#define SOURCE_DESCRIPTOR "FREERDP"
|
2011-07-21 09:56:48 +04:00
|
|
|
|
|
|
|
/* Capabilities Protocol Version */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define CAPS_PROTOCOL_VERSION 0x0200
|
2011-07-21 09:56:48 +04:00
|
|
|
|
2011-07-21 06:05:12 +04:00
|
|
|
/* General Capability Flags */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define FASTPATH_OUTPUT_SUPPORTED 0x0001
|
|
|
|
#define NO_BITMAP_COMPRESSION_HDR 0x0400
|
|
|
|
#define LONG_CREDENTIALS_SUPPORTED 0x0004
|
|
|
|
#define AUTORECONNECT_SUPPORTED 0x0008
|
|
|
|
#define ENC_SALTED_CHECKSUM 0x0010
|
2011-07-21 06:05:12 +04:00
|
|
|
|
|
|
|
/* Drawing Flags */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define DRAW_ALLOW_DYNAMIC_COLOR_FIDELITY 0x02
|
|
|
|
#define DRAW_ALLOW_COLOR_SUBSAMPLING 0x04
|
|
|
|
#define DRAW_ALLOW_SKIP_ALPHA 0x08
|
2011-07-21 06:05:12 +04:00
|
|
|
|
|
|
|
/* Order Flags */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define NEGOTIATE_ORDER_SUPPORT 0x0002
|
|
|
|
#define ZERO_BOUNDS_DELTA_SUPPORT 0x0008
|
|
|
|
#define COLOR_INDEX_SUPPORT 0x0020
|
|
|
|
#define SOLID_PATTERN_BRUSH_ONLY 0x0040
|
|
|
|
#define ORDER_FLAGS_EXTRA_SUPPORT 0x0080
|
2011-07-21 06:05:12 +04:00
|
|
|
|
|
|
|
/* Extended Order Flags */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define CACHE_BITMAP_V3_SUPPORT 0x0002
|
|
|
|
#define ALTSEC_FRAME_MARKER_SUPPORT 0x0004
|
2011-07-21 06:05:12 +04:00
|
|
|
|
|
|
|
/* Sound Flags */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define SOUND_BEEPS_FLAG 0x0001
|
2011-07-21 06:05:12 +04:00
|
|
|
|
|
|
|
/* Input Flags */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define INPUT_FLAG_SCANCODES 0x0001
|
|
|
|
#define INPUT_FLAG_MOUSEX 0x0004
|
|
|
|
#define INPUT_FLAG_FASTPATH_INPUT 0x0008
|
|
|
|
#define INPUT_FLAG_UNICODE 0x0010
|
|
|
|
#define INPUT_FLAG_FASTPATH_INPUT2 0x0020
|
2023-12-06 11:35:03 +03:00
|
|
|
#define INPUT_FLAG_UNUSED1 0x0040
|
2023-10-12 14:43:00 +03:00
|
|
|
#define INPUT_FLAG_MOUSE_RELATIVE 0x0080
|
2019-11-06 17:24:51 +03:00
|
|
|
#define TS_INPUT_FLAG_MOUSE_HWHEEL 0x0100
|
|
|
|
#define TS_INPUT_FLAG_QOE_TIMESTAMPS 0x0200
|
2011-07-21 06:05:12 +04:00
|
|
|
|
|
|
|
/* Font Support Flags */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define FONTSUPPORT_FONTLIST 0x0001
|
2011-07-21 06:05:12 +04:00
|
|
|
|
|
|
|
/* Brush Support Level */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define BRUSH_DEFAULT 0x00000000
|
|
|
|
#define BRUSH_COLOR_8x8 0x00000001
|
|
|
|
#define BRUSH_COLOR_FULL 0x00000002
|
2011-07-21 06:05:12 +04:00
|
|
|
|
|
|
|
/* Bitmap Cache Version */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define BITMAP_CACHE_V2 0x01
|
2011-07-21 06:05:12 +04:00
|
|
|
|
|
|
|
/* Bitmap Cache V2 Flags */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define PERSISTENT_KEYS_EXPECTED_FLAG 0x0001
|
|
|
|
#define ALLOW_CACHE_WAITING_LIST_FLAG 0x0002
|
2011-07-21 06:05:12 +04:00
|
|
|
|
|
|
|
/* Draw Nine Grid Support Level */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define DRAW_NINEGRID_NO_SUPPORT 0x00000000
|
|
|
|
#define DRAW_NINEGRID_SUPPORTED 0x00000001
|
|
|
|
#define DRAW_NINEGRID_SUPPORTED_V2 0x00000002
|
2011-07-21 06:05:12 +04:00
|
|
|
|
|
|
|
/* Draw GDI+ Support Level */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define DRAW_GDIPLUS_DEFAULT 0x00000000
|
|
|
|
#define DRAW_GDIPLUS_SUPPORTED 0x00000001
|
2011-07-21 06:05:12 +04:00
|
|
|
|
|
|
|
/* Draw GDI+ Cache Level */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define DRAW_GDIPLUS_CACHE_LEVEL_DEFAULT 0x00000000
|
|
|
|
#define DRAW_GDIPLUS_CACHE_LEVEL_ONE 0x00000001
|
2011-07-21 06:05:12 +04:00
|
|
|
|
|
|
|
/* Window Support Level */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define WINDOW_LEVEL_NOT_SUPPORTED 0x00000000
|
|
|
|
#define WINDOW_LEVEL_SUPPORTED 0x00000001
|
|
|
|
#define WINDOW_LEVEL_SUPPORTED_EX 0x00000002
|
2011-07-21 06:05:12 +04:00
|
|
|
|
|
|
|
/* Desktop Composition Support Level */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define COMPDESK_NOT_SUPPORTED 0x0000
|
|
|
|
#define COMPDESK_SUPPORTED 0x0001
|
2011-07-21 06:05:12 +04:00
|
|
|
|
2011-08-09 19:45:55 +04:00
|
|
|
/* Bitmap Codec Constants */
|
2019-11-06 17:24:51 +03:00
|
|
|
#define CARDP_CAPS_CAPTURE_NON_CAC 0x00000001
|
|
|
|
#define CBY_CAPS 0xCBC0
|
|
|
|
#define CBY_CAPSET 0xCBC1
|
|
|
|
#define CLY_CAPSET 0xCFC0
|
|
|
|
#define CLW_VERSION_1_0 0x0100
|
|
|
|
#define CT_TILE_64x64 0x0040
|
|
|
|
#define CLW_COL_CONV_ICT 0x1
|
|
|
|
#define CLW_XFORM_DWT_53_A 0x1
|
|
|
|
#define CLW_ENTROPY_RLGR1 0x01
|
|
|
|
#define CLW_ENTROPY_RLGR3 0x04
|
|
|
|
|
2020-02-20 10:22:19 +03:00
|
|
|
FREERDP_LOCAL BOOL rdp_recv_get_active_header(rdpRdp* rdp, wStream* s, UINT16* pChannelId,
|
|
|
|
UINT16* length);
|
2023-11-21 13:35:54 +03:00
|
|
|
FREERDP_LOCAL BOOL rdp_recv_demand_active(rdpRdp* rdp, wStream* s, UINT16 pduSource, UINT16 length);
|
2016-08-10 10:12:55 +03:00
|
|
|
FREERDP_LOCAL BOOL rdp_send_demand_active(rdpRdp* rdp);
|
2020-02-21 11:17:00 +03:00
|
|
|
FREERDP_LOCAL BOOL rdp_recv_confirm_active(rdpRdp* rdp, wStream* s, UINT16 pduLength);
|
2016-08-10 10:12:55 +03:00
|
|
|
FREERDP_LOCAL BOOL rdp_send_confirm_active(rdpRdp* rdp);
|
2011-07-20 00:30:05 +04:00
|
|
|
|
2023-12-06 11:35:03 +03:00
|
|
|
FREERDP_LOCAL BOOL rdp_read_capability_set(wStream* sub, UINT16 type, rdpSettings* settings,
|
|
|
|
BOOL isServer);
|
|
|
|
|
|
|
|
FREERDP_LOCAL const char* rdp_input_flag_string(UINT16 flags, char* buffer, size_t len);
|
2022-10-05 10:30:37 +03:00
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#endif /* FREERDP_LIB_CORE_CAPABILITIES_H */
|