[LOCALUI] Sync with Wine Staging 3.3. CORE-14434
[reactos.git] / win32ss / printing / include / marshalling / monitors.h
1 /*
2 * PROJECT: ReactOS Printing Stack Marshalling Functions
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: Marshalling definitions for MONITOR_INFO_*
5 * COPYRIGHT: Copyright 2015-2018 Colin Finck (colin@reactos.org)
6 */
7
8 static const MARSHALLING MonitorInfo1Marshalling = {
9 sizeof(MONITOR_INFO_1W),
10 {
11 { FIELD_OFFSET(MONITOR_INFO_1W, pName), RTL_FIELD_SIZE(MONITOR_INFO_1W, pName), RTL_FIELD_SIZE(MONITOR_INFO_1W, pName), TRUE },
12 { MAXDWORD, 0, 0, FALSE }
13 }
14 };
15
16 static const MARSHALLING MonitorInfo2Marshalling = {
17 sizeof(MONITOR_INFO_2W),
18 {
19 { FIELD_OFFSET(MONITOR_INFO_2W, pName), RTL_FIELD_SIZE(MONITOR_INFO_2W, pName), RTL_FIELD_SIZE(MONITOR_INFO_2W, pName), TRUE },
20 { FIELD_OFFSET(MONITOR_INFO_2W, pEnvironment), RTL_FIELD_SIZE(MONITOR_INFO_2W, pEnvironment), RTL_FIELD_SIZE(MONITOR_INFO_2W, pEnvironment), TRUE },
21 { FIELD_OFFSET(MONITOR_INFO_2W, pDLLName), RTL_FIELD_SIZE(MONITOR_INFO_2W, pDLLName), RTL_FIELD_SIZE(MONITOR_INFO_2W, pDLLName), TRUE },
22 { MAXDWORD, 0, 0, FALSE }
23 }
24 };
25
26 static const MARSHALLING* pMonitorInfoMarshalling[] = {
27 NULL,
28 &MonitorInfo1Marshalling,
29 &MonitorInfo2Marshalling
30 };