ReactOS 0.4.16-dev-297-gc569aee
spoolss.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS Printing Include files
3 * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4 * PURPOSE: Undocumented APIs of the Spooler Router "spoolss.dll" and internally shared interfaces
5 * COPYRIGHT: Copyright 2015-2017 Colin Finck (colin@reactos.org)
6 */
7
8#ifndef _REACTOS_SPOOLSS_H
9#define _REACTOS_SPOOLSS_H
10
11#define RESETPRINTERDEFAULTDATATYPE 0x0001
12#define RESETPRINTERDEFAULTDEVMODE 0x0002
13
14#define PORT_IS_UNKNOWN 0
15#define PORT_IS_LPT 1
16#define PORT_IS_COM 2
17#define PORT_IS_FILE 3
18#define PORT_IS_FILENAME 4
19#define PORT_IS_WINE 5
20#define PORT_IS_UNIXNAME 5
21#define PORT_IS_PIPE 6
22#define PORT_IS_VNET 7
23#define PORT_IS_XPS 8
24
25
26// Constants
27#define MAX_PRINTER_NAME 220
28
29typedef struct _MARSHALL_DOWN_INFO
30{
37}
39
42{
72}
74
75typedef struct _FILE_INFO_1
76{
81
87BOOL WINAPI DllFreeSplStr(PWSTR pwszString);
88BOOL WINAPI InitializeRouter(HANDLE SpoolerStatusHandle);
89PBYTE WINAPI PackStrings(PCWSTR* pSource, PBYTE pDest, const DWORD* DestOffsets, PBYTE pEnd);
90PVOID WINAPI ReallocSplMem(PVOID pOldMem, DWORD cbOld, DWORD cbNew);
91BOOL WINAPI ReallocSplStr(PWSTR* ppwszString, PCWSTR pwszInput);
92BOOL WINAPI SeekPrinter(HANDLE hPrinter,LARGE_INTEGER liDistanceToMove,PLARGE_INTEGER pliNewPointer,DWORD dwMoveMethod,BOOL bWrite);
95PDWORD WINAPI UndoAlignRpcPtr(PVOID pDestinationBuffer, PVOID pSourceBuffer, DWORD cbBuffer, PDWORD pcbNeeded);
96BOOL WINAPI SplGetSpoolFileInfo(HANDLE hPrinter,HANDLE hProcessHandle,DWORD Level,FILE_INFO_1 *pFileInfo,DWORD dwSize,DWORD* dwNeeded );
97BOOL WINAPI SplCommitSpoolData(HANDLE hPrinter,HANDLE hProcessHandle,DWORD cbCommit,DWORD Level,FILE_INFO_1 *pFileInfo,DWORD dwSize,DWORD* dwNeeded);
99BOOL WINAPI GetPrinterDriverExW(HANDLE hPrinter,LPWSTR pEnvironment,DWORD Level,LPBYTE pDriverInfo,DWORD cbBuf,LPDWORD pcbNeeded,DWORD dwClientMajorVersion,DWORD dwClientMinorVersion,PDWORD pdwServerMajorVersion,PDWORD pdwServerMinorVersion );
100
101#endif
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:56
BYTE * PBYTE
Definition: pedump.c:66
DWORD * PDWORD
Definition: pedump.c:68
unsigned short USHORT
Definition: pedump.c:61
PVOID pBuffer
BOOL WINAPI GetPrinterDriverExW(HANDLE hPrinter, LPWSTR pEnvironment, DWORD Level, LPBYTE pDriverInfo, DWORD cbBuf, LPDWORD pcbNeeded, DWORD dwClientMajorVersion, DWORD dwClientMinorVersion, PDWORD pdwServerMajorVersion, PDWORD pdwServerMinorVersion)
BOOL WINAPI SplGetSpoolFileInfo(HANDLE hPrinter, HANDLE hProcessHandle, DWORD Level, FILE_INFO_1 *pFileInfo, DWORD dwSize, DWORD *dwNeeded)
BOOL WINAPI DllFreeSplMem(PVOID pMem)
Definition: memory.c:112
PVOID WINAPI ReallocSplMem(PVOID pOldMem, DWORD cbOld, DWORD cbNew)
Definition: memory.c:157
BOOL WINAPI AddPortExW(LPWSTR, DWORD, LPBYTE, LPWSTR)
BOOL WINAPI SplInitializeWinSpoolDrv(PVOID *pTable)
Definition: main.c:205
struct _FILE_INFO_1 * PFILE_INFO_1
struct _PRINTER_INFO_STRESS PRINTER_INFO_STRESS
PVOID WINAPI AlignRpcPtr(PVOID pBuffer, PDWORD pcbBuffer)
Definition: memory.c:29
PBYTE WINAPI PackStrings(PCWSTR *pSource, PBYTE pDest, const DWORD *DestOffsets, PBYTE pEnd)
Definition: tools.c:39
struct _MARSHALL_DOWN_INFO MARSHALL_DOWN_INFO
BOOL WINAPI InitializeRouter(HANDLE SpoolerStatusHandle)
Definition: main.c:199
PVOID WINAPI DllAllocSplMem(DWORD dwBytes)
Definition: memory.c:95
BOOL WINAPI SpoolerInit(VOID)
Definition: main.c:248
struct _PRINTER_INFO_STRESS * PPRINTER_INFO_STRESS
BOOL WINAPI DllFreeSplStr(PWSTR pwszString)
Definition: memory.c:130
BOOL WINAPI SplCommitSpoolData(HANDLE hPrinter, HANDLE hProcessHandle, DWORD cbCommit, DWORD Level, FILE_INFO_1 *pFileInfo, DWORD dwSize, DWORD *dwNeeded)
PWSTR WINAPI AllocSplStr(PCWSTR pwszInput)
Definition: memory.c:56
PDWORD WINAPI UndoAlignRpcPtr(PVOID pDestinationBuffer, PVOID pSourceBuffer, DWORD cbBuffer, PDWORD pcbNeeded)
Definition: memory.c:239
BOOL WINAPI SplCloseSpoolFileHandle(HANDLE hPrinter)
Definition: spoolfile.c:76
struct _FILE_INFO_1 FILE_INFO_1
struct _MARSHALL_DOWN_INFO * PMARSHALL_DOWN_INFO
BOOL WINAPI ReallocSplStr(PWSTR *ppwszString, PCWSTR pwszInput)
Definition: memory.c:195
BOOL WINAPI SeekPrinter(HANDLE hPrinter, LARGE_INTEGER liDistanceToMove, PLARGE_INTEGER pliNewPointer, DWORD dwMoveMethod, BOOL bWrite)
Definition: printers.c:412
HANDLE hSpoolFileHandle
Definition: spoolss.h:78
DWORD dwOptions
Definition: spoolss.h:79
BOOL bInheritHandle
Definition: spoolss.h:77
DWORD cbPerElementSize
Definition: spoolss.h:33
USHORT wProcessorArchitecture
Definition: spoolss.h:67
DWORD cEnumerateNetworkPrinters
Definition: spoolss.h:65
DWORD dwProcessorType
Definition: spoolss.h:60
DWORD cErrorOutOfPaper
Definition: spoolss.h:56
USHORT wProcessorLevel
Definition: spoolss.h:68
SYSTEMTIME stUpTime
Definition: spoolss.h:48
DWORD cTotalPagesPrinted
Definition: spoolss.h:50
DWORD dwHighPartTotalBytes
Definition: spoolss.h:61
DWORD cErrorNotReady
Definition: spoolss.h:57
DWORD dwNumberOfProcessors
Definition: spoolss.h:59
DWORD cAddNetPrinters
Definition: spoolss.h:66
uint16_t * PWSTR
Definition: typedefs.h:56
const uint16_t * PCWSTR
Definition: typedefs.h:57
unsigned char * LPBYTE
Definition: typedefs.h:53
uint32_t * LPDWORD
Definition: typedefs.h:59
static const EHCI_PERIOD pTable[]
Definition: usbehci.c:29
_In_ DWORD _Out_ PDWORD pcbNeeded
Definition: winddi.h:3828
#define WINAPI
Definition: msvc.h:6
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:56
WCHAR * LPWSTR
Definition: xmlstorage.h:184