VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/winspool.h@ 30705

Last change on this file since 30705 was 28475, checked in by vboxsync, 15 years ago

crOpenGL: update to wine 1.1.43

  • Property svn:eol-style set to native
File size: 49.5 KB
Line 
1/* Definitions for printing
2 *
3 * Copyright 1998 Huw Davies, Andreas Mohr
4 *
5 * Portions Copyright (c) 1999 Corel Corporation
6 * (Paul Quinn, Albert Den Haan)
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 */
22
23/*
24 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
25 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
26 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
27 * a choice of LGPL license versions is made available with the language indicating
28 * that LGPLv2 or any later version may be used, or where a choice of which version
29 * of the LGPL is applied is otherwise unspecified.
30 */
31
32#ifndef __WINE_WINSPOOL_H
33#define __WINE_WINSPOOL_H
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39/* DEFINES */
40
41#define PRINTER_ATTRIBUTE_QUEUED 0x00000001
42#define PRINTER_ATTRIBUTE_DIRECT 0x00000002
43#define PRINTER_ATTRIBUTE_DEFAULT 0x00000004
44#define PRINTER_ATTRIBUTE_SHARED 0x00000008
45#define PRINTER_ATTRIBUTE_NETWORK 0x00000010
46#define PRINTER_ATTRIBUTE_HIDDEN 0x00000020
47#define PRINTER_ATTRIBUTE_LOCAL 0x00000040
48#define PRINTER_ATTRIBUTE_ENABLE_DEVQ 0x00000080
49#define PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS 0x00000100
50#define PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST 0x00000200
51#define PRINTER_ATTRIBUTE_WORK_OFFLINE 0x00000400
52#define PRINTER_ATTRIBUTE_ENABLE_BIDI 0x00000800
53#define PRINTER_ATTRIBUTE_RAW_ONLY 0x00001000
54#define PRINTER_ATTRIBUTE_PUBLISHED 0x00002000
55
56#define PRINTER_CONTROL_PAUSE 1
57#define PRINTER_CONTROL_RESUME 2
58#define PRINTER_CONTROL_PURGE 3
59#define PRINTER_CONTROL_SET_STATUS 4
60
61#define PRINTER_ENUM_DEFAULT 0x00000001
62#define PRINTER_ENUM_LOCAL 0x00000002
63#define PRINTER_ENUM_CONNECTIONS 0x00000004
64#define PRINTER_ENUM_FAVORITE 0x00000004
65#define PRINTER_ENUM_NAME 0x00000008
66#define PRINTER_ENUM_REMOTE 0x00000010
67#define PRINTER_ENUM_SHARED 0x00000020
68#define PRINTER_ENUM_NETWORK 0x00000040
69
70#define PRINTER_ENUM_EXPAND 0x00004000
71#define PRINTER_ENUM_CONTAINER 0x00008000
72
73#define PRINTER_ENUM_ICONMASK 0x00ff0000
74#define PRINTER_ENUM_ICON1 0x00010000
75#define PRINTER_ENUM_ICON2 0x00020000
76#define PRINTER_ENUM_ICON3 0x00040000
77#define PRINTER_ENUM_ICON4 0x00080000
78#define PRINTER_ENUM_ICON5 0x00100000
79#define PRINTER_ENUM_ICON6 0x00200000
80#define PRINTER_ENUM_ICON7 0x00400000
81#define PRINTER_ENUM_ICON8 0x00800000
82#define PRINTER_ENUM_HIDE 0x01000000
83
84
85/* various printer statuses */
86#define PRINTER_STATUS_PAUSED 0x00000001
87#define PRINTER_STATUS_ERROR 0x00000002
88#define PRINTER_STATUS_PENDING_DELETION 0x00000004
89#define PRINTER_STATUS_PAPER_JAM 0x00000008
90#define PRINTER_STATUS_PAPER_OUT 0x00000010
91#define PRINTER_STATUS_MANUAL_FEED 0x00000020
92#define PRINTER_STATUS_PAPER_PROBLEM 0x00000040
93#define PRINTER_STATUS_OFFLINE 0x00000080
94#define PRINTER_STATUS_IO_ACTIVE 0x00000100
95#define PRINTER_STATUS_BUSY 0x00000200
96#define PRINTER_STATUS_PRINTING 0x00000400
97#define PRINTER_STATUS_OUTPUT_BIN_FULL 0x00000800
98#define PRINTER_STATUS_NOT_AVAILABLE 0x00001000
99#define PRINTER_STATUS_WAITING 0x00002000
100#define PRINTER_STATUS_PROCESSING 0x00004000
101#define PRINTER_STATUS_INITIALIZING 0x00008000
102#define PRINTER_STATUS_WARMING_UP 0x00010000
103#define PRINTER_STATUS_TONER_LOW 0x00020000
104#define PRINTER_STATUS_NO_TONER 0x00040000
105#define PRINTER_STATUS_PAGE_PUNT 0x00080000
106#define PRINTER_STATUS_USER_INTERVENTION 0x00100000
107#define PRINTER_STATUS_OUT_OF_MEMORY 0x00200000
108#define PRINTER_STATUS_DOOR_OPEN 0x00400000
109#define PRINTER_STATUS_SERVER_UNKNOWN 0x00800000
110#define PRINTER_STATUS_POWER_SAVE 0x01000000
111
112#define NO_PRIORITY 0
113#define MAX_PRIORITY 99
114#define MIN_PRIORITY 1
115#define DEF_PRIORITY 1
116
117#define JOB_CONTROL_PAUSE 1
118#define JOB_CONTROL_RESUME 2
119#define JOB_CONTROL_CANCEL 3
120#define JOB_CONTROL_RESTART 4
121#define JOB_CONTROL_DELETE 5
122#define JOB_CONTROL_SENT_TO_PRINTER 6
123#define JOB_CONTROL_LAST_PAGE_EJECTED 7
124
125#define JOB_STATUS_PAUSED 0x0001
126#define JOB_STATUS_ERROR 0x0002
127#define JOB_STATUS_DELETING 0x0004
128#define JOB_STATUS_SPOOLING 0x0008
129#define JOB_STATUS_PRINTING 0x0010
130#define JOB_STATUS_OFFLINE 0x0020
131#define JOB_STATUS_PAPEROUT 0x0040
132#define JOB_STATUS_PRINTED 0x0080
133#define JOB_STATUS_DELETED 0x0100
134#define JOB_STATUS_BLOCKED_DEVQ 0x0200
135#define JOB_STATUS_USER_INTERVENTION 0x0400
136
137#define JOB_POSITION_UNSPECIFIED 1
138
139#define DI_CHANNEL 1
140#define DI_READ_SPOOL_JOB 3
141
142#define FORM_USER 0
143#define FORM_BUILTIN 1
144#define FORM_PRINTER 2
145
146#define PORT_TYPE_WRITE 1
147#define PORT_TYPE_READ 2
148#define PORT_TYPE_REDIRECTED 4
149#define PORT_TYPE_NET_ATTACHED 8
150
151#define PORT_STATUS_TYPE_ERROR 1
152#define PORT_STATUS_TYPE_WARNING 2
153#define PORT_STATUS_TYPE_INFO 3
154
155#define PORT_STATUS_OFFLINE 1
156#define PORT_STATUS_PAPER_JAM 2
157#define PORT_STATUS_PAPER_OUT 3
158#define PORT_STATUS_OUTPUT_BIN_FULL 4
159#define PORT_STATUS_PAPER_PROBLEM 5
160#define PORT_STATUS_NO_TONER 6
161#define PORT_STATUS_DOOR_OPEN 7
162#define PORT_STATUS_USER_INTERVENTION 8
163#define PORT_STATUS_OUT_OF_MEMORY 9
164#define PORT_STATUS_TONER_LOW 10
165#define PORT_STATUS_WARMING_UP 11
166#define PORT_STATUS_POWER_SAVE 12
167
168#define PRINTER_NOTIFY_TYPE 0
169#define JOB_NOTIFY_TYPE 1
170
171#define PRINTER_NOTIFY_FIELD_SERVER_NAME 0x00
172#define PRINTER_NOTIFY_FIELD_PRINTER_NAME 0x01
173#define PRINTER_NOTIFY_FIELD_SHARE_NAME 0x02
174#define PRINTER_NOTIFY_FIELD_PORT_NAME 0x03
175#define PRINTER_NOTIFY_FIELD_DRIVER_NAME 0x04
176#define PRINTER_NOTIFY_FIELD_COMMENT 0x05
177#define PRINTER_NOTIFY_FIELD_LOCATION 0x06
178#define PRINTER_NOTIFY_FIELD_DEVMODE 0x07
179#define PRINTER_NOTIFY_FIELD_SEPFILE 0x08
180#define PRINTER_NOTIFY_FIELD_PRINT_PROCESSOR 0x09
181#define PRINTER_NOTIFY_FIELD_PARAMETERS 0x0a
182#define PRINTER_NOTIFY_FIELD_DATATYPE 0x0b
183#define PRINTER_NOTIFY_FIELD_SECURITY_DESCRIPTOR 0x0c
184#define PRINTER_NOTIFY_FIELD_ATTRIBUTES 0x0d
185#define PRINTER_NOTIFY_FIELD_PRIORITY 0x0e
186#define PRINTER_NOTIFY_FIELD_DEFAULT_PRIORITY 0x0f
187#define PRINTER_NOTIFY_FIELD_START_TIME 0x10
188#define PRINTER_NOTIFY_FIELD_UNTIL_TIME 0x11
189#define PRINTER_NOTIFY_FIELD_STATUS 0x12
190#define PRINTER_NOTIFY_FIELD_STATUS_STRING 0x13
191#define PRINTER_NOTIFY_FIELD_CJOBS 0x14
192#define PRINTER_NOTIFY_FIELD_AVERAGE_PPM 0x15
193#define PRINTER_NOTIFY_FIELD_TOTAL_PAGES 0x16
194#define PRINTER_NOTIFY_FIELD_PAGES_PRINTED 0x17
195#define PRINTER_NOTIFY_FIELD_TOTAL_BYTES 0x18
196#define PRINTER_NOTIFY_FIELD_BYTES_PRINTED 0x19
197
198#define JOB_NOTIFY_FIELD_PRINTER_NAME 0x00
199#define JOB_NOTIFY_FIELD_MACHINE_NAME 0x01
200#define JOB_NOTIFY_FIELD_PORT_NAME 0x02
201#define JOB_NOTIFY_FIELD_USER_NAME 0x03
202#define JOB_NOTIFY_FIELD_NOTIFY_NAME 0x04
203#define JOB_NOTIFY_FIELD_DATATYPE 0x05
204#define JOB_NOTIFY_FIELD_PRINT_PROCESSOR 0x06
205#define JOB_NOTIFY_FIELD_PARAMETERS 0x07
206#define JOB_NOTIFY_FIELD_DRIVER_NAME 0x08
207#define JOB_NOTIFY_FIELD_DEVMODE 0x09
208#define JOB_NOTIFY_FIELD_STATUS 0x0a
209#define JOB_NOTIFY_FIELD_STATUS_STRING 0x0b
210#define JOB_NOTIFY_FIELD_SECURITY_DESCRIPTOR 0x0c
211#define JOB_NOTIFY_FIELD_DOCUMENT 0x0d
212#define JOB_NOTIFY_FIELD_PRIORITY 0x0e
213#define JOB_NOTIFY_FIELD_POSITION 0x0f
214#define JOB_NOTIFY_FIELD_SUBMITTED 0x10
215#define JOB_NOTIFY_FIELD_START_TIME 0x11
216#define JOB_NOTIFY_FIELD_UNTIL_TIME 0x12
217#define JOB_NOTIFY_FIELD_TIME 0x13
218#define JOB_NOTIFY_FIELD_TOTAL_PAGES 0x14
219#define JOB_NOTIFY_FIELD_PAGES_PRINTED 0x15
220#define JOB_NOTIFY_FIELD_TOTAL_BYTES 0x16
221#define JOB_NOTIFY_FIELD_BYTES_PRINTED 0x17
222
223#define PRINTER_NOTIFY_OPTIONS_REFRESH 1
224#define PRINTER_NOTIFY_INFO_DISCARDED 1
225
226#define PRINTER_CHANGE_ADD_PRINTER 0x00000001
227#define PRINTER_CHANGE_SET_PRINTER 0x00000002
228#define PRINTER_CHANGE_DELETE_PRINTER 0x00000004
229#define PRINTER_CHANGE_FAILED_CONNECTION_PRINTER 0x00000008
230#define PRINTER_CHANGE_PRINTER 0x000000ff
231#define PRINTER_CHANGE_ADD_JOB 0x00000100
232#define PRINTER_CHANGE_SET_JOB 0x00000200
233#define PRINTER_CHANGE_DELETE_JOB 0x00000400
234#define PRINTER_CHANGE_WRITE_JOB 0x00000800
235#define PRINTER_CHANGE_JOB 0x0000ff00
236#define PRINTER_CHANGE_ADD_FORM 0x00010000
237#define PRINTER_CHANGE_SET_FORM 0x00020000
238#define PRINTER_CHANGE_DELETE_FORM 0x00040000
239#define PRINTER_CHANGE_FORM 0x00070000
240#define PRINTER_CHANGE_ADD_PORT 0x00100000
241#define PRINTER_CHANGE_CONFIGURE_PORT 0x00200000
242#define PRINTER_CHANGE_DELETE_PORT 0x00400000
243#define PRINTER_CHANGE_PORT 0x00700000
244#define PRINTER_CHANGE_ADD_PRINT_PROCESSOR 0x01000000
245#define PRINTER_CHANGE_DELETE_PRINTER_PROCESSOR 0x04000000
246#define PRINTER_CHANGE_PRINT_PROCESSOR 0x07000000
247#define PRINTER_CHANGE_ADD_PRINTER_DRIVER 0x10000000
248#define PRINTER_CHANGE_SET_PRINTER_DRIVER 0x20000000
249#define PRINTER_CHANGE_DELETE_PRINTER_DRIVER 0x40000000
250#define PRINTER_CHANGE_PRINTER_DRIVER 0x70000000
251#define PRINTER_CHANGE_TIMEOUT 0x80000000
252#define PRINTER_CHANGE_ALL 0x7777ffff
253
254#define PRINTER_ERROR_INFORMATION 0x80000000
255#define PRINTER_ERROR_WARNING 0x40000000
256#define PRINTER_ERROR_SEVERE 0x20000000
257
258#define PRINTER_ERROR_OUTODPAPER 0x00000001
259#define PRINTER_ERROR_JAM 0x00000002
260#define PRINTER_ERROR_OUTOFTONER 0x00000004
261
262/* Access Rights for Printserver, Printers and Printjobs */
263#define SERVER_ACCESS_ADMINISTER 0x00000001
264#define SERVER_ACCESS_ENUMERATE 0x00000002
265#define SERVER_READ (STANDARD_RIGHTS_READ | SERVER_ACCESS_ENUMERATE)
266#define SERVER_WRITE (STANDARD_RIGHTS_WRITE | \
267 SERVER_ACCESS_ADMINISTER | SERVER_ACCESS_ENUMERATE)
268#define SERVER_EXECUTE (STANDARD_RIGHTS_EXECUTE | SERVER_ACCESS_ENUMERATE)
269#define SERVER_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \
270 SERVER_ACCESS_ADMINISTER | SERVER_ACCESS_ENUMERATE)
271
272#define PRINTER_ACCESS_ADMINISTER 0x00000004
273#define PRINTER_ACCESS_USE 0x00000008
274#define PRINTER_READ (STANDARD_RIGHTS_READ | PRINTER_ACCESS_USE)
275#define PRINTER_WRITE (STANDARD_RIGHTS_WRITE | PRINTER_ACCESS_USE)
276#define PRINTER_EXECUTE (STANDARD_RIGHTS_EXECUTE | PRINTER_ACCESS_USE)
277#define PRINTER_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \
278 PRINTER_ACCESS_ADMINISTER | PRINTER_ACCESS_USE)
279
280#define JOB_ACCESS_ADMINISTER 0x00000010
281#define JOB_READ (STANDARD_RIGHTS_READ | JOB_ACCESS_ADMINISTER)
282#define JOB_WRITE (STANDARD_RIGHTS_WRITE | JOB_ACCESS_ADMINISTER)
283#define JOB_EXECUTE (STANDARD_RIGHTS_EXECUTE | JOB_ACCESS_ADMINISTER)
284#define JOB_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | JOB_ACCESS_ADMINISTER)
285
286
287/* Flags for printer drivers */
288#define DRIVER_KERNELMODE 0x00000001
289#define DRIVER_USERMODE 0x00000002
290
291#define APD_STRICT_UPGRADE 0x00000001
292#define APD_STRICT_DOWNGRADE 0x00000002
293#define APD_COPY_ALL_FILES 0x00000004
294#define APD_COPY_NEW_FILES 0x00000008
295#define APD_COPY_FROM_DIRECTORY 0x00000010
296
297#define DPD_DELETE_UNUSED_FILES 0x00000001
298#define DPD_DELETE_SPECIFIC_VERSION 0x00000002
299#define DPD_DELETE_ALL_FILES 0x00000004
300
301/* dwAction for PRINTER_INFO_7 */
302#define DSPRINT_PUBLISH 0x00000001
303#define DSPRINT_UPDATE 0x00000002
304#define DSPRINT_UNPUBLISH 0x00000004
305#define DSPRINT_REPUBLISH 0x00000008
306#define DSPRINT_PENDING 0x80000000
307
308/* ##################################### */
309
310/* TYPES */
311typedef struct _PRINTER_DEFAULTSA {
312 LPSTR pDatatype;
313 LPDEVMODEA pDevMode;
314 ACCESS_MASK DesiredAccess;
315} PRINTER_DEFAULTSA, *LPPRINTER_DEFAULTSA;
316
317typedef struct _PRINTER_DEFAULTSW {
318 LPWSTR pDatatype;
319 LPDEVMODEW pDevMode;
320 ACCESS_MASK DesiredAccess;
321} PRINTER_DEFAULTSW, *LPPRINTER_DEFAULTSW;
322
323DECL_WINELIB_TYPE_AW(PRINTER_DEFAULTS)
324DECL_WINELIB_TYPE_AW(LPPRINTER_DEFAULTS)
325
326typedef struct _DRIVER_INFO_1A {
327 LPSTR pName;
328} DRIVER_INFO_1A, *PDRIVER_INFO_1A, *LPDRIVER_INFO_1A;
329
330typedef struct _DRIVER_INFO_1W {
331 LPWSTR pName;
332} DRIVER_INFO_1W, *PDRIVER_INFO_1W, *LPDRIVER_INFO_1W;
333
334DECL_WINELIB_TYPE_AW(DRIVER_INFO_1)
335DECL_WINELIB_TYPE_AW(PDRIVER_INFO_1)
336DECL_WINELIB_TYPE_AW(LPDRIVER_INFO_1)
337
338typedef struct _DRIVER_INFO_2A {
339 DWORD cVersion;
340 LPSTR pName;
341 LPSTR pEnvironment;
342 LPSTR pDriverPath;
343 LPSTR pDataFile;
344 LPSTR pConfigFile;
345} DRIVER_INFO_2A, *PDRIVER_INFO_2A, *LPDRIVER_INFO_2A;
346
347typedef struct _DRIVER_INFO_2W {
348 DWORD cVersion;
349 LPWSTR pName;
350 LPWSTR pEnvironment;
351 LPWSTR pDriverPath;
352 LPWSTR pDataFile;
353 LPWSTR pConfigFile;
354} DRIVER_INFO_2W, *PDRIVER_INFO_2W, *LPDRIVER_INFO_2W;
355
356DECL_WINELIB_TYPE_AW(DRIVER_INFO_2)
357DECL_WINELIB_TYPE_AW(PDRIVER_INFO_2)
358DECL_WINELIB_TYPE_AW(LPDRIVER_INFO_2)
359
360typedef struct _DRIVER_INFO_3A {
361 DWORD cVersion;
362 LPSTR pName;
363 LPSTR pEnvironment;
364 LPSTR pDriverPath;
365 LPSTR pDataFile;
366 LPSTR pConfigFile;
367 LPSTR pHelpFile;
368 LPSTR pDependentFiles;
369 LPSTR pMonitorName;
370 LPSTR pDefaultDataType;
371} DRIVER_INFO_3A, *PDRIVER_INFO_3A, *LPDRIVER_INFO_3A;
372
373typedef struct _DRIVER_INFO_3W {
374 DWORD cVersion;
375 LPWSTR pName;
376 LPWSTR pEnvironment;
377 LPWSTR pDriverPath;
378 LPWSTR pDataFile;
379 LPWSTR pConfigFile;
380 LPWSTR pHelpFile;
381 LPWSTR pDependentFiles;
382 LPWSTR pMonitorName;
383 LPWSTR pDefaultDataType;
384} DRIVER_INFO_3W, *PDRIVER_INFO_3W, *LPDRIVER_INFO_3W;
385
386DECL_WINELIB_TYPE_AW(DRIVER_INFO_3)
387DECL_WINELIB_TYPE_AW(PDRIVER_INFO_3)
388DECL_WINELIB_TYPE_AW(LPDRIVER_INFO_3)
389
390typedef struct _DRIVER_INFO_4A {
391 DWORD cVersion;
392 LPSTR pName;
393 LPSTR pEnvironment;
394 LPSTR pDriverPath;
395 LPSTR pDataFile;
396 LPSTR pConfigFile;
397 LPSTR pHelpFile;
398 LPSTR pDependentFiles;
399 LPSTR pMonitorName;
400 LPSTR pDefaultDataType;
401 LPSTR pszzPreviousNames;
402} DRIVER_INFO_4A, *PDRIVER_INFO_4A, *LPDRIVER_INFO_4A;
403
404typedef struct _DRIVER_INFO_4W {
405 DWORD cVersion;
406 LPWSTR pName;
407 LPWSTR pEnvironment;
408 LPWSTR pDriverPath;
409 LPWSTR pDataFile;
410 LPWSTR pConfigFile;
411 LPWSTR pHelpFile;
412 LPWSTR pDependentFiles;
413 LPWSTR pMonitorName;
414 LPWSTR pDefaultDataType;
415 LPWSTR pszzPreviousNames;
416} DRIVER_INFO_4W, *PDRIVER_INFO_4W, *LPDRIVER_INFO_4W;
417
418DECL_WINELIB_TYPE_AW(DRIVER_INFO_4)
419DECL_WINELIB_TYPE_AW(PDRIVER_INFO_4)
420DECL_WINELIB_TYPE_AW(LPDRIVER_INFO_4)
421
422
423typedef struct _DRIVER_INFO_5A {
424 DWORD cVersion;
425 LPSTR pName;
426 LPSTR pEnvironment;
427 LPSTR pDriverPath;
428 LPSTR pDataFile;
429 LPSTR pConfigFile;
430 DWORD dwDriverAttributes;
431 DWORD dwConfigVersion;
432 DWORD dwDriverVersion;
433} DRIVER_INFO_5A, *PDRIVER_INFO_5A, *LPDRIVER_INFO_5A;
434
435typedef struct _DRIVER_INFO_5W {
436 DWORD cVersion;
437 LPWSTR pName;
438 LPWSTR pEnvironment;
439 LPWSTR pDriverPath;
440 LPWSTR pDataFile;
441 LPWSTR pConfigFile;
442 DWORD dwDriverAttributes;
443 DWORD dwConfigVersion;
444 DWORD dwDriverVersion;
445} DRIVER_INFO_5W, *PDRIVER_INFO_5W, *LPDRIVER_INFO_5W;
446
447DECL_WINELIB_TYPE_AW(DRIVER_INFO_5)
448DECL_WINELIB_TYPE_AW(PDRIVER_INFO_5)
449DECL_WINELIB_TYPE_AW(LPDRIVER_INFO_5)
450
451typedef struct _DRIVER_INFO_6A {
452 DWORD cVersion;
453 LPSTR pName;
454 LPSTR pEnvironment;
455 LPSTR pDriverPath;
456 LPSTR pDataFile;
457 LPSTR pConfigFile;
458 LPSTR pHelpFile;
459 LPSTR pDependentFiles;
460 LPSTR pMonitorName;
461 LPSTR pDefaultDataType;
462 LPSTR pszzPreviousNames;
463 FILETIME ftDriverDate;
464 DWORDLONG dwlDriverVersion;
465 LPSTR pszMfgName;
466 LPSTR pszOEMUrl;
467 LPSTR pszHardwareID;
468 LPSTR pszProvider;
469} DRIVER_INFO_6A, *PDRIVER_INFO_6A, *LPDRIVER_INFO_6A;
470
471typedef struct _DRIVER_INFO_6W {
472 DWORD cVersion;
473 LPWSTR pName;
474 LPWSTR pEnvironment;
475 LPWSTR pDriverPath;
476 LPWSTR pDataFile;
477 LPWSTR pConfigFile;
478 LPWSTR pHelpFile;
479 LPWSTR pDependentFiles;
480 LPWSTR pMonitorName;
481 LPWSTR pDefaultDataType;
482 LPWSTR pszzPreviousNames;
483 FILETIME ftDriverDate;
484 DWORDLONG dwlDriverVersion;
485 LPWSTR pszMfgName;
486 LPWSTR pszOEMUrl;
487 LPWSTR pszHardwareID;
488 LPWSTR pszProvider;
489} DRIVER_INFO_6W, *PDRIVER_INFO_6W, *LPDRIVER_INFO_6W;
490
491DECL_WINELIB_TYPE_AW(DRIVER_INFO_6)
492DECL_WINELIB_TYPE_AW(PDRIVER_INFO_6)
493DECL_WINELIB_TYPE_AW(LPDRIVER_INFO_6)
494
495/* DRIVER_INFO_7 is not defined in native winspool.h and not found in the www */
496
497typedef struct _DRIVER_INFO_8A {
498 DWORD cVersion;
499 LPSTR pName;
500 LPSTR pEnvironment;
501 LPSTR pDriverPath;
502 LPSTR pDataFile;
503 LPSTR pConfigFile;
504 LPSTR pHelpFile;
505 LPSTR pDependentFiles;
506 LPSTR pMonitorName;
507 LPSTR pDefaultDataType;
508 LPSTR pszzPreviousNames;
509 FILETIME ftDriverDate;
510 DWORDLONG dwlDriverVersion;
511 LPSTR pszMfgName;
512 LPSTR pszOEMUrl;
513 LPSTR pszHardwareID;
514 LPSTR pszProvider;
515 LPSTR pszPrintProcessor;
516 LPSTR pszVendorSetup;
517 LPSTR pszzColorProfiles;
518 LPSTR pszInfPath;
519 DWORD dwPrinterDriverAttributes;
520 LPSTR pszzCoreDriverDependencies;
521 FILETIME ftMinInboxDriverVerDate;
522 DWORDLONG dwlMinInboxDriverVerVersion;
523} DRIVER_INFO_8A, *PDRIVER_INFO_8A, *LPDRIVER_INFO_8A;
524
525typedef struct _DRIVER_INFO_8W {
526 DWORD cVersion;
527 LPWSTR pName;
528 LPWSTR pEnvironment;
529 LPWSTR pDriverPath;
530 LPWSTR pDataFile;
531 LPWSTR pConfigFile;
532 LPWSTR pHelpFile;
533 LPWSTR pDependentFiles;
534 LPWSTR pMonitorName;
535 LPWSTR pDefaultDataType;
536 LPWSTR pszzPreviousNames;
537 FILETIME ftDriverDate;
538 DWORDLONG dwlDriverVersion;
539 LPWSTR pszMfgName;
540 LPWSTR pszOEMUrl;
541 LPWSTR pszHardwareID;
542 LPWSTR pszProvider;
543 LPWSTR pszPrintProcessor;
544 LPWSTR pszVendorSetup;
545 LPWSTR pszzColorProfiles;
546 LPWSTR pszInfPath;
547 DWORD dwPrinterDriverAttributes;
548 LPWSTR pszzCoreDriverDependencies;
549 FILETIME ftMinInboxDriverVerDate;
550 DWORDLONG dwlMinInboxDriverVerVersion;
551} DRIVER_INFO_8W, *PDRIVER_INFO_8W, *LPDRIVER_INFO_8W;
552
553DECL_WINELIB_TYPE_AW(DRIVER_INFO_8)
554DECL_WINELIB_TYPE_AW(PDRIVER_INFO_8)
555DECL_WINELIB_TYPE_AW(LPDRIVER_INFO_8)
556
557
558typedef struct _PRINTER_INFO_1A {
559 DWORD Flags;
560 LPSTR pDescription;
561 LPSTR pName;
562 LPSTR pComment;
563} PRINTER_INFO_1A, *PPRINTER_INFO_1A, *LPPRINTER_INFO_1A;
564
565typedef struct _PRINTER_INFO_1W {
566 DWORD Flags;
567 LPWSTR pDescription;
568 LPWSTR pName;
569 LPWSTR pComment;
570} PRINTER_INFO_1W, *PPRINTER_INFO_1W, *LPPRINTER_INFO_1W;
571
572DECL_WINELIB_TYPE_AW(PRINTER_INFO_1)
573DECL_WINELIB_TYPE_AW(PPRINTER_INFO_1)
574DECL_WINELIB_TYPE_AW(LPPRINTER_INFO_1)
575
576/* FIXME: winspool.h declares some structure members with the name Status.
577 * unfortunately <X11/ICE/ICElib.h> #defines Status to the type 'int'
578 * therefore the following hack */
579#ifndef Status
580
581typedef struct _PRINTER_INFO_2A {
582 LPSTR pServerName;
583 LPSTR pPrinterName;
584 LPSTR pShareName;
585 LPSTR pPortName;
586 LPSTR pDriverName;
587 LPSTR pComment;
588 LPSTR pLocation;
589 LPDEVMODEA pDevMode;
590 LPSTR pSepFile;
591 LPSTR pPrintProcessor;
592 LPSTR pDatatype;
593 LPSTR pParameters;
594 PSECURITY_DESCRIPTOR pSecurityDescriptor;
595 DWORD Attributes;
596 DWORD Priority;
597 DWORD DefaultPriority;
598 DWORD StartTime;
599 DWORD UntilTime;
600 DWORD Status;
601 DWORD cJobs;
602 DWORD AveragePPM;
603} PRINTER_INFO_2A, *PPRINTER_INFO_2A, *LPPRINTER_INFO_2A;
604
605typedef struct _PRINTER_INFO_2W {
606 LPWSTR pServerName;
607 LPWSTR pPrinterName;
608 LPWSTR pShareName;
609 LPWSTR pPortName;
610 LPWSTR pDriverName;
611 LPWSTR pComment;
612 LPWSTR pLocation;
613 LPDEVMODEW pDevMode;
614 LPWSTR pSepFile;
615 LPWSTR pPrintProcessor;
616 LPWSTR pDatatype;
617 LPWSTR pParameters;
618 PSECURITY_DESCRIPTOR pSecurityDescriptor;
619 DWORD Attributes;
620 DWORD Priority;
621 DWORD DefaultPriority;
622 DWORD StartTime;
623 DWORD UntilTime;
624 DWORD Status;
625 DWORD cJobs;
626 DWORD AveragePPM;
627} PRINTER_INFO_2W, *PPRINTER_INFO_2W, *LPPRINTER_INFO_2W;
628
629DECL_WINELIB_TYPE_AW(PRINTER_INFO_2)
630DECL_WINELIB_TYPE_AW(PPRINTER_INFO_2)
631DECL_WINELIB_TYPE_AW(LPPRINTER_INFO_2)
632
633typedef struct _PRINTER_INFO_3 {
634 PSECURITY_DESCRIPTOR pSecurityDescriptor;
635} PRINTER_INFO_3, *PPRINTER_INFO_3, *LPPRINTER_INFO_3;
636
637typedef struct _PRINTER_INFO_4A {
638 LPSTR pPrinterName;
639 LPSTR pServerName;
640 DWORD Attributes;
641} PRINTER_INFO_4A, *PPRINTER_INFO_4A, *LPPRINTER_INFO_4A;
642
643typedef struct _PRINTER_INFO_4W {
644 LPWSTR pPrinterName;
645 LPWSTR pServerName;
646 DWORD Attributes;
647} PRINTER_INFO_4W, *PPRINTER_INFO_4W, *LPPRINTER_INFO_4W;
648
649DECL_WINELIB_TYPE_AW(PRINTER_INFO_4)
650DECL_WINELIB_TYPE_AW(PPRINTER_INFO_4)
651DECL_WINELIB_TYPE_AW(LPPRINTER_INFO_4)
652
653typedef struct _PRINTER_INFO_5A {
654 LPSTR pPrinterName;
655 LPSTR pPortName;
656 DWORD Attributes;
657 DWORD DeviceNotSelectedTimeout;
658 DWORD TransmissionRetryTimeout;
659} PRINTER_INFO_5A, *PPRINTER_INFO_5A, *LPPRINTER_INFO_5A;
660
661typedef struct _PRINTER_INFO_5W {
662 LPWSTR pPrinterName;
663 LPWSTR pPortName;
664 DWORD Attributes;
665 DWORD DeviceNotSelectedTimeout;
666 DWORD TransmissionRetryTimeout;
667} PRINTER_INFO_5W, *PPRINTER_INFO_5W, *LPPRINTER_INFO_5W;
668
669DECL_WINELIB_TYPE_AW(PRINTER_INFO_5)
670DECL_WINELIB_TYPE_AW(PPRINTER_INFO_5)
671DECL_WINELIB_TYPE_AW(LPPRINTER_INFO_5)
672
673typedef struct _PRINTER_INFO_6 {
674 DWORD dwStatus;
675} PRINTER_INFO_6, *PPRINTER_INFO_6, *LPPRINTER_INFO_6;
676
677typedef struct _PRINTER_INFO_7A {
678 LPSTR pszObjectGUID;
679 DWORD dwAction;
680} PRINTER_INFO_7A, *PPRINTER_INFO_7A, *LPPRINTER_INFO_7A;
681
682typedef struct _PRINTER_INFO_7W {
683 LPWSTR pszObjectGUID;
684 DWORD dwAction;
685} PRINTER_INFO_7W, *PPRINTER_INFO_7W, *LPPRINTER_INFO_7W;
686
687DECL_WINELIB_TYPE_AW(PRINTER_INFO_7)
688DECL_WINELIB_TYPE_AW(PPRINTER_INFO_7)
689DECL_WINELIB_TYPE_AW(LPPRINTER_INFO_7)
690
691typedef struct _PRINTER_INFO_8A {
692 LPDEVMODEA pDevMode;
693} PRINTER_INFO_8A, *PPRINTER_INFO_8A, *LPPRINTER_INFO_8A;
694
695typedef struct _PRINTER_INFO_8W {
696 LPDEVMODEW pDevMode;
697} PRINTER_INFO_8W, *PPRINTER_INFO_8W, *LPPRINTER_INFO_8W;
698
699DECL_WINELIB_TYPE_AW(PRINTER_INFO_8)
700DECL_WINELIB_TYPE_AW(PPRINTER_INFO_8)
701DECL_WINELIB_TYPE_AW(LPPRINTER_INFO_8)
702
703typedef struct _PRINTER_INFO_9A {
704 LPDEVMODEA pDevMode;
705} PRINTER_INFO_9A, *PPRINTER_INFO_9A, *LPPRINTER_INFO_9A;
706
707typedef struct _PRINTER_INFO_9W {
708 LPDEVMODEW pDevMode;
709} PRINTER_INFO_9W, *PPRINTER_INFO_9W, *LPPRINTER_INFO_9W;
710
711DECL_WINELIB_TYPE_AW(PRINTER_INFO_9)
712DECL_WINELIB_TYPE_AW(PPRINTER_INFO_9)
713DECL_WINELIB_TYPE_AW(LPPRINTER_INFO_9)
714
715
716typedef struct _JOB_INFO_1A {
717 DWORD JobId;
718 LPSTR pPrinterName;
719 LPSTR pMachineName;
720 LPSTR pUserName;
721 LPSTR pDocument;
722 LPSTR pDatatype;
723 LPSTR pStatus;
724 DWORD Status;
725 DWORD Priority;
726 DWORD Position;
727 DWORD TotalPages;
728 DWORD PagesPrinted;
729 SYSTEMTIME Submitted;
730} JOB_INFO_1A, *PJOB_INFO_1A, *LPJOB_INFO_1A;
731
732typedef struct _JOB_INFO_1W {
733 DWORD JobId;
734 LPWSTR pPrinterName;
735 LPWSTR pMachineName;
736 LPWSTR pUserName;
737 LPWSTR pDocument;
738 LPWSTR pDatatype;
739 LPWSTR pStatus;
740 DWORD Status;
741 DWORD Priority;
742 DWORD Position;
743 DWORD TotalPages;
744 DWORD PagesPrinted;
745 SYSTEMTIME Submitted;
746} JOB_INFO_1W, *PJOB_INFO_1W, *LPJOB_INFO_1W;
747
748DECL_WINELIB_TYPE_AW(JOB_INFO_1)
749DECL_WINELIB_TYPE_AW(PJOB_INFO_1)
750DECL_WINELIB_TYPE_AW(LPJOB_INFO_1)
751
752typedef struct _JOB_INFO_2A {
753 DWORD JobId;
754 LPSTR pPrinterName;
755 LPSTR pMachineName;
756 LPSTR pUserName;
757 LPSTR pDocument;
758 LPSTR pNotifyName;
759 LPSTR pDatatype;
760 LPSTR pPrintProcessor;
761 LPSTR pParameters;
762 LPSTR pDriverName;
763 LPDEVMODEA pDevMode;
764 LPSTR pStatus;
765 PSECURITY_DESCRIPTOR pSecurityDescriptor;
766 DWORD Status;
767 DWORD Priority;
768 DWORD Position;
769 DWORD StartTime;
770 DWORD UntilTime;
771 DWORD TotalPages;
772 DWORD Size;
773 SYSTEMTIME Submitted;
774 DWORD Time;
775 DWORD PagesPrinted;
776} JOB_INFO_2A, *PJOB_INFO_2A, *LPJOB_INFO_2A;
777
778typedef struct _JOB_INFO_2W {
779 DWORD JobId;
780 LPWSTR pPrinterName;
781 LPWSTR pMachineName;
782 LPWSTR pUserName;
783 LPWSTR pDocument;
784 LPWSTR pNotifyName;
785 LPWSTR pDatatype;
786 LPWSTR pPrintProcessor;
787 LPWSTR pParameters;
788 LPWSTR pDriverName;
789 LPDEVMODEW pDevMode;
790 LPWSTR pStatus;
791 PSECURITY_DESCRIPTOR pSecurityDescriptor;
792 DWORD Status;
793 DWORD Priority;
794 DWORD Position;
795 DWORD StartTime;
796 DWORD UntilTime;
797 DWORD TotalPages;
798 DWORD Size;
799 SYSTEMTIME Submitted;
800 DWORD Time;
801 DWORD PagesPrinted;
802} JOB_INFO_2W, *PJOB_INFO_2W, *LPJOB_INFO_2W;
803
804DECL_WINELIB_TYPE_AW(JOB_INFO_2)
805DECL_WINELIB_TYPE_AW(PJOB_INFO_2)
806DECL_WINELIB_TYPE_AW(LPJOB_INFO_2)
807
808typedef struct _JOB_INFO_3 {
809 DWORD JobId;
810 DWORD NextJobId;
811 DWORD Reserved;
812} JOB_INFO_3, *PJOB_INFO_3, *LPJOB_INFO_3;
813
814typedef struct _ADDJOB_INFO_1A {
815 LPSTR Path;
816 DWORD JobId;
817} ADDJOB_INFO_1A, *PADDJOB_INFO_1A, *LPADDJOB_INFO_1A;
818
819typedef struct _ADDJOB_INFO_1W {
820 LPWSTR Path;
821 DWORD JobId;
822} ADDJOB_INFO_1W, *PADDJOB_INFO_1W, *LPADDJOB_INFO_1W;
823
824DECL_WINELIB_TYPE_AW(ADDJOB_INFO_1)
825DECL_WINELIB_TYPE_AW(PADDJOB_INFO_1)
826DECL_WINELIB_TYPE_AW(LPADDJOB_INFO_1)
827
828typedef struct _DOC_INFO_1A {
829 LPSTR pDocName;
830 LPSTR pOutputFile;
831 LPSTR pDatatype;
832} DOC_INFO_1A, *PDOC_INFO_1A, *LPDOC_INFO_1A;
833
834typedef struct _DOC_INFO_1W {
835 LPWSTR pDocName;
836 LPWSTR pOutputFile;
837 LPWSTR pDatatype;
838} DOC_INFO_1W, *PDOC_INFO_1W, *LPDOC_INFO_1W;
839
840DECL_WINELIB_TYPE_AW(DOC_INFO_1)
841DECL_WINELIB_TYPE_AW(PDOC_INFO_1)
842DECL_WINELIB_TYPE_AW(LPDOC_INFO_1)
843
844typedef struct _DOC_INFO_2A {
845 LPSTR pDocName;
846 LPSTR pOutputFile;
847 LPSTR pDatatype;
848 DWORD dwMode;
849 DWORD JobId;
850} DOC_INFO_2A, *PDOC_INFO_2A, *LPDOC_INFO_2A;
851
852typedef struct _DOC_INFO_2W {
853 LPWSTR pDocName;
854 LPWSTR pOutputFile;
855 LPWSTR pDatatype;
856 DWORD dwMode;
857 DWORD JobId;
858} DOC_INFO_2W, *PDOC_INFO_2W, *LPDOC_INFO_2W;
859
860DECL_WINELIB_TYPE_AW(DOC_INFO_2)
861DECL_WINELIB_TYPE_AW(PDOC_INFO_2)
862DECL_WINELIB_TYPE_AW(LPDOC_INFO_2)
863
864typedef struct _FORM_INFO_1A {
865 DWORD Flags;
866 LPSTR pName;
867 SIZEL Size;
868 RECTL ImageableArea;
869} FORM_INFO_1A, *PFORM_INFO_1A, *LPFORM_INFO_1A;
870
871typedef struct _FORM_INFO_1W {
872 DWORD Flags;
873 LPWSTR pName;
874 SIZEL Size;
875 RECTL ImageableArea;
876} FORM_INFO_1W, *PFORM_INFO_1W, *LPFORM_INFO_1W;
877
878DECL_WINELIB_TYPE_AW(FORM_INFO_1)
879DECL_WINELIB_TYPE_AW(PFORM_INFO_1)
880DECL_WINELIB_TYPE_AW(LPFORM_INFO_1)
881
882typedef struct _FORM_INFO_2A {
883 DWORD Flags;
884 LPSTR pName;
885 SIZEL Size;
886 RECTL ImageableArea;
887 LPCSTR pKeyword;
888 DWORD StringType;
889 LPSTR pMuiDll;
890 DWORD dwResourceId;
891 LPSTR pDisplayName;
892 LANGID wLangId;
893} FORM_INFO_2A, *PFORM_INFO_2A, *LPFORM_INFO_2A;
894
895typedef struct _FORM_INFO_2W {
896 DWORD Flags;
897 LPWSTR pName;
898 SIZEL Size;
899 RECTL ImageableArea;
900 LPCSTR pKeyword;
901 DWORD StringType;
902 LPWSTR pMuiDll;
903 DWORD dwResourceId;
904 LPWSTR pDisplayName;
905 LANGID wLangId;
906} FORM_INFO_2W, *PFORM_INFO_2W, *LPFORM_INFO_2W;
907
908DECL_WINELIB_TYPE_AW(FORM_INFO_2)
909DECL_WINELIB_TYPE_AW(PFORM_INFO_2)
910DECL_WINELIB_TYPE_AW(LPFORM_INFO_2)
911
912typedef struct _PRINTPROCESSOR_INFO_1A {
913 LPSTR pName;
914} PRINTPROCESSOR_INFO_1A, *PPRINTPROCESSOR_INFO_1A,
915 *LPPRINTPROCESSOR_INFO_1A;
916
917typedef struct _PRINTPROCESSOR_INFO_1W {
918 LPWSTR pName;
919} PRINTPROCESSOR_INFO_1W, *PPRINTPROCESSOR_INFO_1W,
920 *LPPRINTPROCESSOR_INFO_1W;
921
922DECL_WINELIB_TYPE_AW(PRINTPROCESSOR_INFO_1)
923DECL_WINELIB_TYPE_AW(PPRINTPROCESSOR_INFO_1)
924DECL_WINELIB_TYPE_AW(LPPRINTPROCESSOR_INFO_1)
925
926typedef struct _PORT_INFO_1A {
927 LPSTR pName;
928} PORT_INFO_1A, *PPORT_INFO_1A, *LPPORT_INFO_1A;
929
930typedef struct _PORT_INFO_1W {
931 LPWSTR pName;
932} PORT_INFO_1W, *PPORT_INFO_1W, *LPPORT_INFO_1W;
933
934DECL_WINELIB_TYPE_AW(PORT_INFO_1)
935DECL_WINELIB_TYPE_AW(PPORT_INFO_1)
936DECL_WINELIB_TYPE_AW(LPPORT_INFO_1)
937
938typedef struct _PORT_INFO_2A {
939 LPSTR pPortName;
940 LPSTR pMonitorName;
941 LPSTR pDescription;
942 DWORD fPortType;
943 DWORD Reserved;
944} PORT_INFO_2A, *PPORT_INFO_2A, *LPPORT_INFO_2A;
945
946typedef struct _PORT_INFO_2W {
947 LPWSTR pPortName;
948 LPWSTR pMonitorName;
949 LPWSTR pDescription;
950 DWORD fPortType;
951 DWORD Reserved;
952} PORT_INFO_2W, *PPORT_INFO_2W, *LPPORT_INFO_2W;
953
954DECL_WINELIB_TYPE_AW(PORT_INFO_2)
955DECL_WINELIB_TYPE_AW(PPORT_INFO_2)
956DECL_WINELIB_TYPE_AW(LPPORT_INFO_2)
957
958typedef struct _PORT_INFO_3A {
959 DWORD dwStatus;
960 LPSTR pszStatus;
961 DWORD dwSeverity;
962} PORT_INFO_3A, *PPORT_INFO_3A, *LPPORT_INFO_3A;
963
964typedef struct _PORT_INFO_3W {
965 DWORD dwStatus;
966 LPWSTR pszStatus;
967 DWORD dwSeverity;
968} PORT_INFO_3W, *PPORT_INFO_3W, *LPPORT_INFO_3W;
969
970DECL_WINELIB_TYPE_AW(PORT_INFO_3)
971DECL_WINELIB_TYPE_AW(PPORT_INFO_3)
972DECL_WINELIB_TYPE_AW(LPPORT_INFO_3)
973
974typedef struct _MONITOR_INFO_1A {
975 LPSTR pName;
976} MONITOR_INFO_1A, *PMONITOR_INFO_1A, *LPMONITOR_INFO_1A;
977
978typedef struct _MONITOR_INFO_1W {
979 LPWSTR pName;
980} MONITOR_INFO_1W, *PMONITOR_INFO_1W, *LPMONITOR_INFO_1W;
981
982DECL_WINELIB_TYPE_AW(MONITOR_INFO_1)
983DECL_WINELIB_TYPE_AW(PMONITOR_INFO_1)
984DECL_WINELIB_TYPE_AW(LPMONITOR_INFO_1)
985
986#endif /* Status */
987
988
989typedef struct _MONITOR_INFO_2A {
990 LPSTR pName;
991 LPSTR pEnvironment;
992 LPSTR pDLLName;
993} MONITOR_INFO_2A, *PMONITOR_INFO_2A, *LPMONITOR_INFO_2A;
994
995typedef struct _MONITOR_INFO_2W {
996 LPWSTR pName;
997 LPWSTR pEnvironment;
998 LPWSTR pDLLName;
999} MONITOR_INFO_2W, *PMONITOR_INFO_2W, *LPMONITOR_INFO_2W;
1000
1001DECL_WINELIB_TYPE_AW(MONITOR_INFO_2)
1002DECL_WINELIB_TYPE_AW(PMONITOR_INFO_2)
1003DECL_WINELIB_TYPE_AW(LPMONITOR_INFO_2)
1004
1005typedef struct _DATATYPES_INFO_1A {
1006 LPSTR pName;
1007} DATATYPES_INFO_1A, *PDATATYPES_INFO_1A, *LPDATATYPES_INFO_1A;
1008
1009typedef struct _DATATYPES_INFO_1W {
1010 LPWSTR pName;
1011} DATATYPES_INFO_1W, *PDATATYPES_INFO_1W, *LPDATATYPES_INFO_1W;
1012
1013DECL_WINELIB_TYPE_AW(DATATYPES_INFO_1)
1014DECL_WINELIB_TYPE_AW(PDATATYPES_INFO_1)
1015DECL_WINELIB_TYPE_AW(LPDATATYPES_INFO_1)
1016
1017typedef struct _PRINTER_NOTIFY_OPTIONS_TYPE {
1018 WORD Type;
1019 WORD Reserved0;
1020 DWORD Reserved1;
1021 DWORD Reserved2;
1022 DWORD Count;
1023 PWORD pFields;
1024} PRINTER_NOTIFY_OPTIONS_TYPE, *PPRINTER_NOTIFY_OPTIONS_TYPE,
1025*LPPRINTER_NOTIFY_OPTIONS_TYPE;
1026
1027typedef struct _PRINTER_NOTIFY_OPTIONS {
1028 DWORD Version;
1029 DWORD Flags;
1030 DWORD Count;
1031 PPRINTER_NOTIFY_OPTIONS_TYPE pTypes;
1032} PRINTER_NOTIFY_OPTIONS, *PPRINTER_NOTIFY_OPTIONS, *LPPRINTER_NOTIFY_OPTIONS;
1033
1034typedef struct _PRINTER_NOTIFY_INFO_DATA {
1035 WORD Type;
1036 WORD Field;
1037 DWORD Reserved;
1038 DWORD Id;
1039 union {
1040 DWORD adwData[2];
1041 struct {
1042 DWORD cbBuf;
1043 LPVOID pBuf;
1044 } Data;
1045 } NotifyData;
1046} PRINTER_NOTIFY_INFO_DATA, *PPRINTER_NOTIFY_INFO_DATA,
1047*LPPRINTER_NOTIFY_INFO_DATA;
1048
1049typedef struct _PRINTER_NOTIFY_INFO {
1050 DWORD Version;
1051 DWORD Flags;
1052 DWORD Count;
1053 PRINTER_NOTIFY_INFO_DATA aData[1];
1054} PRINTER_NOTIFY_INFO, *PPRINTER_NOTIFY_INFO, *LPPRINTER_NOTIFY_INFO;
1055
1056typedef struct _PROVIDOR_INFO_1A {
1057 LPSTR pName;
1058 LPSTR pEnvironment;
1059 LPSTR pDLLName;
1060} PROVIDOR_INFO_1A, *PPROVIDOR_INFO_1A, *LPPROVIDOR_INFO_1A;
1061
1062typedef struct _PROVIDOR_INFO_1W {
1063 LPWSTR pName;
1064 LPWSTR pEnvironment;
1065 LPWSTR pDLLName;
1066} PROVIDOR_INFO_1W, *PPROVIDOR_INFO_1W, *LPPROVIDOR_INFO_1W;
1067
1068DECL_WINELIB_TYPE_AW(PROVIDOR_INFO_1)
1069DECL_WINELIB_TYPE_AW(PPROVIDOR_INFO_1)
1070DECL_WINELIB_TYPE_AW(LPPROVIDOR_INFO_1)
1071
1072typedef struct _PRINTER_ENUM_VALUESA {
1073 LPSTR pValueName;
1074 DWORD cbValueName;
1075 DWORD dwType;
1076 LPBYTE pData;
1077 DWORD cbData;
1078} PRINTER_ENUM_VALUESA, *PPRINTER_ENUM_VALUESA;
1079
1080typedef struct _PRINTER_ENUM_VALUESW {
1081 LPWSTR pValueName;
1082 DWORD cbValueName;
1083 DWORD dwType;
1084 LPBYTE pData;
1085 DWORD cbData;
1086} PRINTER_ENUM_VALUESW, *PPRINTER_ENUM_VALUESW;
1087
1088DECL_WINELIB_TYPE_AW(PRINTER_ENUM_VALUES)
1089DECL_WINELIB_TYPE_AW(PPRINTER_ENUM_VALUES)
1090
1091typedef enum {
1092 BIDI_NULL = 0,
1093 BIDI_INT,
1094 BIDI_FLOAT,
1095 BIDI_BOOL,
1096 BIDI_STRING,
1097 BIDI_TEXT,
1098 BIDI_ENUM,
1099 BIDI_BLOB
1100} BIDI_TYPE;
1101
1102typedef struct _BINARY_CONTAINER {
1103 DWORD cbBuf;
1104 LPBYTE pData;
1105} BINARY_CONTAINER, *PBINARY_CONTAINER;
1106
1107typedef struct _BIDI_DATA {
1108 DWORD dwBidiType;
1109 union
1110 {
1111 BOOL bData;
1112 INT iData;
1113 LPWSTR sData;
1114 FLOAT fData;
1115 BINARY_CONTAINER biData;
1116 } u;
1117} BIDI_DATA, *LPBIDI_DATA, *PBIDI_DATA;
1118
1119typedef struct _BIDI_REQUEST_DATA {
1120 DWORD dwReqNumber;
1121 LPWSTR pSchema;
1122 BIDI_DATA data;
1123} BIDI_REQUEST_DATA, *LPBIDI_REQUEST_DATA, *PBIDI_REQUEST_DATA;
1124
1125typedef struct _BIDI_REQUEST_CONTAINER {
1126 DWORD Version;
1127 DWORD Flags;
1128 DWORD Count;
1129 BIDI_REQUEST_DATA aData[1];
1130} BIDI_REQUEST_CONTAINER, *LPBIDI_REQUEST_CONTAINER, *PBIDI_REQUEST_CONTAINER;
1131
1132typedef struct _BIDI_RESPONSE_DATA {
1133 DWORD dwResult;
1134 DWORD dwReqNumber;
1135 LPWSTR pSchema;
1136 BIDI_DATA data;
1137} BIDI_RESPONSE_DATA, *LPBIDI_RESPONSE_DATA, *PBIDI_RESPONSE_DATA;
1138
1139typedef struct _BIDI_RESPONSE_CONTAINER {
1140 DWORD Version;
1141 DWORD Flags;
1142 DWORD Count;
1143 BIDI_RESPONSE_DATA aData[1];
1144} BIDI_RESPONSE_CONTAINER, *LPBIDI_RESPONSE_CONTAINER, *PBIDI_RESPONSE_CONTAINER;
1145
1146/* DECLARATIONS */
1147INT WINAPI DeviceCapabilitiesA(LPCSTR pDevice,LPCSTR pPort,WORD fwCapability,
1148 LPSTR pOutput, LPDEVMODEA pDevMode);
1149INT WINAPI DeviceCapabilitiesW(LPCWSTR pDevice, LPCWSTR pPort,
1150 WORD fwCapability, LPWSTR pOutput,
1151 const DEVMODEW *pDevMode);
1152
1153#define DeviceCapabilities WINELIB_NAME_AW(DeviceCapabilities)
1154
1155LONG WINAPI DocumentPropertiesA(HWND hWnd,HANDLE hPrinter,
1156 LPSTR pDeviceName, LPDEVMODEA pDevModeOutput,
1157 LPDEVMODEA pDevModeInput,DWORD fMode );
1158LONG WINAPI DocumentPropertiesW(HWND hWnd, HANDLE hPrinter,
1159 LPWSTR pDeviceName,
1160 LPDEVMODEW pDevModeOutput,
1161 LPDEVMODEW pDevModeInput, DWORD fMode);
1162
1163#define DocumentProperties WINELIB_NAME_AW(DocumentProperties)
1164
1165BOOL WINAPI OpenPrinterA(LPSTR lpPrinterName,HANDLE *phPrinter,
1166 LPPRINTER_DEFAULTSA pDefault);
1167BOOL WINAPI OpenPrinterW(LPWSTR lpPrinterName,HANDLE *phPrinter,
1168 LPPRINTER_DEFAULTSW pDefault);
1169
1170#define OpenPrinter WINELIB_NAME_AW(OpenPrinter)
1171
1172BOOL WINAPI ResetPrinterA(HANDLE hPrinter, LPPRINTER_DEFAULTSA pDefault);
1173BOOL WINAPI ResetPrinterW(HANDLE hPrinter, LPPRINTER_DEFAULTSW pDefault);
1174#define ResetPrinter WINELIB_NAME_AW(ResetPrinter)
1175
1176BOOL WINAPI ClosePrinter (HANDLE phPrinter);
1177
1178BOOL WINAPI EnumJobsA(HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs,
1179 DWORD Level, LPBYTE pJob, DWORD cbBuf, LPDWORD pcbNeeded,
1180 LPDWORD pcReturned);
1181BOOL WINAPI EnumJobsW(HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs,
1182 DWORD Level, LPBYTE pJob, DWORD cbBuf, LPDWORD pcbNeeded,
1183 LPDWORD pcReturned);
1184#define EnumJobs WINELIB_NAME_AW(EnumJobs)
1185
1186BOOL WINAPI EnumPrintersA(DWORD dwType, LPSTR lpszName,
1187 DWORD dwLevel, LPBYTE lpbPrinters,
1188 DWORD cbBuf, LPDWORD lpdwNeeded,
1189 LPDWORD lpdwReturned);
1190BOOL WINAPI EnumPrintersW(DWORD dwType, LPWSTR lpszName,
1191 DWORD dwLevel, LPBYTE lpbPrinters,
1192 DWORD cbBuf, LPDWORD lpdwNeeded,
1193 LPDWORD lpdwReturned);
1194#define EnumPrinters WINELIB_NAME_AW(EnumPrinters)
1195
1196BOOL WINAPI PrinterProperties(HWND hWnd, HANDLE hPrinter);
1197
1198BOOL WINAPI GetPrinterDriverDirectoryA(LPSTR,LPSTR,DWORD,LPBYTE,DWORD,LPDWORD);
1199BOOL WINAPI GetPrinterDriverDirectoryW(LPWSTR,LPWSTR,DWORD,LPBYTE,DWORD,LPDWORD);
1200#define GetPrinterDriverDirectory WINELIB_NAME_AW(GetPrinterDriverDirectory)
1201
1202BOOL WINAPI GetPrinterDriverA(HANDLE hPrinter, LPSTR pEnvironment,
1203 DWORD Level, LPBYTE pDriverInfo,
1204 DWORD cbBuf, LPDWORD pcbNeeded);
1205BOOL WINAPI GetPrinterDriverW(HANDLE hPrinter, LPWSTR pEnvironment,
1206 DWORD Level, LPBYTE pDriverInfo,
1207 DWORD cbBuf, LPDWORD pcbNeeded);
1208#define GetPrinterDriver WINELIB_NAME_AW(GetPrinterDriver)
1209
1210BOOL WINAPI SetJobA(HANDLE hPrinter, DWORD JobID, DWORD Level, LPBYTE pJob,
1211 DWORD Command);
1212BOOL WINAPI SetJobW(HANDLE hPrinter, DWORD JobID, DWORD Level, LPBYTE pJob,
1213 DWORD Command);
1214#define SetJob WINELIB_NAME_AW(SetJob)
1215
1216BOOL WINAPI GetJobA(HANDLE hPrinter, DWORD JobID, DWORD Level, LPBYTE pJob,
1217 DWORD cbBuf, LPDWORD pcbNeeded);
1218BOOL WINAPI GetJobW(HANDLE hPrinter, DWORD JobID, DWORD Level, LPBYTE pJob,
1219 DWORD cbBuf, LPDWORD pcbNeeded);
1220#define GetJob WINELIB_NAME_AW(GetJob)
1221
1222HANDLE WINAPI AddPrinterA(LPSTR pName, DWORD Level, LPBYTE pPrinter);
1223HANDLE WINAPI AddPrinterW(LPWSTR pName, DWORD Level, LPBYTE pPrinter);
1224#define AddPrinter WINELIB_NAME_AW(AddPrinter)
1225
1226BOOL WINAPI DeletePrinter(HANDLE hPrinter);
1227
1228BOOL WINAPI SetPrinterA(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter,
1229 DWORD Command);
1230BOOL WINAPI SetPrinterW(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter,
1231 DWORD Command);
1232#define SetPrinter WINELIB_NAME_AW(SetPrinter)
1233
1234BOOL WINAPI GetPrinterA(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter,
1235 DWORD cbBuf, LPDWORD pcbNeeded);
1236BOOL WINAPI GetPrinterW(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter,
1237 DWORD cbBuf, LPDWORD pcbNeeded);
1238#define GetPrinter WINELIB_NAME_AW(GetPrinter)
1239
1240BOOL WINAPI AddPrinterDriverA(LPSTR pName, DWORD Level, LPBYTE pDriverInfo);
1241BOOL WINAPI AddPrinterDriverW(LPWSTR pName, DWORD Level, LPBYTE pDriverInfo);
1242#define AddPrinterDriver WINELIB_NAME_AW(AddPrinterDriver)
1243
1244BOOL WINAPI AddPrinterDriverExA(LPSTR pName, DWORD Level, LPBYTE pDriverInfo,
1245 DWORD dwFileCopyFlags);
1246BOOL WINAPI AddPrinterDriverExW(LPWSTR pName, DWORD Level, LPBYTE pDriverInfo,
1247 DWORD dwFileCopyFlags);
1248#define AddPrinterDriverEx WINELIB_NAME_AW(AddPrinterDriverEx)
1249
1250BOOL WINAPI EnumPrinterDriversA(LPSTR pName, LPSTR pEnvironment, DWORD Level,
1251 LPBYTE pDriverInfo, DWORD cbBuf,
1252 LPDWORD pcbNeeded, LPDWORD pcbReturned);
1253BOOL WINAPI EnumPrinterDriversW(LPWSTR pName, LPWSTR pEnvironment, DWORD Level,
1254 LPBYTE pDriverInfo, DWORD cbBuf,
1255 LPDWORD pcbNeeded, LPDWORD pcbReturned);
1256#define EnumPrinterDrivers WINELIB_NAME_AW(EnumPrinterDrivers)
1257
1258BOOL WINAPI GetDefaultPrinterA(LPSTR pName, LPDWORD pcbNameSize);
1259BOOL WINAPI GetDefaultPrinterW(LPWSTR pName, LPDWORD pcbNameSize);
1260#define GetDefaultPrinter WINELIB_NAME_AW(GetDefaultPrinter)
1261
1262BOOL WINAPI DeletePrinterDriverA(LPSTR pName, LPSTR pEnvironment,
1263 LPSTR pDriverName);
1264BOOL WINAPI DeletePrinterDriverW(LPWSTR pName, LPWSTR pEnvironment,
1265 LPWSTR pDriverName);
1266#define DeletePrinterDriver WINELIB_NAME_AW(DeletePrinterDriver)
1267
1268BOOL WINAPI DeletePrinterDriverExA(LPSTR pName, LPSTR pEnvironment,
1269 LPSTR pDriverName, DWORD dwDeleteFlag, DWORD dwVersionFlag);
1270BOOL WINAPI DeletePrinterDriverExW(LPWSTR pName, LPWSTR pEnvironment,
1271 LPWSTR pDriverName, DWORD dwDeleteFlag, DWORD dwVersionFlag);
1272#define DeletePrinterDriverEx WINELIB_NAME_AW(DeletePrinterDriverEx)
1273
1274BOOL WINAPI AddPrintProcessorA(LPSTR pName, LPSTR pEnvironment,
1275 LPSTR pPathName, LPSTR pPrintProcessorName);
1276BOOL WINAPI AddPrintProcessorW(LPWSTR pName, LPWSTR pEnvironment,
1277 LPWSTR pPathName, LPWSTR pPrintProcessorName);
1278#define AddPrintProcessor WINELIB_NAME_AW(AddPrintProcessor)
1279
1280BOOL WINAPI EnumPrintProcessorsA(LPSTR pName, LPSTR pEnvironment,
1281 DWORD Level, LPBYTE pPrintProcessorInfo,
1282 DWORD cbBuf, LPDWORD pcbNeeded,
1283 LPDWORD pcbReturned);
1284BOOL WINAPI EnumPrintProcessorsW(LPWSTR pName, LPWSTR pEnvironment,
1285 DWORD Level, LPBYTE pPrintProcessorInfo,
1286 DWORD cbBuf, LPDWORD pcbNeeded,
1287 LPDWORD pcbReturned);
1288#define EnumPrintProcessors WINELIB_NAME_AW(EnumPrintProcessors)
1289
1290BOOL WINAPI GetPrintProcessorDirectoryA(LPSTR pName, LPSTR pEnvironment,
1291 DWORD Level,
1292 LPBYTE pPrintProcessorInfo,
1293 DWORD cbBuf, LPDWORD pcbNeeded);
1294
1295BOOL WINAPI GetPrintProcessorDirectoryW(LPWSTR pName, LPWSTR pEnvironment,
1296 DWORD Level,
1297 LPBYTE pPrintProcessorInfo,
1298 DWORD cbBuf, LPDWORD pcbNeeded);
1299#define GetPrintProcessorDirectory WINELIB_NAME_AW(GetPrintProcessorDirectory)
1300
1301BOOL WINAPI EnumPrintProcessorDatatypesA(LPSTR pName,
1302 LPSTR pPrintProcessorName,
1303 DWORD Level, LPBYTE pDatatypes,
1304 DWORD cbBuf, LPDWORD pcbNeeded,
1305 LPDWORD pcbReturned);
1306BOOL WINAPI EnumPrintProcessorDatatypesW(LPWSTR pName,
1307 LPWSTR pPrintProcessorName,
1308 DWORD Level, LPBYTE pDatatypes,
1309 DWORD cbBuf, LPDWORD pcbNeeded,
1310 LPDWORD pcbReturned);
1311#define EnumPrintProcessorDatatypes WINELIB_NAME_AW(EnumPrintProcessorDatatypes)
1312
1313BOOL WINAPI DeletePrintProcessorA(LPSTR pName, LPSTR pEnvironment,
1314 LPSTR pPrintProcessorName);
1315BOOL WINAPI DeletePrintProcessorW(LPWSTR pName, LPWSTR pEnvironment,
1316 LPWSTR pPrintProcessorName);
1317#define DeletePrintProcessor WINELIB_NAME_AW(DeletePrintProcessor)
1318
1319DWORD WINAPI StartDocPrinterA(HANDLE hPrinter, DWORD Level, LPBYTE pDocInfo);
1320DWORD WINAPI StartDocPrinterW(HANDLE hPrinter, DWORD Level, LPBYTE pDocInfo);
1321#define StartDocPrinter WINELIB_NAME_AW(StartDocPrinter)
1322
1323BOOL WINAPI StartPagePrinter(HANDLE hPrinter);
1324BOOL WINAPI WritePrinter(HANDLE hPrinter, LPVOID pBuf, DWORD cbBuf,
1325 LPDWORD pcWritten);
1326BOOL WINAPI EndPagePrinter(HANDLE hPrinter);
1327BOOL WINAPI AbortPrinter(HANDLE hPrinter);
1328BOOL WINAPI ReadPrinter(HANDLE hPrinter, LPVOID pBuf, DWORD cbBuf,
1329 LPDWORD pNoBytesRead);
1330BOOL WINAPI EndDocPrinter(HANDLE hPrinter);
1331
1332BOOL WINAPI AddJobA(HANDLE hPrinter, DWORD Level, LPBYTE pData, DWORD cbBuf,
1333 LPDWORD pcbNeeded);
1334BOOL WINAPI AddJobW(HANDLE hPrinter, DWORD Level, LPBYTE pData, DWORD cbBuf,
1335 LPDWORD pcbNeeded);
1336#define AddJob WINELIB_NAME_AW(AddJob)
1337
1338BOOL WINAPI ScheduleJob(HANDLE hPrinter, DWORD JobID);
1339
1340LONG WINAPI AdvancedDocumentPropertiesA(HWND hWnd, HANDLE hPrinter,
1341 LPSTR pDeviceName,
1342 PDEVMODEA pDevModeOutput,
1343 PDEVMODEA pDevModeInput);
1344LONG WINAPI AdvancedDocumentPropertiesW(HWND hWnd, HANDLE hPrinter,
1345 LPWSTR pDeviceName,
1346 PDEVMODEW pDevModeOutput,
1347 PDEVMODEW pDevModeInput);
1348#define AdvancedDocumentProperties WINELIB_NAME_AW(AdvancedDocumentProperties)
1349
1350DWORD WINAPI GetPrinterDataA(HANDLE hPrinter, LPSTR pValueName, LPDWORD pType,
1351 LPBYTE pData, DWORD nSize, LPDWORD pcbNeeded);
1352DWORD WINAPI GetPrinterDataW(HANDLE hPrinter, LPWSTR pValueName, LPDWORD pType,
1353 LPBYTE pData, DWORD nSize, LPDWORD pcbNeeded);
1354#define GetPrinterData WINELIB_NAME_AW(GetPrinterData)
1355
1356DWORD WINAPI GetPrinterDataExA(HANDLE hPrinter, LPCSTR pKeyName,
1357 LPCSTR pValueName, LPDWORD pType,
1358 LPBYTE pData, DWORD nSize, LPDWORD pcbNeeded);
1359DWORD WINAPI GetPrinterDataExW(HANDLE hPrinter, LPCWSTR pKeyName,
1360 LPCWSTR pValueName, LPDWORD pType,
1361 LPBYTE pData, DWORD nSize, LPDWORD pcbNeeded);
1362#define GetPrinterDataEx WINELIB_NAME_AW(GetPrinterDataEx)
1363
1364DWORD WINAPI DeletePrinterDataExA(HANDLE hPrinter, LPCSTR pKeyName,
1365 LPCSTR pValueName);
1366DWORD WINAPI DeletePrinterDataExW(HANDLE hPrinter, LPCWSTR pKeyName,
1367 LPCWSTR pValueName);
1368#define DeletePrinterDataEx WINELIB_NAME_AW(DeletePrinterDataEx)
1369
1370DWORD WINAPI SetPrinterDataA(HANDLE hPrinter, LPSTR pValueName, DWORD Type,
1371 LPBYTE pData, DWORD cbData);
1372DWORD WINAPI SetPrinterDataW(HANDLE hPrinter, LPWSTR pValueName, DWORD Type,
1373 LPBYTE pData, DWORD cbData);
1374#define SetPrinterData WINELIB_NAME_AW(SetPrinterData)
1375
1376DWORD WINAPI SetPrinterDataExA(HANDLE hPrinter, LPCSTR pKeyName,
1377 LPCSTR pValueName, DWORD Type,
1378 LPBYTE pData, DWORD cbData);
1379DWORD WINAPI SetPrinterDataExW(HANDLE hPrinter, LPCWSTR pKeyName,
1380 LPCWSTR pValueName, DWORD Type,
1381 LPBYTE pData, DWORD cbData);
1382#define SetPrinterDataEx WINELIB_NAME_AW(SetPrinterDataEx)
1383
1384DWORD WINAPI WaitForPrinterChange(HANDLE hPrinter, DWORD Flags);
1385HANDLE WINAPI FindFirstPrinterChangeNotification(HANDLE hPrinter,
1386 DWORD fdwFlags,
1387 DWORD fdwOptions,
1388 LPVOID pPrinterNotifyOptions);
1389BOOL WINAPI FindNextPrinterChangeNotification(HANDLE hChange,
1390 PDWORD pdwChange,
1391 LPVOID pvReserved,
1392 LPVOID *ppPrinterNotifyInfo);
1393BOOL WINAPI FreePrinterNotifyInfo(PPRINTER_NOTIFY_INFO pPrinterNotifyInfo);
1394BOOL WINAPI FindClosePrinterChangeNotification(HANDLE hChange);
1395
1396DWORD WINAPI PrinterMessageBoxA(HANDLE hPrinter, DWORD Error, HWND hWnd,
1397 LPSTR pText, LPSTR pCaption, DWORD dwType);
1398DWORD WINAPI PrinterMessageBoxW(HANDLE hPrinter, DWORD Error, HWND hWnd,
1399 LPWSTR pText, LPWSTR pCaption, DWORD dwType);
1400#define PrinterMessageBox WINELIB_NAME_AW(PrinterMessageBox)
1401
1402BOOL WINAPI AddFormA(HANDLE hPrinter, DWORD Level, LPBYTE pForm);
1403BOOL WINAPI AddFormW(HANDLE hPrinter, DWORD Level, LPBYTE pForm);
1404#define AddForm WINELIB_NAME_AW(AddForm)
1405
1406BOOL WINAPI DeleteFormA(HANDLE hPrinter, LPSTR pFormName);
1407BOOL WINAPI DeleteFormW(HANDLE hPrinter, LPWSTR pFormName);
1408#define DeleteForm WINELIB_NAME_AW(DeleteForm)
1409
1410BOOL WINAPI GetFormA(HANDLE hPrinter, LPSTR pFormName, DWORD Level,
1411 LPBYTE pForm, DWORD cbBuf, LPDWORD pcbNeeded);
1412BOOL WINAPI GetFormW(HANDLE hPrinter, LPWSTR pFormName, DWORD Level,
1413 LPBYTE pForm, DWORD cbBuf, LPDWORD pcbNeeded);
1414#define GetForm WINELIB_NAME_AW(GetForm)
1415
1416BOOL WINAPI SetFormA(HANDLE hPrinter, LPSTR pFormName, DWORD Level,
1417 LPBYTE pForm);
1418BOOL WINAPI SetFormW(HANDLE hPrinter, LPWSTR pFormName, DWORD Level,
1419 LPBYTE pForm);
1420#define SetForm WINELIB_NAME_AW(SetForm)
1421
1422BOOL WINAPI EnumFormsA(HANDLE hPrinter, DWORD Level, LPBYTE pForm, DWORD cbBuf,
1423 LPDWORD pcbNeeded, LPDWORD pcReturned);
1424BOOL WINAPI EnumFormsW(HANDLE hPrinter, DWORD Level, LPBYTE pForm, DWORD cbBuf,
1425 LPDWORD pcbNeeded, LPDWORD pcReturned);
1426#define EnumForms WINELIB_NAME_AW(EnumForms)
1427
1428BOOL WINAPI EnumMonitorsA(LPSTR pName, DWORD Level, LPBYTE pMonitors,
1429 DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned);
1430BOOL WINAPI EnumMonitorsW(LPWSTR pName, DWORD Level, LPBYTE pMonitors,
1431 DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned);
1432#define EnumMonitors WINELIB_NAME_AW(EnumMonitors)
1433
1434DWORD WINAPI EnumPrinterDataA( HANDLE hPrinter, DWORD dwIndex, LPSTR pValueName,
1435 DWORD cbValueName, LPDWORD pcbValueName, LPDWORD pType, LPBYTE pData,
1436 DWORD cbData, LPDWORD pcbData );
1437DWORD WINAPI EnumPrinterDataW( HANDLE hPrinter, DWORD dwIndex, LPWSTR pValueName,
1438 DWORD cbValueName, LPDWORD pcbValueName, LPDWORD pType, LPBYTE pData,
1439 DWORD cbData, LPDWORD pcbData );
1440#define EnumPrinterData WINELIB_NAME_AW(EnumPrinterData)
1441
1442BOOL WINAPI AddMonitorA(LPSTR pName, DWORD Level, LPBYTE pMonitors);
1443BOOL WINAPI AddMonitorW(LPWSTR pName, DWORD Level, LPBYTE pMonitors);
1444#define AddMonitor WINELIB_NAME_AW(AddMonitor)
1445
1446BOOL WINAPI DeleteMonitorA(LPSTR pName, LPSTR pEnvironment,
1447 LPSTR pMonitorName);
1448BOOL WINAPI DeleteMonitorW(LPWSTR pName, LPWSTR pEnvironment,
1449 LPWSTR pMonitorName);
1450#define DeleteMonitor WINELIB_NAME_AW(DeleteMonitor)
1451
1452BOOL WINAPI EnumPortsA(LPSTR pName, DWORD Level, LPBYTE pPorts,
1453 DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned);
1454BOOL WINAPI EnumPortsW(LPWSTR pName, DWORD Level, LPBYTE pPorts,
1455 DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned);
1456#define EnumPorts WINELIB_NAME_AW(EnumPorts)
1457
1458BOOL WINAPI AddPortA(LPSTR pName, HWND hWnd, LPSTR pMonitorName);
1459BOOL WINAPI AddPortW(LPWSTR pName, HWND hWnd, LPWSTR pMonitorName);
1460#define AddPort WINELIB_NAME_AW(AddPort)
1461
1462BOOL WINAPI AddPortExA(LPSTR, DWORD, LPBYTE, LPSTR);
1463BOOL WINAPI AddPortExW(LPWSTR, DWORD, LPBYTE, LPWSTR);
1464#define AddPortEx WINELIB_NAME_AW(AddPortEx)
1465
1466BOOL WINAPI ConfigurePortA(LPSTR pName, HWND hWnd, LPSTR pPortName);
1467BOOL WINAPI ConfigurePortW(LPWSTR pName, HWND hWnd, LPWSTR pPortName);
1468#define ConfigurePort WINELIB_NAME_AW(ConfigurePort)
1469
1470BOOL WINAPI DeletePortA(LPSTR pName, HWND hWnd, LPSTR pPortName);
1471BOOL WINAPI DeletePortW(LPWSTR pName, HWND hWnd, LPWSTR pPortName);
1472#define DeletePort WINELIB_NAME_AW(DeletePort)
1473
1474BOOL WINAPI SetPortA(LPSTR pName, LPSTR pPortName, DWORD dwLevel,
1475 LPBYTE pPortInfo);
1476BOOL WINAPI SetPortW(LPWSTR pName, LPWSTR pPortName, DWORD dwLevel,
1477 LPBYTE pPortInfo);
1478#define SetPort WINELIB_NAME_AW(SetPort)
1479
1480BOOL WINAPI AddPrinterConnectionA(LPSTR pName);
1481BOOL WINAPI AddPrinterConnectionW(LPWSTR pName);
1482#define AddPrinterConnection WINELIB_NAME_AW(AddPrinterConnection)
1483
1484BOOL WINAPI DeletePrinterConnectionA(LPSTR pName);
1485BOOL WINAPI DeletePrinterConnectionW(LPWSTR pName);
1486#define DeletePrinterConnection WINELIB_NAME_AW(DeletePrinterConnection)
1487
1488HANDLE WINAPI ConnectToPrinterDlg(HWND hwnd, DWORD Flags);
1489
1490BOOL WINAPI AddPrintProvidorA(LPSTR pName, DWORD Level, LPBYTE pProvidorInfo);
1491BOOL WINAPI AddPrintProvidorW(LPWSTR pName, DWORD Level, LPBYTE pProvidorInfo);
1492#define AddPrintProvidor WINELIB_NAME_AW(AddPrintProvidor)
1493
1494BOOL WINAPI DeletePrintProvidorA(LPSTR pName, LPSTR pEnvironment,
1495 LPSTR pPrintProvidorName);
1496BOOL WINAPI DeletePrintProvidorW(LPWSTR pName, LPWSTR pEnvironment,
1497 LPWSTR pPrintProvidorName);
1498#define DeletePrintProvidor WINELIB_NAME_AW(DeletePrintProvidor)
1499
1500DWORD WINAPI EnumPrinterDataExA(HANDLE hPrinter, LPCSTR pKeyName,
1501 LPBYTE pEnumValues, DWORD cbEnumValues,
1502 LPDWORD pcbEnumValues, LPDWORD pnEnumValues);
1503DWORD WINAPI EnumPrinterDataExW(HANDLE hPrinter, LPCWSTR pKeyName,
1504 LPBYTE pEnumValues, DWORD cbEnumValues,
1505 LPDWORD pcbEnumValues, LPDWORD pnEnumValues);
1506#define EnumPrinterDataEx WINELIB_NAME_AW(EnumPrinterDataEx)
1507
1508LONG WINAPI ExtDeviceMode( HWND hWnd, HANDLE hInst, LPDEVMODEA pDevModeOutput,
1509 LPSTR pDeviceName, LPSTR pPort, LPDEVMODEA pDevModeInput, LPSTR pProfile,
1510 DWORD fMode);
1511
1512LPSTR WINAPI StartDocDlgA(HANDLE hPrinter, DOCINFOA *doc);
1513LPWSTR WINAPI StartDocDlgW(HANDLE hPrinter, DOCINFOW *doc);
1514#define StartDocDlg WINELIB_NAME_AW(StartDocDlg)
1515
1516BOOL WINAPI XcvDataW(HANDLE hXcv, LPCWSTR pszDataName, PBYTE pInputData,
1517 DWORD cbInputData, PBYTE pOutputData, DWORD cbOutputData,
1518 PDWORD pcbOutputNeeded, PDWORD pdwStatus);
1519
1520#ifdef __cplusplus
1521} /* extern "C" */
1522#endif
1523
1524#endif /* __WINE_WINSPOOL_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette