2 * PROJECT: ReactOS Spooler API
3 * LICENSE: GNU LGPL v2.1 or any later version as published by the Free Software Foundation
4 * PURPOSE: Functions related to Print Processors
5 * COPYRIGHT: Copyright 2015 Colin Finck <colin@reactos.org>
11 EnumPrintProcessorDatatypesA(LPSTR pName
, LPSTR pPrintProcessorName
, DWORD Level
, LPBYTE pDatatypes
, DWORD cbBuf
, LPDWORD pcbNeeded
, LPDWORD pcReturned
)
17 EnumPrintProcessorDatatypesW(LPWSTR pName
, LPWSTR pPrintProcessorName
, DWORD Level
, LPBYTE pDatatypes
, DWORD cbBuf
, LPDWORD pcbNeeded
, LPDWORD pcReturned
)
19 BOOL bReturnValue
= FALSE
;
25 dwErrorCode
= _RpcEnumPrintProcessorDatatypes(pName
, pPrintProcessorName
, Level
, pDatatypes
, cbBuf
, pcbNeeded
, pcReturned
);
26 SetLastError(dwErrorCode
);
27 bReturnValue
= (dwErrorCode
== ERROR_SUCCESS
);
29 RpcExcept(EXCEPTION_EXECUTE_HANDLER
)
31 ERR("_RpcEnumPrintProcessorDatatypes failed with exception code %lu!\n", RpcExceptionCode());
39 EnumPrintProcessorsW(LPWSTR pName
, LPWSTR pEnvironment
, DWORD Level
, LPBYTE pPrintProcessorInfo
, DWORD cbBuf
, LPDWORD pcbNeeded
, LPDWORD pcReturned
)
41 BOOL bReturnValue
= FALSE
;
47 dwErrorCode
= _RpcEnumPrintProcessors(pName
, pEnvironment
, Level
, pPrintProcessorInfo
, cbBuf
, pcbNeeded
, pcReturned
);
48 SetLastError(dwErrorCode
);
49 bReturnValue
= (dwErrorCode
== ERROR_SUCCESS
);
51 RpcExcept(EXCEPTION_EXECUTE_HANDLER
)
53 ERR("_RpcEnumPrintProcessors failed with exception code %lu!\n", RpcExceptionCode());
61 GetPrintProcessorDirectoryW(LPWSTR pName
, LPWSTR pEnvironment
, DWORD Level
, LPBYTE pPrintProcessorInfo
, DWORD cbBuf
, LPDWORD pcbNeeded
)
63 BOOL bReturnValue
= FALSE
;
69 dwErrorCode
= _RpcGetPrintProcessorDirectory(pName
, pEnvironment
, Level
, pPrintProcessorInfo
, cbBuf
, pcbNeeded
);
70 SetLastError(dwErrorCode
);
71 bReturnValue
= (dwErrorCode
== ERROR_SUCCESS
);
73 RpcExcept(EXCEPTION_EXECUTE_HANDLER
)
75 ERR("_RpcGetPrintProcessorDirectory failed with exception code %lu!\n", RpcExceptionCode());