35 TRACE(
"ClosePrintProcessor(%p)\n", hPrintProcessor);
71 TRACE(
"ControlPrintProcessor(%p, %lu)\n", hPrintProcessor,
Command);
114 DWORD dwDatatypeCount = 0;
117 PDWORD pCurrentOffset = dwOffsets;
119 TRACE(
"EnumPrintProcessorDatatypesW(%S, %S, %lu, %p, %lu, %p, %p)\n",
pName, pPrintProcessorName,
Level, pDatatypes, cbBuf,
pcbNeeded, pcReturned);
129 for (pCurrentDatatype =
_pwszDatatypes; *pCurrentDatatype; pCurrentDatatype++)
131 cbDatatype = (
wcslen(*pCurrentDatatype) + 1) *
sizeof(
WCHAR);
159 *pcReturned = dwDatatypeCount;
195 TRACE(
"OpenPrintProcessor(%S, %p)\n", pPrinterName, pPrintProcessorOpenData);
199 if (!pPrintProcessorOpenData || !pPrintProcessorOpenData->
pDatatype || !*pPrintProcessorOpenData->
pDatatype)
228 hReturnValue = pHandle;
260 TRACE(
"PrintDocumentOnPrintProcessor(%p, %S)\n", hPrintProcessor, pDocumentName);
263 if (!hPrintProcessor)
#define ERROR_INSUFFICIENT_BUFFER
#define ERROR_INVALID_PARAMETER
#define ERROR_INVALID_HANDLE
static const WCHAR Cleanup[]
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
_Check_return_ _CRTIMP int __cdecl _wcsicmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
enum _WINPRINT_HANDLE::@5124 Datatype
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
#define FIELD_OFFSET(t, f)
BOOL WINAPI DllFreeSplMem(PVOID pMem)
PVOID WINAPI DllAllocSplMem(DWORD dwBytes)
BOOL WINAPI DllFreeSplStr(PWSTR pwszString)
PWSTR WINAPI AllocSplStr(PCWSTR pwszInput)
BOOL WINAPI EnumPrintProcessorDatatypesW(PWSTR pName, PWSTR pPrintProcessorName, DWORD Level, PBYTE pDatatypes, DWORD cbBuf, PDWORD pcbNeeded, PDWORD pcReturned)
static PCWSTR _pwszDatatypes[]
BOOL WINAPI PrintDocumentOnPrintProcessor(HANDLE hPrintProcessor, PWSTR pDocumentName)
BOOL WINAPI ControlPrintProcessor(HANDLE hPrintProcessor, DWORD Command)
HANDLE WINAPI OpenPrintProcessor(PWSTR pPrinterName, PPRINTPROCESSOROPENDATA pPrintProcessorOpenData)
BOOL WINAPI ClosePrintProcessor(HANDLE hPrintProcessor)
DWORD WINAPI GetPrintProcessorCapabilities(PWSTR pValueName, DWORD dwAttributes, PBYTE pData, DWORD nSize, PDWORD pcbNeeded)
DWORD PrintRawJob(PWINPRINT_HANDLE pHandle, PWSTR pwszPrinterAndJob)
struct _WINPRINT_HANDLE * PWINPRINT_HANDLE
*nSize LPSTR _Inout_ LPDWORD nSize
_In_ DWORD _Out_ PDWORD pcbNeeded
#define ERROR_INVALID_DATATYPE
struct _DATATYPES_INFO_1W DATATYPES_INFO_1W
_IRQL_requires_same_ typedef _In_ ULONG _In_ UCHAR Level