ReactOS 0.4.15-dev-8390-g075894b
printers.h
Go to the documentation of this file.
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 PRINTER_INFO_*
5 * COPYRIGHT: Copyright 2015-2018 Colin Finck (colin@reactos.org)
6 */
7
10 {
18 { FIELD_OFFSET(PRINTER_INFO_STRESS, cTotalPagesPrinted), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, cTotalPagesPrinted), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, cTotalPagesPrinted), FALSE },
24 { FIELD_OFFSET(PRINTER_INFO_STRESS, cErrorOutOfPaper), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, cErrorOutOfPaper), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, cErrorOutOfPaper), FALSE },
25 { FIELD_OFFSET(PRINTER_INFO_STRESS, cErrorNotReady), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, cErrorNotReady), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, cErrorNotReady), FALSE },
27 { FIELD_OFFSET(PRINTER_INFO_STRESS, dwNumberOfProcessors), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, dwNumberOfProcessors), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, dwNumberOfProcessors), FALSE },
28 { FIELD_OFFSET(PRINTER_INFO_STRESS, dwProcessorType), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, dwProcessorType), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, dwProcessorType), FALSE },
29 { FIELD_OFFSET(PRINTER_INFO_STRESS, dwHighPartTotalBytes), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, dwHighPartTotalBytes), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, dwHighPartTotalBytes), FALSE },
33 { FIELD_OFFSET(PRINTER_INFO_STRESS, cEnumerateNetworkPrinters), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, cEnumerateNetworkPrinters), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, cEnumerateNetworkPrinters), FALSE },
34 { FIELD_OFFSET(PRINTER_INFO_STRESS, cAddNetPrinters), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, cAddNetPrinters), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, cAddNetPrinters), FALSE },
35 { FIELD_OFFSET(PRINTER_INFO_STRESS, wProcessorArchitecture), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, wProcessorArchitecture), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, wProcessorArchitecture), FALSE },
36 { FIELD_OFFSET(PRINTER_INFO_STRESS, wProcessorLevel), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, wProcessorLevel), RTL_FIELD_SIZE(PRINTER_INFO_STRESS, wProcessorLevel), FALSE },
40 { MAXDWORD, 0, 0, FALSE }
41 }
42};
43
45 sizeof(PRINTER_INFO_1W),
46 {
48 { FIELD_OFFSET(PRINTER_INFO_1W, pDescription), RTL_FIELD_SIZE(PRINTER_INFO_1W, pDescription), RTL_FIELD_SIZE(PRINTER_INFO_1W, pDescription), TRUE },
51 { MAXDWORD, 0, 0, FALSE }
52 }
53};
54
56 sizeof(PRINTER_INFO_2W),
57 {
58 { FIELD_OFFSET(PRINTER_INFO_2W, pServerName), RTL_FIELD_SIZE(PRINTER_INFO_2W, pServerName), RTL_FIELD_SIZE(PRINTER_INFO_2W, pServerName), TRUE },
59 { FIELD_OFFSET(PRINTER_INFO_2W, pPrinterName), RTL_FIELD_SIZE(PRINTER_INFO_2W, pPrinterName), RTL_FIELD_SIZE(PRINTER_INFO_2W, pPrinterName), TRUE },
62 { FIELD_OFFSET(PRINTER_INFO_2W, pDriverName), RTL_FIELD_SIZE(PRINTER_INFO_2W, pDriverName), RTL_FIELD_SIZE(PRINTER_INFO_2W, pDriverName), TRUE },
67 { FIELD_OFFSET(PRINTER_INFO_2W, pPrintProcessor), RTL_FIELD_SIZE(PRINTER_INFO_2W, pPrintProcessor), RTL_FIELD_SIZE(PRINTER_INFO_2W, pPrintProcessor), TRUE },
69 { FIELD_OFFSET(PRINTER_INFO_2W, pParameters), RTL_FIELD_SIZE(PRINTER_INFO_2W, pParameters), RTL_FIELD_SIZE(PRINTER_INFO_2W, pParameters), TRUE },
70 { FIELD_OFFSET(PRINTER_INFO_2W, pSecurityDescriptor), RTL_FIELD_SIZE(PRINTER_INFO_2W, pSecurityDescriptor), RTL_FIELD_SIZE(PRINTER_INFO_2W, pSecurityDescriptor), TRUE },
73 { FIELD_OFFSET(PRINTER_INFO_2W, DefaultPriority), RTL_FIELD_SIZE(PRINTER_INFO_2W, DefaultPriority), RTL_FIELD_SIZE(PRINTER_INFO_2W, DefaultPriority), FALSE },
79 { MAXDWORD, 0, 0, FALSE }
80 }
81};
82
84 sizeof(PRINTER_INFO_3),
85 {
86 { FIELD_OFFSET(PRINTER_INFO_3, pSecurityDescriptor), RTL_FIELD_SIZE(PRINTER_INFO_3, pSecurityDescriptor), RTL_FIELD_SIZE(PRINTER_INFO_3, pSecurityDescriptor), TRUE },
87 { MAXDWORD, 0, 0, FALSE }
88 }
89};
90
92 sizeof(PRINTER_INFO_4W),
93 {
94 { FIELD_OFFSET(PRINTER_INFO_4W, pPrinterName), RTL_FIELD_SIZE(PRINTER_INFO_4W, pPrinterName), RTL_FIELD_SIZE(PRINTER_INFO_4W, pPrinterName), TRUE },
95 { FIELD_OFFSET(PRINTER_INFO_4W, pServerName), RTL_FIELD_SIZE(PRINTER_INFO_4W, pServerName), RTL_FIELD_SIZE(PRINTER_INFO_4W, pServerName), TRUE },
97 { MAXDWORD, 0, 0, FALSE }
98 }
99};
100
102 sizeof(PRINTER_INFO_5W),
103 {
104 { FIELD_OFFSET(PRINTER_INFO_5W, pPrinterName), RTL_FIELD_SIZE(PRINTER_INFO_5W, pPrinterName), RTL_FIELD_SIZE(PRINTER_INFO_5W, pPrinterName), TRUE },
107 { FIELD_OFFSET(PRINTER_INFO_5W, DeviceNotSelectedTimeout), RTL_FIELD_SIZE(PRINTER_INFO_5W, DeviceNotSelectedTimeout), RTL_FIELD_SIZE(PRINTER_INFO_5W, DeviceNotSelectedTimeout), FALSE },
108 { FIELD_OFFSET(PRINTER_INFO_5W, TransmissionRetryTimeout), RTL_FIELD_SIZE(PRINTER_INFO_5W, TransmissionRetryTimeout), RTL_FIELD_SIZE(PRINTER_INFO_5W, TransmissionRetryTimeout), FALSE },
109 { MAXDWORD, 0, 0, FALSE }
110 }
111};
112
114 sizeof(PRINTER_INFO_6),
115 {
117 { MAXDWORD, 0, 0, FALSE }
118 }
119};
120
122 sizeof(PRINTER_INFO_7W),
123 {
124 { FIELD_OFFSET(PRINTER_INFO_7W, pszObjectGUID), RTL_FIELD_SIZE(PRINTER_INFO_7W, pszObjectGUID), RTL_FIELD_SIZE(PRINTER_INFO_7W, pszObjectGUID), TRUE },
126 { MAXDWORD, 0, 0, FALSE }
127 }
128};
129
131 sizeof(PRINTER_INFO_8W),
132 {
134 { MAXDWORD, 0, 0, FALSE }
135 }
136};
137
139 sizeof(PRINTER_INFO_9W),
140 {
142 { MAXDWORD, 0, 0, FALSE }
143 }
144};
145
157};
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
unsigned short WORD
Definition: ntddk_ex.h:93
Status
Definition: gdiplustypes.h:25
#define RTL_FIELD_SIZE(type, field)
Definition: kdb_expr.c:86
static LPSTR pName
Definition: security.c:75
#define MAXDWORD
static const MARSHALLING PrinterInfo1Marshalling
Definition: printers.h:44
static const MARSHALLING PrinterInfo3Marshalling
Definition: printers.h:83
static const MARSHALLING PrinterInfo4Marshalling
Definition: printers.h:91
static const MARSHALLING PrinterInfo2Marshalling
Definition: printers.h:55
static const MARSHALLING PrinterInfo5Marshalling
Definition: printers.h:101
static const MARSHALLING PrinterInfo7Marshalling
Definition: printers.h:121
static const MARSHALLING PrinterInfoStressMarshalling
Definition: printers.h:8
static const MARSHALLING * pPrinterInfoMarshalling[]
Definition: printers.h:146
static const MARSHALLING PrinterInfo6Marshalling
Definition: printers.h:113
static const MARSHALLING PrinterInfo8Marshalling
Definition: printers.h:130
static const MARSHALLING PrinterInfo9Marshalling
Definition: printers.h:138
DWORD dwStatus
Definition: mediaobj.idl:95
struct _PRINTER_INFO_STRESS PRINTER_INFO_STRESS
static LARGE_INTEGER StartTime
Definition: sys_arch.c:13
#define FIELD_OFFSET(t, f)
Definition: typedefs.h:255
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
_In_ WDFINTERRUPT _In_ WDF_INTERRUPT_POLICY _In_ WDF_INTERRUPT_PRIORITY Priority
Definition: wdfinterrupt.h:655
struct _PRINTER_INFO_8W PRINTER_INFO_8W
struct _PRINTER_INFO_5W PRINTER_INFO_5W
struct _PRINTER_INFO_3 PRINTER_INFO_3
struct _PRINTER_INFO_1W PRINTER_INFO_1W
struct _PRINTER_INFO_2W PRINTER_INFO_2W
struct _PRINTER_INFO_9W PRINTER_INFO_9W
struct _PRINTER_INFO_4W PRINTER_INFO_4W
struct _PRINTER_INFO_6 PRINTER_INFO_6
struct _PRINTER_INFO_7W PRINTER_INFO_7W
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170