2011-07-25 21:52:48 +04:00
|
|
|
/**
|
2012-10-09 07:02:04 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-07-25 21:52:48 +04:00
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#ifndef FREERDP_LIB_CORE_ACTIVATION_H
|
|
|
|
#define FREERDP_LIB_CORE_ACTIVATION_H
|
2011-07-25 21:52:48 +04:00
|
|
|
|
|
|
|
#include "rdp.h"
|
|
|
|
|
2016-08-10 10:12:55 +03:00
|
|
|
#include <freerdp/api.h>
|
2011-07-25 21:52:48 +04:00
|
|
|
#include <freerdp/settings.h>
|
2022-05-30 23:32:23 +03:00
|
|
|
#include <freerdp/cache/persistent.h>
|
2011-07-25 21:52:48 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define SYNCMSGTYPE_SYNC 0x0001
|
2011-07-25 21:52:48 +04:00
|
|
|
|
2022-06-23 10:59:24 +03:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
CTRLACTION_REQUEST_CONTROL = 0x0001,
|
|
|
|
CTRLACTION_GRANTED_CONTROL = 0x0002,
|
|
|
|
CTRLACTION_DETACH = 0x0003,
|
|
|
|
CTRLACTION_COOPERATE = 0x0004
|
|
|
|
} CTRLACTION;
|
2011-07-25 21:52:48 +04:00
|
|
|
|
2023-09-22 15:51:43 +03:00
|
|
|
typedef struct
|
2022-05-30 23:32:23 +03:00
|
|
|
{
|
|
|
|
UINT16 numEntriesCache0;
|
|
|
|
UINT16 numEntriesCache1;
|
|
|
|
UINT16 numEntriesCache2;
|
|
|
|
UINT16 numEntriesCache3;
|
|
|
|
UINT16 numEntriesCache4;
|
|
|
|
UINT16 totalEntriesCache0;
|
|
|
|
UINT16 totalEntriesCache1;
|
|
|
|
UINT16 totalEntriesCache2;
|
|
|
|
UINT16 totalEntriesCache3;
|
|
|
|
UINT16 totalEntriesCache4;
|
|
|
|
UINT32 keyCount;
|
|
|
|
UINT64* keyList;
|
2023-09-22 15:51:43 +03:00
|
|
|
} RDP_BITMAP_PERSISTENT_INFO;
|
2022-05-30 23:32:23 +03:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define PERSIST_FIRST_PDU 0x01
|
|
|
|
#define PERSIST_LAST_PDU 0x02
|
2011-07-25 21:52:48 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
#define FONTLIST_FIRST 0x0001
|
|
|
|
#define FONTLIST_LAST 0x0002
|
2011-07-25 21:52:48 +04:00
|
|
|
|
2022-06-23 10:59:24 +03:00
|
|
|
FREERDP_LOCAL const char* rdp_ctrlaction_string(UINT16 action, char* buffer, size_t size);
|
2016-08-10 10:12:55 +03:00
|
|
|
FREERDP_LOCAL BOOL rdp_recv_deactivate_all(rdpRdp* rdp, wStream* s);
|
|
|
|
FREERDP_LOCAL BOOL rdp_send_deactivate_all(rdpRdp* rdp);
|
2011-07-25 21:52:48 +04:00
|
|
|
|
2022-10-04 16:51:52 +03:00
|
|
|
FREERDP_LOCAL BOOL rdp_recv_server_synchronize_pdu(rdpRdp* rdp, wStream* s);
|
2016-08-10 10:12:55 +03:00
|
|
|
FREERDP_LOCAL BOOL rdp_send_server_synchronize_pdu(rdpRdp* rdp);
|
|
|
|
FREERDP_LOCAL BOOL rdp_recv_client_synchronize_pdu(rdpRdp* rdp, wStream* s);
|
|
|
|
FREERDP_LOCAL BOOL rdp_send_client_synchronize_pdu(rdpRdp* rdp);
|
2019-11-20 13:30:14 +03:00
|
|
|
|
2016-08-10 10:12:55 +03:00
|
|
|
FREERDP_LOCAL BOOL rdp_recv_server_control_pdu(rdpRdp* rdp, wStream* s);
|
|
|
|
FREERDP_LOCAL BOOL rdp_send_server_control_cooperate_pdu(rdpRdp* rdp);
|
|
|
|
FREERDP_LOCAL BOOL rdp_send_client_control_pdu(rdpRdp* rdp, UINT16 action);
|
2023-08-31 18:21:49 +03:00
|
|
|
FREERDP_LOCAL BOOL rdp_send_server_control_granted_pdu(rdpRdp* rdp);
|
2016-08-10 10:12:55 +03:00
|
|
|
FREERDP_LOCAL BOOL rdp_send_client_persistent_key_list_pdu(rdpRdp* rdp);
|
|
|
|
FREERDP_LOCAL BOOL rdp_send_client_font_list_pdu(rdpRdp* rdp, UINT16 flags);
|
|
|
|
FREERDP_LOCAL BOOL rdp_recv_font_map_pdu(rdpRdp* rdp, wStream* s);
|
2011-08-21 19:20:37 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
FREERDP_LOCAL BOOL rdp_server_accept_client_control_pdu(rdpRdp* rdp, wStream* s);
|
|
|
|
FREERDP_LOCAL BOOL rdp_server_accept_client_font_list_pdu(rdpRdp* rdp, wStream* s);
|
2020-11-19 17:21:49 +03:00
|
|
|
FREERDP_LOCAL BOOL rdp_server_accept_client_persistent_key_list_pdu(rdpRdp* rdp, wStream* s);
|
2011-07-25 21:52:48 +04:00
|
|
|
|
2017-06-06 15:01:41 +03:00
|
|
|
#endif /* FREERDP_LIB_CORE_ACTIVATION_H */
|