2011-07-12 02:46:36 +04:00
|
|
|
/**
|
2012-10-09 07:02:04 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-07-12 02:46:36 +04:00
|
|
|
* RDP Client Info
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INFO_H
|
|
|
|
#define __INFO_H
|
|
|
|
|
|
|
|
#include "rdp.h"
|
|
|
|
|
|
|
|
#include <freerdp/freerdp.h>
|
2013-03-22 00:45:25 +04:00
|
|
|
|
|
|
|
#include <winpr/stream.h>
|
2011-07-12 02:46:36 +04:00
|
|
|
|
|
|
|
/* Client Address Family */
|
|
|
|
#define ADDRESS_FAMILY_INET 0x0002
|
|
|
|
#define ADDRESS_FAMILY_INET6 0x0017
|
|
|
|
|
|
|
|
/* Client Info Packet Flags */
|
|
|
|
#define INFO_MOUSE 0x00000001
|
|
|
|
#define INFO_DISABLECTRLALTDEL 0x00000002
|
|
|
|
#define INFO_AUTOLOGON 0x00000008
|
|
|
|
#define INFO_UNICODE 0x00000010
|
|
|
|
#define INFO_MAXIMIZESHELL 0x00000020
|
|
|
|
#define INFO_LOGONNOTIFY 0x00000040
|
|
|
|
#define INFO_COMPRESSION 0x00000080
|
|
|
|
#define INFO_ENABLEWINDOWSKEY 0x00000100
|
|
|
|
#define INFO_REMOTECONSOLEAUDIO 0x00002000
|
|
|
|
#define INFO_FORCE_ENCRYPTED_CS_PDU 0x00004000
|
|
|
|
#define INFO_RAIL 0x00008000
|
|
|
|
#define INFO_LOGONERRORS 0x00010000
|
|
|
|
#define INFO_MOUSE_HAS_WHEEL 0x00020000
|
|
|
|
#define INFO_PASSWORD_IS_SC_PIN 0x00040000
|
|
|
|
#define INFO_NOAUDIOPLAYBACK 0x00080000
|
|
|
|
#define INFO_USING_SAVED_CREDS 0x00100000
|
2013-10-10 06:38:26 +04:00
|
|
|
#define INFO_AUDIOCAPTURE 0x00200000
|
|
|
|
#define INFO_VIDEO_DISABLE 0x00400000
|
2014-07-29 00:47:42 +04:00
|
|
|
#define INFO_HIDEF_RAIL_SUPPORTED 0x02000000
|
2011-07-12 02:46:36 +04:00
|
|
|
|
2011-07-25 21:42:14 +04:00
|
|
|
/* Extended Logon Info */
|
|
|
|
#define LOGON_EX_AUTORECONNECTCOOKIE 0x00000001
|
|
|
|
#define LOGON_EX_LOGONERRORS 0x00000002
|
|
|
|
|
2016-02-18 16:19:36 +03:00
|
|
|
#define SAVE_SESSION_PDU_VERSION_ONE 0x0001
|
|
|
|
|
2011-07-25 21:42:14 +04:00
|
|
|
|
2015-02-07 00:55:21 +03:00
|
|
|
BOOL rdp_read_client_auto_reconnect_cookie(rdpRdp* rdp, wStream* s);
|
|
|
|
void rdp_write_client_auto_reconnect_cookie(rdpRdp* rdp, wStream* s);
|
|
|
|
void rdp_write_auto_reconnect_cookie(rdpRdp* rdp, wStream* s);
|
|
|
|
BOOL rdp_read_extended_info_packet(rdpRdp* rdp, wStream* s);
|
|
|
|
void rdp_write_extended_info_packet(rdpRdp* rdp, wStream* s);
|
|
|
|
BOOL rdp_read_info_packet(rdpRdp* rdp, wStream* s);
|
|
|
|
void rdp_write_info_packet(rdpRdp* rdp, wStream* s);
|
2013-03-21 23:19:33 +04:00
|
|
|
BOOL rdp_recv_client_info(rdpRdp* rdp, wStream* s);
|
2012-10-09 10:38:39 +04:00
|
|
|
BOOL rdp_send_client_info(rdpRdp* rdp);
|
2013-03-21 23:19:33 +04:00
|
|
|
BOOL rdp_recv_save_session_info(rdpRdp* rdp, wStream* s);
|
2016-02-18 16:19:36 +03:00
|
|
|
BOOL rdp_send_save_session_info(rdpContext *context, UINT32 type, void *data);
|
2011-07-12 02:46:36 +04:00
|
|
|
|
|
|
|
#endif /* __INFO_H */
|