2015-06-05 18:16:51 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS Printing Include files
|
2017-09-29 17:18:19 +00:00
|
|
|
* LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
|
2017-05-09 15:44:42 +00:00
|
|
|
* PURPOSE: Undocumented APIs of the Spooler Router "spoolss.dll" and internally shared interfaces
|
2017-09-29 17:18:19 +00:00
|
|
|
* COPYRIGHT: Copyright 2015-2017 Colin Finck (colin@reactos.org)
|
2015-06-05 18:16:51 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _REACTOS_SPOOLSS_H
|
|
|
|
#define _REACTOS_SPOOLSS_H
|
|
|
|
|
2017-05-09 15:44:42 +00:00
|
|
|
// Constants
|
|
|
|
#define MAX_PRINTER_NAME 220
|
|
|
|
|
2015-06-24 16:26:33 +00:00
|
|
|
typedef struct _MARSHALL_DOWN_INFO
|
|
|
|
{
|
|
|
|
DWORD dwOffset; /** Byte offset of this element within the structure or MAXDWORD to indicate the end of the array */
|
|
|
|
DWORD cbSize; /** Total size of this element in bytes under Windows. Unused here, I don't know what we need this number for. */
|
|
|
|
DWORD cbPerElementSize; /** If this element is a structure itself, this field gives the size in bytes of each element of the structure.
|
|
|
|
Otherwise, this is the same as cbTotalSize. E.g. for SYSTEMTIME, cbSize would be 16 and cbPerElementSize would be 2.
|
|
|
|
Unused here, I don't know what we need this number for. */
|
|
|
|
BOOL bAdjustAddress; /** TRUE if MarshallDownStructure shall adjust the address of this element, FALSE if it shall leave this element untouched. */
|
|
|
|
}
|
|
|
|
MARSHALL_DOWN_INFO, *PMARSHALL_DOWN_INFO;
|
|
|
|
|
2017-04-30 15:12:53 +00:00
|
|
|
/** From MS-RPRN, 2.2.1.10.1 */
|
|
|
|
typedef struct _PRINTER_INFO_STRESS
|
|
|
|
{
|
|
|
|
PWSTR pPrinterName;
|
|
|
|
PWSTR pServerName;
|
|
|
|
DWORD cJobs;
|
|
|
|
DWORD cTotalJobs;
|
|
|
|
DWORD cTotalBytes;
|
|
|
|
SYSTEMTIME stUpTime;
|
|
|
|
DWORD MaxcRef;
|
|
|
|
DWORD cTotalPagesPrinted;
|
|
|
|
DWORD dwGetVersion;
|
|
|
|
DWORD fFreeBuild;
|
|
|
|
DWORD cSpooling;
|
|
|
|
DWORD cMaxSpooling;
|
|
|
|
DWORD cRef;
|
|
|
|
DWORD cErrorOutOfPaper;
|
|
|
|
DWORD cErrorNotReady;
|
|
|
|
DWORD cJobError;
|
|
|
|
DWORD dwNumberOfProcessors;
|
|
|
|
DWORD dwProcessorType;
|
|
|
|
DWORD dwHighPartTotalBytes;
|
|
|
|
DWORD cChangeID;
|
|
|
|
DWORD dwLastError;
|
|
|
|
DWORD Status;
|
|
|
|
DWORD cEnumerateNetworkPrinters;
|
|
|
|
DWORD cAddNetPrinters;
|
|
|
|
USHORT wProcessorArchitecture;
|
|
|
|
USHORT wProcessorLevel;
|
|
|
|
DWORD cRefIC;
|
|
|
|
DWORD dwReserved2;
|
|
|
|
DWORD dwReserved3;
|
|
|
|
}
|
|
|
|
PRINTER_INFO_STRESS, *PPRINTER_INFO_STRESS;
|
|
|
|
|
2017-04-13 16:48:40 +00:00
|
|
|
PVOID WINAPI AlignRpcPtr(PVOID pBuffer, PDWORD pcbBuffer);
|
2015-06-09 13:22:25 +00:00
|
|
|
PWSTR WINAPI AllocSplStr(PCWSTR pwszInput);
|
|
|
|
PVOID WINAPI DllAllocSplMem(DWORD dwBytes);
|
|
|
|
BOOL WINAPI DllFreeSplMem(PVOID pMem);
|
|
|
|
BOOL WINAPI DllFreeSplStr(PWSTR pwszString);
|
2017-04-16 14:12:01 +00:00
|
|
|
BOOL WINAPI InitializeRouter(HANDLE SpoolerStatusHandle);
|
2017-04-16 15:37:31 +00:00
|
|
|
PBYTE WINAPI PackStrings(PWSTR* pSource, PBYTE pDest, const DWORD* DestOffsets, PBYTE pEnd);
|
2015-06-09 13:22:25 +00:00
|
|
|
PVOID WINAPI ReallocSplMem(PVOID pOldMem, DWORD cbOld, DWORD cbNew);
|
|
|
|
BOOL WINAPI ReallocSplStr(PWSTR* ppwszString, PCWSTR pwszInput);
|
|
|
|
BOOL WINAPI SplInitializeWinSpoolDrv(PVOID* pTable);
|
2017-10-28 12:46:11 +00:00
|
|
|
BOOL WINAPI SpoolerInit(VOID);
|
2017-04-13 16:48:40 +00:00
|
|
|
PDWORD WINAPI UndoAlignRpcPtr(PVOID pDestinationBuffer, PVOID pSourceBuffer, DWORD cbBuffer, PDWORD pcbNeeded);
|
2015-06-05 18:16:51 +00:00
|
|
|
|
|
|
|
#endif
|