geometry.h (1528B)
1/** 2 * FreeRDP: A Remote Desktop Protocol Implementation 3 * Geometry tracking Virtual Channel Extension 4 * 5 * Copyright 2017 David Fort <contact@hardening-consulting.com> 6 * 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 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 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. 18 */ 19 20#ifndef FREERDP_CHANNEL_GEOMETRY_H 21#define FREERDP_CHANNEL_GEOMETRY_H 22 23#include <winpr/wtypes.h> 24#include <freerdp/types.h> 25 26#define GEOMETRY_DVC_CHANNEL_NAME "Microsoft::Windows::RDS::Geometry::v08.01" 27 28enum 29{ 30 GEOMETRY_UPDATE = 1, 31 GEOMETRY_CLEAR = 2 32}; 33 34enum 35{ 36 RDH_RECTANGLE = 1 37}; 38 39struct _FREERDP_RGNDATA 40{ 41 RDP_RECT boundingRect; 42 UINT32 nRectCount; 43 RDP_RECT* rects; 44}; 45 46typedef struct _FREERDP_RGNDATA FREERDP_RGNDATA; 47 48struct _MAPPED_GEOMETRY_PACKET 49{ 50 UINT32 version; 51 UINT64 mappingId; 52 UINT32 updateType; 53 UINT64 topLevelId; 54 INT32 left, top, right, bottom; 55 INT32 topLevelLeft, topLevelTop, topLevelRight, topLevelBottom; 56 UINT32 geometryType; 57 58 FREERDP_RGNDATA geometry; 59}; 60 61typedef struct _MAPPED_GEOMETRY_PACKET MAPPED_GEOMETRY_PACKET; 62 63#endif /* FREERDP_CHANNEL_GEOMETRY_H */