2011-07-25 21:52:48 +04:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Client
|
|
|
|
* Activation Sequence
|
|
|
|
*
|
|
|
|
* 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 __ACTIVATION_H
|
|
|
|
#define __ACTIVATION_H
|
|
|
|
|
|
|
|
#include "rdp.h"
|
|
|
|
|
|
|
|
#include <freerdp/settings.h>
|
|
|
|
#include <freerdp/utils/memory.h>
|
|
|
|
|
|
|
|
#define SYNCMSGTYPE_SYNC 0x0001
|
|
|
|
|
|
|
|
#define CTRLACTION_REQUEST_CONTROL 0x0001
|
|
|
|
#define CTRLACTION_GRANTED_CONTROL 0x0002
|
|
|
|
#define CTRLACTION_DETACH 0x0003
|
|
|
|
#define CTRLACTION_COOPERATE 0x0004
|
|
|
|
|
|
|
|
#define PERSIST_FIRST_PDU 0x01
|
|
|
|
#define PERSIST_LAST_PDU 0x02
|
|
|
|
|
|
|
|
#define FONTLIST_FIRST 0x0001
|
|
|
|
#define FONTLIST_LAST 0x0002
|
|
|
|
|
2011-08-23 08:58:10 +04:00
|
|
|
boolean rdp_recv_deactivate_all(rdpRdp* rdp, STREAM* s);
|
2011-09-06 13:19:16 +04:00
|
|
|
boolean rdp_send_deactivate_all(rdpRdp* rdp);
|
2011-07-25 21:52:48 +04:00
|
|
|
|
2012-01-09 01:02:59 +04:00
|
|
|
boolean rdp_recv_synchronize_pdu(rdpRdp* rdp, STREAM* s);
|
2011-08-23 08:58:10 +04:00
|
|
|
boolean rdp_recv_server_synchronize_pdu(rdpRdp* rdp, STREAM* s);
|
2011-08-21 17:48:42 +04:00
|
|
|
boolean rdp_send_server_synchronize_pdu(rdpRdp* rdp);
|
2012-01-09 01:02:59 +04:00
|
|
|
boolean rdp_recv_client_synchronize_pdu(rdpRdp* rdp, STREAM* s);
|
2011-08-21 17:48:42 +04:00
|
|
|
boolean rdp_send_client_synchronize_pdu(rdpRdp* rdp);
|
2011-08-23 08:58:10 +04:00
|
|
|
boolean rdp_recv_control_pdu(STREAM* s, uint16* action);
|
|
|
|
boolean rdp_recv_server_control_pdu(rdpRdp* rdp, STREAM* s);
|
2011-08-21 17:48:42 +04:00
|
|
|
boolean rdp_send_server_control_cooperate_pdu(rdpRdp* rdp);
|
|
|
|
boolean rdp_send_server_control_granted_pdu(rdpRdp* rdp);
|
2011-08-22 11:03:58 +04:00
|
|
|
boolean rdp_send_client_control_pdu(rdpRdp* rdp, uint16 action);
|
|
|
|
boolean rdp_send_client_persistent_key_list_pdu(rdpRdp* rdp);
|
2011-08-23 08:58:10 +04:00
|
|
|
boolean rdp_recv_client_font_list_pdu(STREAM* s);
|
2011-08-22 11:03:58 +04:00
|
|
|
boolean rdp_send_client_font_list_pdu(rdpRdp* rdp, uint16 flags);
|
2012-01-09 01:02:59 +04:00
|
|
|
boolean rdp_recv_font_map_pdu(rdpRdp* rdp, STREAM* s);
|
2011-08-23 08:58:10 +04:00
|
|
|
boolean rdp_recv_server_font_map_pdu(rdpRdp* rdp, STREAM* s);
|
2012-01-09 01:02:59 +04:00
|
|
|
boolean rdp_recv_client_font_map_pdu(rdpRdp* rdp, STREAM* s);
|
2011-08-21 19:20:37 +04:00
|
|
|
boolean rdp_send_server_font_map_pdu(rdpRdp* rdp);
|
|
|
|
|
|
|
|
boolean rdp_server_accept_client_control_pdu(rdpRdp* rdp, STREAM* s);
|
|
|
|
boolean rdp_server_accept_client_font_list_pdu(rdpRdp* rdp, STREAM* s);
|
2011-07-25 21:52:48 +04:00
|
|
|
|
|
|
|
#endif /* __ACTIVATION_H */
|