2
* FreeRDP: A Remote Desktop Protocol Implementation
3
* Display Update Virtual Channel Extension
5
* Copyright 2013 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.
20
#ifndef FREERDP_CHANNEL_CLIENT_DISP_H
21
#define FREERDP_CHANNEL_CLIENT_DISP_H
23
#define ORIENTATION_LANDSCAPE 0
24
#define ORIENTATION_PORTRAIT 90
25
#define ORIENTATION_LANDSCAPE_FLIPPED 180
26
#define ORIENTATION_PORTRAIT_FLIPPED 270
28
#define DISPLAY_CONTROL_MONITOR_PRIMARY 0x00000001
30
struct _DISPLAY_CONTROL_MONITOR_LAYOUT
38
UINT32 PhysicalHeight;
40
UINT32 DesktopScaleFactor;
41
UINT32 DeviceScaleFactor;
43
typedef struct _DISPLAY_CONTROL_MONITOR_LAYOUT DISPLAY_CONTROL_MONITOR_LAYOUT;
49
#define DISP_DVC_CHANNEL_NAME "Microsoft::Windows::RDS::DisplayControl"
51
typedef struct _disp_client_context DispClientContext;
53
typedef int (*pcDispSendMonitorLayout)(DispClientContext* context, UINT32 NumMonitors, DISPLAY_CONTROL_MONITOR_LAYOUT* Monitors);
55
struct _disp_client_context
60
pcDispSendMonitorLayout SendMonitorLayout;
63
#endif /* FREERDP_CHANNEL_CLIENT_DISP_H */