2
* FreeRDP: A Remote Desktop Protocol Implementation
5
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
7
* Licensed under the Apache License, Version 2.0 (the "License");
8
* you may not use this file except in compliance with the License.
9
* You may obtain a copy of the License at
11
* http://www.apache.org/licenses/LICENSE-2.0
13
* Unless required by applicable law or agreed to in writing, software
14
* distributed under the License is distributed on an "AS IS" BASIS,
15
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
* See the License for the specific language governing permissions and
17
* limitations under the License.
25
#include <freerdp/freerdp.h>
27
#include <winpr/stream.h>
29
/* Client Address Family */
30
#define ADDRESS_FAMILY_INET 0x0002
31
#define ADDRESS_FAMILY_INET6 0x0017
33
/* Client Info Packet Flags */
34
#define INFO_MOUSE 0x00000001
35
#define INFO_DISABLECTRLALTDEL 0x00000002
36
#define INFO_AUTOLOGON 0x00000008
37
#define INFO_UNICODE 0x00000010
38
#define INFO_MAXIMIZESHELL 0x00000020
39
#define INFO_LOGONNOTIFY 0x00000040
40
#define INFO_COMPRESSION 0x00000080
41
#define INFO_ENABLEWINDOWSKEY 0x00000100
42
#define INFO_REMOTECONSOLEAUDIO 0x00002000
43
#define INFO_FORCE_ENCRYPTED_CS_PDU 0x00004000
44
#define INFO_RAIL 0x00008000
45
#define INFO_LOGONERRORS 0x00010000
46
#define INFO_MOUSE_HAS_WHEEL 0x00020000
47
#define INFO_PASSWORD_IS_SC_PIN 0x00040000
48
#define INFO_NOAUDIOPLAYBACK 0x00080000
49
#define INFO_USING_SAVED_CREDS 0x00100000
50
#define RNS_INFO_AUDIOCAPTURE 0x00200000
51
#define RNS_INFO_VIDEO_DISABLE 0x00400000
52
#define INFO_CompressionTypeMask 0x00001E00
53
#define INFO_PACKET_COMPR_TYPE_8K 0x00000100
54
#define INFO_PACKET_COMPR_TYPE_64K 0x00000200
55
#define INFO_PACKET_COMPR_TYPE_RDP6 0x00000400
56
#define INFO_PACKET_COMPR_TYPE_RDP61 0x00000600
58
/* Logon Information Types */
59
#define INFO_TYPE_LOGON 0x00000000
60
#define INFO_TYPE_LOGON_LONG 0x00000001
61
#define INFO_TYPE_LOGON_PLAIN_NOTIFY 0x00000002
62
#define INFO_TYPE_LOGON_EXTENDED_INF 0x00000003
64
/* Extended Logon Info */
65
#define LOGON_EX_AUTORECONNECTCOOKIE 0x00000001
66
#define LOGON_EX_LOGONERRORS 0x00000002
68
/* Logon Error Info */
69
#define LOGON_FAILED_BAD_PASSWORD 0x00000000
70
#define LOGON_FAILED_UPDATE_PASSWORD 0x00000001
71
#define LOGON_FAILED_OTHER 0x00000002
72
#define LOGON_WARNING 0x00000003
74
void rdp_read_system_time(wStream* s, SYSTEM_TIME* system_time);
75
void rdp_write_system_time(wStream* s, SYSTEM_TIME* system_time);
76
void rdp_get_client_time_zone(wStream* s, rdpSettings* settings);
77
BOOL rdp_read_client_time_zone(wStream* s, rdpSettings* settings);
78
void rdp_write_client_time_zone(wStream* s, rdpSettings* settings);
79
BOOL rdp_read_server_auto_reconnect_cookie(wStream* s, rdpSettings* settings);
80
BOOL rdp_read_client_auto_reconnect_cookie(wStream* s, rdpSettings* settings);
81
void rdp_write_client_auto_reconnect_cookie(wStream* s, rdpSettings* settings);
82
void rdp_write_auto_reconnect_cookie(wStream* s, rdpSettings* settings);
83
BOOL rdp_read_extended_info_packet(wStream* s, rdpSettings* settings);
84
void rdp_write_extended_info_packet(wStream* s, rdpSettings* settings);
85
BOOL rdp_read_info_packet(wStream* s, rdpSettings* settings);
86
void rdp_write_info_packet(wStream* s, rdpSettings* settings);
87
BOOL rdp_recv_client_info(rdpRdp* rdp, wStream* s);
88
BOOL rdp_send_client_info(rdpRdp* rdp);
89
BOOL rdp_recv_save_session_info(rdpRdp* rdp, wStream* s);