mirror of
https://github.com/reactos/reactos.git
synced 2024-09-08 11:50:08 +00:00
![James Tabor](/assets/img/avatar_default.png)
WinSpool : Implement missing API. Sync/Port from wine. Setting it to fast track for needed testing of the later GDI code. Leaving Fix-me debug prints on. Local tree has WinSpool_winetest turned on. So no debug noise during normal ReactOS operation. SpoolSS : Reordered header types. Have more Spl function to be added while SpoolSV is being coded to forward to LocalSpl. Based on wine and old research from the GDI code.
56 lines
1.5 KiB
C
56 lines
1.5 KiB
C
/*
|
|
* PROJECT: ReactOS Spooler Router
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
|
* PURPOSE: Precompiled Header for all source files
|
|
* COPYRIGHT: Copyright 2015 Colin Finck (colin@reactos.org)
|
|
*/
|
|
|
|
#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 <winsplp.h>
|
|
#include <ndk/rtlfuncs.h>
|
|
|
|
#include <spoolss.h>
|
|
#include <marshalling/marshalling.h>
|
|
|
|
#include <wine/debug.h>
|
|
WINE_DEFAULT_DEBUG_CHANNEL(spoolss);
|
|
|
|
// Function pointers
|
|
typedef BOOL (WINAPI *PInitializePrintProvidor)(LPPRINTPROVIDOR, DWORD, LPWSTR);
|
|
|
|
// Structures
|
|
/**
|
|
* Describes a Print Provider.
|
|
*/
|
|
typedef struct _SPOOLSS_PRINT_PROVIDER
|
|
{
|
|
LIST_ENTRY Entry;
|
|
PRINTPROVIDOR PrintProvider;
|
|
}
|
|
SPOOLSS_PRINT_PROVIDER, *PSPOOLSS_PRINT_PROVIDER;
|
|
|
|
/*
|
|
* Describes a handle returned by OpenPrinterW.
|
|
* We can't just pass the handle returned by the Print Provider, because spoolss has to remember which Print Provider opened this handle.
|
|
*/
|
|
typedef struct _SPOOLSS_PRINTER_HANDLE
|
|
{
|
|
PSPOOLSS_PRINT_PROVIDER pPrintProvider; /** Pointer to the Print Provider that opened this printer. */
|
|
HANDLE hPrinter; /** The handle returned by fpOpenPrinter of the Print Provider and passed to subsequent Print Provider functions. */
|
|
}
|
|
SPOOLSS_PRINTER_HANDLE, *PSPOOLSS_PRINTER_HANDLE;
|
|
|
|
// main.c
|
|
extern HANDLE hProcessHeap;
|
|
extern LIST_ENTRY PrintProviderList;
|
|
|
|
#endif
|