bbbbee9432c97cf34ce0645f1957186e3599ca24
[reactos.git] / reactos / win32ss / printing / include / spoolss.h
1 /*
2 * PROJECT: ReactOS Printing Include files
3 * LICENSE: GNU LGPLv2 or any later version as published by the Free Software Foundation
4 * PURPOSE: Undocumented APIs of the Spooler Router "spoolss.dll"
5 * COPYRIGHT: Copyright 2015-2017 Colin Finck <colin@reactos.org>
6 */
7
8 #ifndef _REACTOS_SPOOLSS_H
9 #define _REACTOS_SPOOLSS_H
10
11 typedef struct _MARSHALL_DOWN_INFO
12 {
13 DWORD dwOffset; /** Byte offset of this element within the structure or MAXDWORD to indicate the end of the array */
14 DWORD cbSize; /** Total size of this element in bytes under Windows. Unused here, I don't know what we need this number for. */
15 DWORD cbPerElementSize; /** If this element is a structure itself, this field gives the size in bytes of each element of the structure.
16 Otherwise, this is the same as cbTotalSize. E.g. for SYSTEMTIME, cbSize would be 16 and cbPerElementSize would be 2.
17 Unused here, I don't know what we need this number for. */
18 BOOL bAdjustAddress; /** TRUE if MarshallDownStructure shall adjust the address of this element, FALSE if it shall leave this element untouched. */
19 }
20 MARSHALL_DOWN_INFO, *PMARSHALL_DOWN_INFO;
21
22 PVOID WINAPI AlignRpcPtr(PVOID pBuffer, PDWORD pcbBuffer);
23 PWSTR WINAPI AllocSplStr(PCWSTR pwszInput);
24 PVOID WINAPI DllAllocSplMem(DWORD dwBytes);
25 BOOL WINAPI DllFreeSplMem(PVOID pMem);
26 BOOL WINAPI DllFreeSplStr(PWSTR pwszString);
27 BOOL WINAPI InitializeRouter(HANDLE SpoolerStatusHandle);
28 BOOL WINAPI MarshallDownStructure(PVOID pStructure, PMARSHALL_DOWN_INFO pParameters, DWORD cbStructureSize, BOOL bSomeBoolean);
29 PBYTE WINAPI PackStrings(PWSTR* pSource, PBYTE pDest, const DWORD* DestOffsets, PBYTE pEnd);
30 PVOID WINAPI ReallocSplMem(PVOID pOldMem, DWORD cbOld, DWORD cbNew);
31 BOOL WINAPI ReallocSplStr(PWSTR* ppwszString, PCWSTR pwszInput);
32 BOOL WINAPI SplInitializeWinSpoolDrv(PVOID* pTable);
33 BOOL WINAPI SpoolerInit();
34 PDWORD WINAPI UndoAlignRpcPtr(PVOID pDestinationBuffer, PVOID pSourceBuffer, DWORD cbBuffer, PDWORD pcbNeeded);
35
36 #endif