ReactOS  0.4.15-dev-3181-g4acf100
precomp.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Local Spooler
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 <limits.h>
13 #include <stdlib.h>
14 #include <wchar.h>
15 
16 #include <lmcons.h>
17 #include <rpc.h>
18 #include <strsafe.h>
19 #include <windef.h>
20 #include <winbase.h>
21 #include <wingdi.h>
22 #include <winreg.h>
23 #include <winspool.h>
24 #include <winsplp.h>
25 #include <winddiui.h>
26 #include <dsrole.h>
27 #include <secext.h>
28 #include <ndk/rtlfuncs.h>
29 
30 #define SKIPLIST_LEVELS 16
31 #include <skiplist.h>
32 #include <spoolss.h>
33 
34 #include <wine/debug.h>
36 
37 // Macros
38 #define IS_VALID_JOB_ID(ID) (ID >= 1 && ID <= 99999)
39 #define IS_VALID_PRIORITY(P) (P >= MIN_PRIORITY && P <= MAX_PRIORITY)
40 
41 // Constants
42 #define SHD_WIN2003_SIGNATURE 0x4968
43 
44 // Function pointers
54 
55 // Forward declarations
57 typedef struct _LOCAL_JOB LOCAL_JOB, *PLOCAL_JOB;
66 
67 // Structures
72 {
82 };
83 
88 {
93 };
94 
99 {
110 };
111 
117 {
118  // This sort key must be the first element for LookupElementSkiplist to work!
120 
131 };
132 
138 {
139  // This sort key must be the first element for LookupElementSkiplist to work!
162 };
163 
168 {
175 };
176 
181 {
184 };
185 
190 {
193 };
194 
200 {
201  enum {
206  }
207  HandleType;
209 };
210 
217 {
246 };
247 
248 // forms.c
250 BOOL WINAPI LocalAddForm(HANDLE hPrinter, DWORD Level, PBYTE pForm);
251 BOOL WINAPI LocalDeleteForm(HANDLE hPrinter, PWSTR pFormName);
252 BOOL WINAPI LocalEnumForms(HANDLE hPrinter, DWORD Level, PBYTE pForm, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned);
253 BOOL WINAPI LocalGetForm(HANDLE hPrinter, PWSTR pFormName, DWORD Level, PBYTE pForm, DWORD cbBuf, PDWORD pcbNeeded);
254 BOOL WINAPI LocalSetForm(HANDLE hPrinter, PWSTR pFormName, DWORD Level, PBYTE pForm);
255 
256 // jobs.c
257 extern SKIPLIST GlobalJobList;
259 void FreeJob(PLOCAL_JOB pJob);
260 DWORD GetJobFilePath(PCWSTR pwszExtension, DWORD dwJobID, PWSTR pwszOutput);
264 BOOL WINAPI LocalEnumJobs(HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs, DWORD Level, PBYTE pStart, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned);
265 BOOL WINAPI LocalGetJob(HANDLE hPrinter, DWORD JobId, DWORD Level, PBYTE pStart, DWORD cbBuf, LPDWORD pcbNeeded);
266 BOOL WINAPI LocalScheduleJob(HANDLE hPrinter, DWORD dwJobID);
267 BOOL WINAPI LocalSetJob(HANDLE hPrinter, DWORD JobId, DWORD Level, PBYTE pJobInfo, DWORD Command);
268 PLOCAL_JOB ReadJobShadowFile(PCWSTR pwszFilePath);
269 BOOL WriteJobShadowFile(PWSTR pwszFilePath, const PLOCAL_JOB pJob);
270 
271 // main.c
272 extern const WCHAR wszCurrentEnvironment[];
273 extern const DWORD cbCurrentEnvironment;
274 extern const DWORD dwSpoolerMajorVersion;
275 extern const DWORD dwSpoolerMinorVersion;
276 extern const WCHAR wszDefaultDocumentName[];
277 extern HKEY hPrintKey;
278 extern HKEY hPrintersKey;
279 extern PCWSTR wszPrintProviderInfo[3];
281 extern DWORD cchJobDirectory;
283 extern DWORD cchSpoolDirectory;
284 
285 // monitors.c
291 BOOL WINAPI LocalDeleteMonitor(PWSTR pName, PWSTR pEnvironment, PWSTR pMonitorName);
292 
293 // ports.c
294 PLOCAL_PORT FindPort(PCWSTR pwszName);
301 BOOL WINAPI LocalSetPort(PWSTR pName, PWSTR pPortName, DWORD dwLevel, PBYTE pPortInfo);
302 BOOL CreatePortEntry( PCWSTR pwszName, PLOCAL_PRINT_MONITOR pPrintMonitor );
303 
304 // printerdata.c
306 DWORD WINAPI LocalGetPrinterDataEx(HANDLE hPrinter, PCWSTR pKeyName, PCWSTR pValueName, PDWORD pType, PBYTE pData, DWORD nSize, PDWORD pcbNeeded);
307 DWORD WINAPI LocalSetPrinterData(HANDLE hPrinter, PWSTR pValueName, DWORD Type, PBYTE pData, DWORD cbData);
308 DWORD WINAPI LocalSetPrinterDataEx(HANDLE hPrinter, LPCWSTR pKeyName, LPCWSTR pValueName, DWORD Type, LPBYTE pData, DWORD cbData);
309 
310 // printerdrivers.c
313 BOOL WINAPI LocalAddPrinterDriverEx(LPWSTR pName, DWORD level, LPBYTE pDriverInfo, DWORD dwFileCopyFlags);
314 BOOL WINAPI LocalGetPrinterDriver(HANDLE hPrinter, LPWSTR pEnvironment, DWORD Level, LPBYTE pDriverInfo, DWORD cbBuf, LPDWORD pcbNeeded);
315 BOOL WINAPI LocalGetPrinterDriverDirectory(PWSTR pName, PWSTR pEnvironment, DWORD Level, PBYTE pDriverDirectory, DWORD cbBuf, PDWORD pcbNeeded);
316 BOOL WINAPI LocalGetPrinterDriverEx(HANDLE hPrinter,LPWSTR pEnvironment,DWORD Level,LPBYTE pDriverInfo,DWORD cbBuf,LPDWORD pcbNeeded,DWORD dwClientMajorVersion,DWORD dwClientMinorVersion,PDWORD pdwServerMajorVersion,PDWORD pdwServerMinorVersion );
317 BOOL WINAPI LocalEnumPrinterDrivers(PWSTR pName, PWSTR pEnvironment, DWORD Level, PBYTE pDriverInfo, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned);
318 
319 // wine codes
320 typedef struct _PRINTENV_T
321 {
328 
330 
331 // printers.c
332 extern SKIPLIST PrinterList;
336 BOOL WINAPI LocalOpenPrinter(PWSTR lpPrinterName, HANDLE* phPrinter, PPRINTER_DEFAULTSW pDefault);
338 BOOL WINAPI LocalReadPrinter(HANDLE hPrinter, PVOID pBuf, DWORD cbBuf, PDWORD pNoBytesRead);
341 BOOL WINAPI LocalWritePrinter(HANDLE hPrinter, LPVOID pBuf, DWORD cbBuf, LPDWORD pcWritten);
346 
347 // printingthread.c
349 
350 // printprocessors.c
351 BOOL FindDatatype(const PLOCAL_PRINT_PROCESSOR pPrintProcessor, PCWSTR pwszDatatype);
354 BOOL WINAPI LocalEnumPrintProcessorDatatypes(LPWSTR pName, LPWSTR pPrintProcessorName, DWORD Level, LPBYTE pDatatypes, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned);
355 BOOL WINAPI LocalEnumPrintProcessors(LPWSTR pName, LPWSTR pEnvironment, DWORD Level, LPBYTE pPrintProcessorInfo, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned);
357 
358 // spoolfile.c
359 BOOL WINAPI LocalGetSpoolFileInfo(HANDLE hPrinter,LPWSTR *pSpoolDir,LPHANDLE phFile,HANDLE hSpoolerProcess,HANDLE hAppProcess);
360 BOOL WINAPI LocalCommitSpoolData(HANDLE hPrinter,DWORD cbCommit);
362 
363 // tools.c
366 // wine codes
368 
369 // Xcv.c
370 BOOL WINAPI LocalXcvData(HANDLE hXcv, const WCHAR* pszDataName, BYTE* pInputData, DWORD cbInputData, BYTE* pOutputData, DWORD cbOutputData, DWORD* pcbOutputNeeded, DWORD* pdwStatus);
371 
372 
373 #endif
BOOL WINAPI LocalAddMonitor(PWSTR pName, DWORD Level, PBYTE pMonitors)
Definition: monitors.c:636
PLOCAL_PORT pPort
Definition: precomp.h:183
SYSTEMTIME stSubmitted
Definition: precomp.h:147
PDEVMODEW pDevMode
Definition: precomp.h:174
BOOL WINAPI LocalDeleteForm(HANDLE hPrinter, PWSTR pFormName)
Definition: forms.c:499
DWORD WINAPI LocalGetPrinterDataEx(HANDLE hPrinter, PCWSTR pKeyName, PCWSTR pValueName, PDWORD pType, PBYTE pData, DWORD nSize, PDWORD pcbNeeded)
Definition: printerdata.c:314
LPMONITOR2(WINAPI * PInitializePrintMonitor2)(PMONITORINIT, PHANDLE)
Definition: precomp.h:52
const uint16_t * PCWSTR
Definition: typedefs.h:57
GLint level
Definition: gl.h:1546
DWORD offDocumentName
Definition: precomp.h:226
DWORD dwStartTime
Definition: precomp.h:235
LIST_ENTRY Entry
Definition: precomp.h:89
PWSTR pwszName
Definition: precomp.h:90
DWORD offNotifyName
Definition: precomp.h:225
LPCSTR pText
Definition: txtscale.cpp:79
DWORD offDriverName
Definition: precomp.h:229
WCHAR wszSpoolDirectory[MAX_PATH]
Definition: main.c:15
BOOL WINAPI LocalConfigurePort(PWSTR pName, HWND hWnd, PWSTR pPortName)
Definition: ports.c:361
BOOL bAddedJob
Definition: precomp.h:142
void InitializePrinterJobList(PLOCAL_PRINTER pPrinter)
Definition: jobs.c:247
PDATATYPES_INFO_1W pDatatypesInfo1
Definition: precomp.h:102
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
DWORD offUserName
Definition: precomp.h:224
DWORD dwStartTime
Definition: precomp.h:157
PEnumPrintProcessorDatatypesW pfnEnumPrintProcessorDatatypesW
Definition: precomp.h:106
DWORD dwUnknown3
Definition: precomp.h:241
PPrintDocumentOnPrintProcessor pfnPrintDocumentOnPrintProcessor
Definition: precomp.h:109
PLOCAL_PRINT_MONITOR FindPrintMonitor(PCWSTR pwszName)
Definition: monitors.c:28
PWSTR pwszOutputFile
Definition: precomp.h:152
BOOL InitializeGlobalJobList(VOID)
Definition: jobs.c:161
uint16_t * PWSTR
Definition: typedefs.h:56
BOOL WINAPI LocalSetForm(HANDLE hPrinter, PWSTR pFormName, DWORD Level, PBYTE pForm)
Definition: forms.c:682
BOOL WINAPI LocalAddPort(LPWSTR pName, HWND hWnd, LPWSTR pMonitorName)
Definition: ports.c:286
const DWORD dwSpoolerMajorVersion
Definition: main.c:22
BOOL WINAPI LocalAddForm(HANDLE hPrinter, DWORD Level, PBYTE pForm)
Definition: forms.c:409
DWORD dwAttributes
Definition: precomp.h:121
PWSTR pwszPrinterDriver
Definition: precomp.h:124
BOOL WINAPI LocalEnumPrinters(DWORD Flags, LPWSTR Name, DWORD Level, LPBYTE pPrinterEnum, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned)
Definition: printers.c:884
*nSize LPSTR _Inout_ LPDWORD nSize
Definition: winbase.h:2053
const DWORD dwSpoolerMinorVersion
Definition: main.c:23
PLOCAL_JOB pNextJobToProcess
Definition: precomp.h:92
PWSTR pwszMachineName
Definition: precomp.h:160
HWND hWnd
Definition: settings.c:17
PLOCAL_PRINT_MONITOR pPrintMonitor
Definition: precomp.h:91
struct _MONITORINIT * PMONITORINIT
DWORD offPort
Definition: precomp.h:227
DWORD WINAPI PrintingThreadProc(PLOCAL_JOB pJob)
SKIPLIST JobList
Definition: precomp.h:130
DWORD WINAPI CreateJob(PLOCAL_PRINTER_HANDLE pPrinterHandle)
Definition: jobs.c:257
PLOCAL_PORT FindPort(PCWSTR pwszName)
Definition: ports.c:15
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:55
DWORD WINAPI LocalSetPrinterDataEx(HANDLE hPrinter, LPCWSTR pKeyName, LPCWSTR pValueName, DWORD Type, LPBYTE pData, DWORD cbData)
struct _LOCAL_PORT_HANDLE * PLOCAL_PORT_HANDLE
Definition: precomp.h:59
Definition: shell.h:41
PWSTR pwszLocation
Definition: precomp.h:123
BOOL(WINAPI * PEnumPrintProcessorDatatypesW)(LPWSTR, LPWSTR, DWORD, LPBYTE, DWORD, LPDWORD, LPDWORD)
Definition: precomp.h:47
BOOL WINAPI LocalEnumForms(HANDLE hPrinter, DWORD Level, PBYTE pForm, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned)
Definition: forms.c:549
#define BOOL
Definition: nt_native.h:43
enum _LOCAL_HANDLE::@4881 HandleType
WORD wStatus
Definition: precomp.h:220
#define DWORD
Definition: nt_native.h:44
LPCWSTR envname
Definition: precomp.h:322
DWORD dwPriority
Definition: precomp.h:146
PDEVMODEW pDevMode
Definition: precomp.h:161
BOOL InitializePrinterList(void)
Definition: printers.c:107
PCWSTR wszPrintProviderInfo[3]
Definition: main.c:27
const DWORD cbCurrentEnvironment
struct _LOCAL_PORT * PLOCAL_PORT
Definition: precomp.h:58
DWORD dwSignature
Definition: precomp.h:218
BOOL WINAPI LocalGetForm(HANDLE hPrinter, PWSTR pFormName, DWORD Level, PBYTE pForm, DWORD cbBuf, PDWORD pcbNeeded)
Definition: forms.c:624
DWORD(WINAPI * PGetPrintProcessorCapabilities)(LPWSTR, DWORD, LPBYTE, DWORD, LPDWORD)
Definition: precomp.h:48
DWORD dwJobID
Definition: precomp.h:140
BOOL CreatePortEntry(PCWSTR pwszName, PLOCAL_PRINT_MONITOR pPrintMonitor)
Definition: ports.c:37
struct _LOCAL_HANDLE * PLOCAL_HANDLE
Definition: precomp.h:56
unsigned char * LPBYTE
Definition: typedefs.h:53
BOOL WINAPI LocalDeleteMonitor(PWSTR pName, PWSTR pEnvironment, PWSTR pMonitorName)
Definition: monitors.c:724
LPCWSTR versionregpath
Definition: precomp.h:325
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
LPCWSTR versionsubdir
Definition: precomp.h:326
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
Definition: db.cpp:175
BOOL InitializePrintMonitorList(void)
Definition: monitors.c:126
DWORD dwUnknown4
Definition: precomp.h:242
BOOL WINAPI LocalReadPrinter(HANDLE hPrinter, PVOID pBuf, DWORD cbBuf, PDWORD pNoBytesRead)
Definition: printers.c:1534
PLOCAL_PRINT_MONITOR pPrintMonitor
Definition: precomp.h:192
PWSTR pwszDatatype
Definition: precomp.h:151
PLOCAL_PRINT_PROCESSOR pPrintProcessor
Definition: precomp.h:128
DWORD driverversion
Definition: precomp.h:324
DWORD dwUntilTime
Definition: precomp.h:158
BOOL WINAPI LocalGetPrinterDriverDirectory(PWSTR pName, PWSTR pEnvironment, DWORD Level, PBYTE pDriverDirectory, DWORD cbBuf, PDWORD pcbNeeded)
PVOID pSpecificHandle
Definition: precomp.h:208
PWSTR AllocAndRegQueryWSZ(HKEY hKey, PCWSTR pwszValueName)
Definition: tools.c:26
BOOL WINAPI LocalEnumMonitors(PWSTR pName, DWORD Level, PBYTE pMonitors, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned)
Definition: monitors.c:396
PLOCAL_JOB ReadJobShadowFile(PCWSTR pwszFilePath)
Definition: jobs.c:1187
struct _SHD_HEADER * PSHD_HEADER
Definition: precomp.h:65
DWORD offPrintProcessor
Definition: precomp.h:231
PPRINTENV_T validate_envW(LPCWSTR env)
BOOL WINAPI LocalGetPrinterDriverEx(HANDLE hPrinter, LPWSTR pEnvironment, DWORD Level, LPBYTE pDriverInfo, DWORD cbBuf, LPDWORD pcbNeeded, DWORD dwClientMajorVersion, DWORD dwClientMinorVersion, PDWORD pdwServerMajorVersion, PDWORD pdwServerMinorVersion)
PWSTR pwszPrintProcessorParameters
Definition: precomp.h:153
WINE_DEFAULT_DEBUG_CHANNEL(cmd)
BOOL WINAPI LocalWritePrinter(HANDLE hPrinter, LPVOID pBuf, DWORD cbBuf, LPDWORD pcWritten)
DWORD offDevMode
Definition: precomp.h:230
DWORD WINAPI LocalSetPrinterData(HANDLE hPrinter, PWSTR pValueName, DWORD Type, PBYTE pData, DWORD cbData)
Definition: printerdata.c:361
DWORD dwStatus
Definition: precomp.h:159
static LPSTR pName
Definition: security.c:75
BOOL WINAPI LocalStartPagePrinter(HANDLE hPrinter)
Definition: printers.c:1724
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
WCHAR wszJobDirectory[MAX_PATH]
Definition: main.c:13
const WCHAR wszCurrentEnvironment[]
Definition: prtprocenv.h:11
__wchar_t WCHAR
Definition: xmlstorage.h:180
DWORD offSecurityDescriptor
Definition: precomp.h:240
_In_z_ PCWSTR pwszValueName
Definition: ntuser.h:37
PLOCAL_PRINTER pPrinter
Definition: precomp.h:144
DWORD dwTotalPages
Definition: precomp.h:155
struct _LOCAL_PRINT_MONITOR * PLOCAL_PRINT_MONITOR
Definition: precomp.h:60
#define MAX_PATH
Definition: compat.h:34
#define WINAPI
Definition: msvc.h:6
BOOL FindDatatype(const PLOCAL_PRINT_PROCESSOR pPrintProcessor, PCWSTR pwszDatatype)
SKIPLIST PrinterList
Definition: printers.c:11
unsigned short WORD
Definition: ntddk_ex.h:93
Type
Definition: Type.h:6
struct _PRINTPROCESSOROPENDATA * PPRINTPROCESSOROPENDATA
unsigned long DWORD
Definition: ntddk_ex.h:95
PVOID HANDLE
Definition: typedefs.h:73
BOOL WINAPI LocalEndPagePrinter(HANDLE hPrinter)
Definition: printers.c:1834
BOOL WINAPI LocalEndDocPrinter(HANDLE hPrinter)
Definition: printers.c:1857
BOOL Error
Definition: chkdsk.c:66
DWORD dwSPLSize
Definition: precomp.h:245
BOOL WINAPI LocalSetJob(HANDLE hPrinter, DWORD JobId, DWORD Level, PBYTE pJobInfo, DWORD Command)
Definition: jobs.c:949
BOOL WINAPI LocalGetPrinterDriver(HANDLE hPrinter, LPWSTR pEnvironment, DWORD Level, LPBYTE pDriverInfo, DWORD cbBuf, LPDWORD pcbNeeded)
BOOL WINAPI LocalEnumPrintProcessors(LPWSTR pName, LPWSTR pEnvironment, DWORD Level, LPBYTE pPrintProcessorInfo, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned)
BOOL WINAPI LocalGetJob(HANDLE hPrinter, DWORD JobId, DWORD Level, PBYTE pStart, DWORD cbBuf, LPDWORD pcbNeeded)
Definition: jobs.c:655
struct _LOCAL_XCV_HANDLE * PLOCAL_XCV_HANDLE
Definition: precomp.h:64
struct _PRINTENV_T PRINTENV_T
DWORD dwUnknown6
Definition: precomp.h:237
PMONITORUI(WINAPI * PInitializePrintMonitorUI)(VOID)
Definition: precomp.h:53
BOOL WINAPI LocalCloseSpoolFileHandle(HANDLE hPrinter)
Definition: spoolfile.c:30
LIST_ENTRY PrintMonitorList
Definition: monitors.c:11
DWORD WINAPI LocalStartDocPrinter(HANDLE hPrinter, DWORD Level, LPBYTE pDocInfo)
#define LPDWORD
Definition: nt_native.h:46
PWSTR pwszNotifyName
Definition: precomp.h:149
LIST_ENTRY Entry
Definition: precomp.h:73
PWSTR pwszDefaultDatatype
Definition: precomp.h:126
BOOL WINAPI LocalOpenPrinter(PWSTR lpPrinterName, HANDLE *phPrinter, PPRINTER_DEFAULTSW pDefault)
Definition: printers.c:1398
LIST_ENTRY Entry
Definition: precomp.h:100
PClosePrintProcessor pfnClosePrintProcessor
Definition: precomp.h:104
DWORD offDatatype
Definition: precomp.h:232
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:454
#define VOID
Definition: acefi.h:82
HKEY hPrintersKey
Definition: main.c:12
DWORD dwPriority
Definition: precomp.h:223
Definition: typedefs.h:119
BOOL InitializePrintProcessorList(void)
DWORD WINAPI LocalGetPrinterData(HANDLE hPrinter, PWSTR pValueName, PDWORD pType, PBYTE pData, DWORD nSize, PDWORD pcbNeeded)
Definition: printerdata.c:11
VOID BroadcastChange(PLOCAL_HANDLE pHandle)
Definition: printers.c:350
BOOL WINAPI LocalAddPortEx(PWSTR pName, DWORD Level, PBYTE lpBuffer, PWSTR lpMonitorName)
Definition: ports.c:217
unsigned char BYTE
Definition: xxhash.c:193
DWORD dwUnknown5
Definition: precomp.h:243
PWSTR pwszDescription
Definition: precomp.h:125
BOOL(WINAPI * PControlPrintProcessor)(HANDLE, DWORD)
Definition: precomp.h:46
PDEVMODEW pDefaultDevMode
Definition: precomp.h:127
struct _LOCAL_JOB * PLOCAL_JOB
Definition: precomp.h:57
SKIPLIST GlobalJobList
Definition: jobs.c:11
struct _LOCAL_PRINTER * PLOCAL_PRINTER
Definition: precomp.h:62
BOOL WINAPI LocalGetSpoolFileInfo(HANDLE hPrinter, LPWSTR *pSpoolDir, LPHANDLE phFile, HANDLE hSpoolerProcess, HANDLE hAppProcess)
Definition: spoolfile.c:11
DWORD cchJobDirectory
Definition: main.c:14
BOOL WINAPI LocalEnumPrintProcessorDatatypes(LPWSTR pName, LPWSTR pPrintProcessorName, DWORD Level, LPBYTE pDatatypes, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned)
SYSTEMTIME stSubmitted
Definition: precomp.h:234
_In_ DWORD _Out_ PDWORD pcbNeeded
Definition: winddi.h:3827
DWORD dwTotalPages
Definition: precomp.h:238
DWORD dwStatus
Definition: precomp.h:122
BOOL WINAPI LocalAddPrinterDriver(LPWSTR pName, DWORD level, LPBYTE pDriverInfo)
PWSTR pwszDocumentName
Definition: precomp.h:150
BOOL InitializePrinterDrivers(VOID)
FxAutoRegKey hKey
HANDLE hPrintProcessor
Definition: precomp.h:143
DWORD GetJobFilePath(PCWSTR pwszExtension, DWORD dwJobID, PWSTR pwszOutput)
Definition: jobs.c:146
PDEVMODEW DuplicateDevMode(PDEVMODEW pInput)
Definition: tools.c:61
PGetPrintProcessorCapabilities pfnGetPrintProcessorCapabilities
Definition: precomp.h:107
DWORD WINAPI LocalPrinterMessageBox(HANDLE hPrinter, DWORD Error, HWND hWnd, LPWSTR pText, LPWSTR pCaption, DWORD dwType)
Definition: printers.c:1391
BOOL(WINAPI * PPrintDocumentOnPrintProcessor)(HANDLE, LPWSTR)
Definition: precomp.h:50
BOOL WINAPI LocalXcvData(HANDLE hXcv, const WCHAR *pszDataName, BYTE *pInputData, DWORD cbInputData, BYTE *pOutputData, DWORD cbOutputData, DWORD *pcbOutputNeeded, DWORD *pdwStatus)
Definition: xcv.c:140
BOOL WINAPI LocalScheduleJob(HANDLE hPrinter, DWORD dwJobID)
Definition: jobs.c:1112
BOOL WINAPI LocalGetPrintProcessorDirectory(LPWSTR pName, LPWSTR pEnvironment, DWORD Level, LPBYTE pPrintProcessorInfo, DWORD cbBuf, LPDWORD pcbNeeded)
struct _LOCAL_PRINT_PROCESSOR * PLOCAL_PRINT_PROCESSOR
Definition: precomp.h:61
DWORD offMachineName
Definition: precomp.h:244
struct _MONITORUI * PMONITORUI
BOOL WriteJobShadowFile(PWSTR pwszFilePath, const PLOCAL_JOB pJob)
Definition: jobs.c:1300
DWORD * PDWORD
Definition: pedump.c:68
static LPCWSTR LPCWSTR LPCWSTR env
Definition: db.cpp:170
DWORD cbSecurityDescriptor
Definition: precomp.h:239
PLOCAL_JOB pJob
Definition: precomp.h:172
DWORD dwPagesPrinted
Definition: precomp.h:156
LPCWSTR subdir
Definition: precomp.h:323
HKEY hPrintKey
Definition: main.c:11
Definition: name.c:38
HANDLE(WINAPI * POpenPrintProcessor)(LPWSTR, PPRINTPROCESSOROPENDATA)
Definition: precomp.h:49
struct _MONITOR2 * LPMONITOR2
PLOCAL_PRINT_PROCESSOR pPrintProcessor
Definition: precomp.h:145
LPMONITOREX(WINAPI * PInitializePrintMonitor)(PWSTR)
Definition: precomp.h:51
BOOL WINAPI LocalClosePrinter(HANDLE hPrinter)
Definition: printers.c:1960
uint32_t * LPDWORD
Definition: typedefs.h:59
BOOL WINAPI LocalEnumJobs(HANDLE hPrinter, DWORD FirstJob, DWORD NoJobs, DWORD Level, PBYTE pStart, DWORD cbBuf, LPDWORD pcbNeeded, LPDWORD pcReturned)
Definition: jobs.c:1022
LONG copy_servername_from_name(LPCWSTR name, LPWSTR target)
Definition: tools.c:89
GLenum target
Definition: glext.h:7315
DWORD cbHeader
Definition: precomp.h:219
BOOL WINAPI LocalSetPort(PWSTR pName, PWSTR pPortName, DWORD dwLevel, PBYTE pPortInfo)
Definition: ports.c:460
struct _LOCAL_PRINTER_HANDLE * PLOCAL_PRINTER_HANDLE
Definition: precomp.h:63
DWORD cchSpoolDirectory
Definition: main.c:16
BOOL WINAPI LocalGetPrinter(HANDLE hPrinter, DWORD Level, LPBYTE pPrinter, DWORD cbBuf, LPDWORD pcbNeeded)
Definition: printers.c:985
WORD wUnknown1
Definition: precomp.h:221
BOOL InitializeFormList(VOID)
Definition: forms.c:228
BOOL WINAPI LocalAddJob(HANDLE hPrinter, DWORD Level, LPBYTE pData, DWORD cbBuf, LPDWORD pcbNeeded)
static HANDLE hXcv
Definition: localmon.c:73
POpenPrintProcessor pfnOpenPrintProcessor
Definition: precomp.h:108
PControlPrintProcessor pfnControlPrintProcessor
Definition: precomp.h:105
const WCHAR wszDefaultDocumentName[]
Definition: main.c:25
WCHAR * LPWSTR
Definition: xmlstorage.h:184
DWORD dwUntilTime
Definition: precomp.h:236
PLOCAL_PRINT_PROCESSOR FindPrintProcessor(PCWSTR pwszName)
PLOCAL_PRINTER pPrinter
Definition: precomp.h:171
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
Definition: twain.h:1827
struct _PRINTENV_T * PPRINTENV_T
struct _MONITOREX * LPMONITOREX
PLOCAL_PORT pPort
Definition: precomp.h:129
BOOL WINAPI LocalAddPrinterDriverEx(LPWSTR pName, DWORD level, LPBYTE pDriverInfo, DWORD dwFileCopyFlags)
BOOL WINAPI LocalEnumPrinterDrivers(PWSTR pName, PWSTR pEnvironment, DWORD Level, PBYTE pDriverInfo, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned)
BOOL WINAPI LocalDeletePort(PWSTR pName, HWND hWnd, PWSTR pPortName)
Definition: ports.c:411
PWSTR pwszStatus
Definition: precomp.h:154
BOOL WINAPI LocalEnumPorts(PWSTR pName, DWORD Level, PBYTE pPorts, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned)
Definition: ports.c:164
BYTE * PBYTE
Definition: pedump.c:66
PWSTR pwszPrinterName
Definition: precomp.h:119
BOOL(WINAPI * PClosePrintProcessor)(HANDLE)
Definition: precomp.h:45
PWSTR pwszUserName
Definition: precomp.h:148
DWORD offPrinterName
Definition: precomp.h:228
void FreeJob(PLOCAL_JOB pJob)
Definition: jobs.c:1452
DWORD offPrintProcessorParameters
Definition: precomp.h:233
BOOL WINAPI LocalCommitSpoolData(HANDLE hPrinter, DWORD cbCommit)
Definition: spoolfile.c:23
BOOL InitializePortList(void)
Definition: ports.c:60
DWORD dwJobID
Definition: precomp.h:222