1 /*
2  * PROJECT:     ReactOS Spooler API
3  * LICENSE:     GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE:     Precompiled Header for all source files
5  * COPYRIGHT:   Copyright 2015-2017 Colin Finck (colin@reactos.org)
6  */
7 
8 #ifndef _PRECOMP_H
9 #define _PRECOMP_H
10 
11 #define WIN32_NO_STATUS
12 #include <windef.h>
13 #include <winbase.h>
14 #include <wingdi.h>
15 #include <winreg.h>
16 #include <winspool.h>
17 #include <winspool_c.h>
18 #include <winddiui.h>
19 #include <ndk/rtlfuncs.h>
20 #include <strsafe.h>
21 
22 #include <spoolss.h>
23 #include <marshalling/marshalling.h>
24 
25 #include <wine/debug.h>
26 WINE_DEFAULT_DEBUG_CHANNEL(winspool);
27 
28 // Structures
29 /*
30  * Describes a handle returned by OpenPrinterW.
31  */
32 typedef struct _SPOOLER_HANDLE
33 {
34     BOOL bStartedDoc : 1;
35     DWORD dwJobID;
36     HANDLE hPrinter;
37     HANDLE hSPLFile;
38 }
39 SPOOLER_HANDLE, *PSPOOLER_HANDLE;
40 
41 // main.c
42 extern HANDLE hProcessHeap;
43 
44 // utils.c
45 extern BOOL UnicodeToAnsiInPlace(PWSTR pwszField);
46 
47 // devmode.c
48 extern void RosConvertAnsiDevModeToUnicodeDevmode(PDEVMODEA pDevModeInput, PDEVMODEW pDevModeOutput);
49 
50 extern void RosConvertUnicodeDevModeToAnsiDevmode(PDEVMODEW pDevModeInput, PDEVMODEA pDevModeOutput);
51 
52 #endif
53