2012-09-20 07:51:34 +04:00
|
|
|
/**
|
|
|
|
* xrdp: A Remote Desktop Protocol server.
|
|
|
|
*
|
2014-03-02 11:26:40 +04:00
|
|
|
* Copyright (C) Jay Sorg 2004-2014
|
2012-09-20 07:51:34 +04:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* xrdp / xserver info / caps
|
|
|
|
*/
|
2012-05-14 00:56:15 +04:00
|
|
|
|
|
|
|
#if !defined(XRDP_CLIENT_INFO_H)
|
|
|
|
#define XRDP_CLIENT_INFO_H
|
|
|
|
|
2013-10-30 21:41:59 +04:00
|
|
|
struct monitor_info
|
|
|
|
{
|
|
|
|
int left;
|
|
|
|
int top;
|
|
|
|
int right;
|
|
|
|
int bottom;
|
|
|
|
int is_primary;
|
|
|
|
};
|
|
|
|
|
2012-05-14 00:56:15 +04:00
|
|
|
struct xrdp_client_info
|
|
|
|
{
|
|
|
|
int size; /* bytes for this structure */
|
|
|
|
int bpp;
|
|
|
|
int width;
|
|
|
|
int height;
|
|
|
|
/* bitmap cache info */
|
|
|
|
int cache1_entries;
|
|
|
|
int cache1_size;
|
|
|
|
int cache2_entries;
|
|
|
|
int cache2_size;
|
|
|
|
int cache3_entries;
|
|
|
|
int cache3_size;
|
|
|
|
int bitmap_cache_persist_enable; /* 0 or 2 */
|
2012-07-23 22:12:39 +04:00
|
|
|
int bitmap_cache_version; /* ored 1 = original version, 2 = v2, 4 = v3 */
|
2012-05-14 00:56:15 +04:00
|
|
|
/* pointer info */
|
|
|
|
int pointer_cache_entries;
|
|
|
|
/* other */
|
|
|
|
int use_bitmap_comp;
|
|
|
|
int use_bitmap_cache;
|
|
|
|
int op1; /* use smaller bitmap header, non cache */
|
|
|
|
int op2; /* use smaller bitmap header in bitmap cache */
|
|
|
|
int desktop_cache;
|
|
|
|
int use_compact_packets; /* rdp5 smaller packets */
|
|
|
|
char hostname[32];
|
|
|
|
int build;
|
|
|
|
int keylayout;
|
|
|
|
char username[256];
|
|
|
|
char password[256];
|
|
|
|
char domain[256];
|
|
|
|
char program[256];
|
|
|
|
char directory[256];
|
|
|
|
int rdp_compression;
|
|
|
|
int rdp_autologin;
|
|
|
|
int crypt_level; /* 1, 2, 3 = low, medium, high */
|
|
|
|
int channel_code; /* 0 = no channels 1 = channels */
|
|
|
|
int sound_code; /* 1 = leave sound at server */
|
|
|
|
int is_mce;
|
|
|
|
int rdp5_performanceflags;
|
|
|
|
int brush_cache_code; /* 0 = no cache 1 = 8x8 standard cache
|
|
|
|
2 = arbitrary dimensions */
|
|
|
|
char client_ip[256];
|
|
|
|
int max_bpp;
|
|
|
|
int jpeg; /* non standard bitmap cache v2 cap */
|
|
|
|
int offscreen_support_level;
|
|
|
|
int offscreen_cache_size;
|
|
|
|
int offscreen_cache_entries;
|
|
|
|
int rfx;
|
2013-07-15 11:13:03 +04:00
|
|
|
|
2012-06-15 02:15:00 +04:00
|
|
|
/* CAPSETTYPE_RAIL */
|
|
|
|
int rail_support_level;
|
|
|
|
/* CAPSETTYPE_WINDOW */
|
|
|
|
int wnd_support_level;
|
|
|
|
int wnd_num_icon_caches;
|
|
|
|
int wnd_num_icon_cache_entries;
|
2012-07-18 02:19:59 +04:00
|
|
|
/* codecs */
|
2012-07-17 23:59:03 +04:00
|
|
|
int rfx_codec_id;
|
2012-07-18 02:19:59 +04:00
|
|
|
int rfx_prop_len;
|
|
|
|
char rfx_prop[64];
|
|
|
|
int ns_codec_id;
|
|
|
|
int ns_prop_len;
|
|
|
|
char ns_prop[64];
|
|
|
|
int jpeg_codec_id;
|
|
|
|
int jpeg_prop_len;
|
|
|
|
char jpeg_prop[64];
|
2012-07-24 22:56:09 +04:00
|
|
|
int v3_codec_id;
|
2013-03-26 23:40:22 +04:00
|
|
|
int rfx_min_pixel;
|
|
|
|
char orders[32];
|
|
|
|
int order_flags_ex;
|
2013-01-07 11:56:40 +04:00
|
|
|
int use_bulk_comp;
|
2013-10-30 21:41:59 +04:00
|
|
|
int pointer_flags; /* 0 color, 1 new, 2 no new */
|
2013-07-10 08:34:20 +04:00
|
|
|
int use_fast_path;
|
2013-08-04 02:47:26 +04:00
|
|
|
int require_credentials; /* when true, credentials *must* be passed on cmd line */
|
2013-10-03 03:27:12 +04:00
|
|
|
char client_addr[256];
|
|
|
|
char client_port[256];
|
2013-10-30 21:41:59 +04:00
|
|
|
|
2014-07-09 16:33:39 +04:00
|
|
|
int security_layer; /* 0 = rdp, 1 = tls , 2 = hybrid */
|
2013-10-30 21:41:59 +04:00
|
|
|
int multimon; /* 0 = deny , 1 = allow */
|
2013-11-05 23:36:18 +04:00
|
|
|
int monitorCount; /* number of monitors detected (max = 16) */
|
2013-10-30 21:41:59 +04:00
|
|
|
struct monitor_info minfo[16]; /* client monitor data */
|
2016-05-18 03:11:49 +03:00
|
|
|
struct monitor_info minfo_wm[16]; /* client monitor data, non-negative values */
|
2014-01-13 06:24:07 +04:00
|
|
|
|
|
|
|
int keyboard_type;
|
|
|
|
int keyboard_subtype;
|
2014-03-02 11:26:40 +04:00
|
|
|
|
2014-02-18 22:28:20 +04:00
|
|
|
int png_codec_id;
|
|
|
|
int png_prop_len;
|
|
|
|
char png_prop[64];
|
|
|
|
int vendor_flags[4];
|
|
|
|
int mcs_connection_type;
|
|
|
|
int mcs_early_capability_flags;
|
|
|
|
|
2014-03-11 09:54:28 +04:00
|
|
|
int max_fastpath_frag_bytes;
|
2014-07-20 00:25:23 +04:00
|
|
|
int capture_code;
|
|
|
|
int capture_format;
|
2014-03-11 09:54:28 +04:00
|
|
|
|
2014-07-23 16:31:45 +04:00
|
|
|
char certificate[1024];
|
|
|
|
char key_file[1024];
|
|
|
|
|
2014-08-01 02:34:05 +04:00
|
|
|
/* X11 keyboard layout - inferred from keyboard type/subtype */
|
|
|
|
char model[16];
|
|
|
|
char layout[16];
|
|
|
|
char variant[16];
|
2015-02-06 09:04:39 +03:00
|
|
|
char options[256];
|
2014-08-01 02:34:05 +04:00
|
|
|
|
2015-03-29 04:34:25 +03:00
|
|
|
/* codec */
|
|
|
|
int h264_codec_id;
|
|
|
|
int h264_prop_len;
|
|
|
|
char h264_prop[64];
|
|
|
|
|
|
|
|
int use_frame_acks;
|
|
|
|
int max_unacknowledged_frame_count;
|
|
|
|
|
2016-08-25 21:20:47 +03:00
|
|
|
int disableSSLv3; /* 0 = no, 1 = yes */
|
|
|
|
char tls_ciphers[64];
|
2012-05-14 00:56:15 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|