ReactOS  0.4.15-dev-2344-g8ddbfde
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 
29 typedef struct _MARSHALL_DOWN_INFO
30 {
37 }
39 
41 typedef struct _PRINTER_INFO_STRESS
42 {
72 }
74 
75 typedef struct _FILE_INFO_1
76 {
81 
84 PWSTR WINAPI AllocSplStr(PCWSTR pwszInput);
87 BOOL WINAPI DllFreeSplStr(PWSTR pwszString);
88 BOOL WINAPI InitializeRouter(HANDLE SpoolerStatusHandle);
89 PBYTE WINAPI PackStrings(PCWSTR* pSource, PBYTE pDest, const DWORD* DestOffsets, PBYTE pEnd);
90 PVOID WINAPI ReallocSplMem(PVOID pOldMem, DWORD cbOld, DWORD cbNew);
91 BOOL WINAPI ReallocSplStr(PWSTR* ppwszString, PCWSTR pwszInput);
92 BOOL WINAPI SeekPrinter(HANDLE hPrinter,LARGE_INTEGER liDistanceToMove,PLARGE_INTEGER pliNewPointer,DWORD dwMoveMethod,BOOL bWrite);
95 PDWORD WINAPI UndoAlignRpcPtr(PVOID pDestinationBuffer, PVOID pSourceBuffer, DWORD cbBuffer, PDWORD pcbNeeded);
96 BOOL WINAPI SplGetSpoolFileInfo(HANDLE hPrinter,HANDLE hProcessHandle,DWORD Level,FILE_INFO_1 *pFileInfo,DWORD dwSize,DWORD* dwNeeded );
97 BOOL WINAPI SplCommitSpoolData(HANDLE hPrinter,HANDLE hProcessHandle,DWORD cbCommit,DWORD Level,FILE_INFO_1 *pFileInfo,DWORD dwSize,DWORD* dwNeeded);
99 BOOL 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
const uint16_t * PCWSTR
Definition: typedefs.h:57
struct _MARSHALL_DOWN_INFO MARSHALL_DOWN_INFO
BOOL WINAPI SplInitializeWinSpoolDrv(PVOID *pTable)
Definition: main.c:205
DWORD cbPerElementSize
Definition: spoolss.h:33
BOOL WINAPI SplCommitSpoolData(HANDLE hPrinter, HANDLE hProcessHandle, DWORD cbCommit, DWORD Level, FILE_INFO_1 *pFileInfo, DWORD dwSize, DWORD *dwNeeded)
BOOL WINAPI DllFreeSplMem(PVOID pMem)
Definition: memory.c:112
HANDLE hSpoolFileHandle
Definition: spoolss.h:78
BOOL WINAPI SplCloseSpoolFileHandle(HANDLE hPrinter)
Definition: spoolfile.c:76
uint16_t * PWSTR
Definition: typedefs.h:56
DWORD dwOptions
Definition: spoolss.h:79
PVOID WINAPI AlignRpcPtr(PVOID pBuffer, PDWORD pcbBuffer)
Definition: memory.c:29
struct _FILE_INFO_1 FILE_INFO_1
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level
Definition: wmitypes.h:55
PBYTE WINAPI PackStrings(PCWSTR *pSource, PBYTE pDest, const DWORD *DestOffsets, PBYTE pEnd)
Definition: tools.c:39
PDWORD WINAPI UndoAlignRpcPtr(PVOID pDestinationBuffer, PVOID pSourceBuffer, DWORD cbBuffer, PDWORD pcbNeeded)
Definition: memory.c:239
struct _MARSHALL_DOWN_INFO * PMARSHALL_DOWN_INFO
PVOID WINAPI ReallocSplMem(PVOID pOldMem, DWORD cbOld, DWORD cbNew)
Definition: memory.c:157
BOOL WINAPI AddPortExW(LPWSTR, DWORD, LPBYTE, LPWSTR)
BOOL WINAPI InitializeRouter(HANDLE SpoolerStatusHandle)
Definition: main.c:199
USHORT wProcessorLevel
Definition: spoolss.h:68
unsigned char * LPBYTE
Definition: typedefs.h:53
unsigned int BOOL
Definition: ntddk_ex.h:94
USHORT wProcessorArchitecture
Definition: spoolss.h:67
DWORD dwHighPartTotalBytes
Definition: spoolss.h:61
BOOL WINAPI ReallocSplStr(PWSTR *ppwszString, PCWSTR pwszInput)
Definition: memory.c:195
PVOID pBuffer
SYSTEMTIME stUpTime
Definition: spoolss.h:48
DWORD cErrorOutOfPaper
Definition: spoolss.h:56
DWORD cEnumerateNetworkPrinters
Definition: spoolss.h:65
DWORD cErrorNotReady
Definition: spoolss.h:57
BOOL WINAPI GetPrinterDriverExW(HANDLE hPrinter, LPWSTR pEnvironment, DWORD Level, LPBYTE pDriverInfo, DWORD cbBuf, LPDWORD pcbNeeded, DWORD dwClientMajorVersion, DWORD dwClientMinorVersion, PDWORD pdwServerMajorVersion, PDWORD pdwServerMinorVersion)
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
struct _PRINTER_INFO_STRESS * PPRINTER_INFO_STRESS
DWORD cTotalPagesPrinted
Definition: spoolss.h:50
struct _FILE_INFO_1 * PFILE_INFO_1
BOOL WINAPI SplGetSpoolFileInfo(HANDLE hPrinter, HANDLE hProcessHandle, DWORD Level, FILE_INFO_1 *pFileInfo, DWORD dwSize, DWORD *dwNeeded)
PWSTR WINAPI AllocSplStr(PCWSTR pwszInput)
Definition: memory.c:56
struct _PRINTER_INFO_STRESS PRINTER_INFO_STRESS
DWORD dwProcessorType
Definition: spoolss.h:60
BOOL WINAPI SpoolerInit(VOID)
Definition: main.c:248
_In_ DWORD _Out_ PDWORD pcbNeeded
Definition: winddi.h:3827
unsigned short USHORT
Definition: pedump.c:61
BOOL WINAPI DllFreeSplStr(PWSTR pwszString)
Definition: memory.c:130
PVOID WINAPI DllAllocSplMem(DWORD dwBytes)
Definition: memory.c:95
DWORD * PDWORD
Definition: pedump.c:68
BOOL WINAPI SeekPrinter(HANDLE hPrinter, LARGE_INTEGER liDistanceToMove, PLARGE_INTEGER pliNewPointer, DWORD dwMoveMethod, BOOL bWrite)
Definition: printers.c:412
DWORD dwNumberOfProcessors
Definition: spoolss.h:59
DWORD cAddNetPrinters
Definition: spoolss.h:66
uint32_t * LPDWORD
Definition: typedefs.h:59
static const EHCI_PERIOD pTable[]
Definition: usbehci.c:29
WCHAR * LPWSTR
Definition: xmlstorage.h:184
BOOL bInheritHandle
Definition: spoolss.h:77
BYTE * PBYTE
Definition: pedump.c:66
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
Definition: env.c:54