2015-05-06 12:47:20 +00:00
|
|
|
/*
|
2017-09-29 17:18:19 +00:00
|
|
|
* PROJECT: ReactOS Spooler API
|
|
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
2015-05-06 12:47:20 +00:00
|
|
|
* PURPOSE: Precompiled Header for all source files
|
2017-09-29 17:18:19 +00:00
|
|
|
* COPYRIGHT: Copyright 2015-2017 Colin Finck (colin@reactos.org)
|
2015-05-06 12:47:20 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PRECOMP_H
|
|
|
|
#define _PRECOMP_H
|
|
|
|
|
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
#include <winreg.h>
|
|
|
|
#include <winspool.h>
|
|
|
|
#include <winspool_c.h>
|
2018-01-17 09:13:25 +00:00
|
|
|
#include <ndk/rtlfuncs.h>
|
2015-05-06 12:47:20 +00:00
|
|
|
|
2017-04-30 15:12:53 +00:00
|
|
|
#include <spoolss.h>
|
2018-01-17 09:13:25 +00:00
|
|
|
#include <marshalling/marshalling.h>
|
2017-04-30 15:12:53 +00:00
|
|
|
|
2015-05-06 12:47:20 +00:00
|
|
|
#include <wine/debug.h>
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(winspool);
|
|
|
|
|
[LOCALSPL, WINSPOOL]
Partially implement the whole StartDocPrinter, StartPagePrinter, ReadPrinter, WritePrinter, EndPagePrinter, EndDocPrinter, ClosePrinter group of functions.
They behave very differently based on whether spooled printing is enabled, whether it's a local or remote call, etc. Most information was gained by observing callchains under Windows.
So far, only the spooled path is implemented, the others need more investigation first.
Many other TODOs remain as well, see the comments.
Also make some more comments Doxygen-aware :)
svn path=/branches/colins-printing-for-freedom/; revision=68405
2015-07-16 15:03:47 +00:00
|
|
|
// Structures
|
|
|
|
/*
|
|
|
|
* Describes a handle returned by OpenPrinterW.
|
|
|
|
*/
|
|
|
|
typedef struct _SPOOLER_HANDLE
|
|
|
|
{
|
|
|
|
BOOL bStartedDoc : 1;
|
|
|
|
DWORD dwJobID;
|
|
|
|
HANDLE hPrinter;
|
|
|
|
HANDLE hSPLFile;
|
|
|
|
}
|
|
|
|
SPOOLER_HANDLE, *PSPOOLER_HANDLE;
|
|
|
|
|
|
|
|
// main.c
|
|
|
|
extern HANDLE hProcessHeap;
|
|
|
|
|
2015-05-06 12:47:20 +00:00
|
|
|
#endif
|