The EnumPrintProcessorDatatypes function enumerates the data types that a specifed print processor supports.
BOOL EnumPrintProcessorDatatypes(
LPTSTR pName, // points to server name string
LPTSTR pPrintProcessorName,
// points to print processor name string
DWORD Level, // specifies version of print processor data
// type structures
LPBYTE pDatatypes, // points to buffer to receive print processor
// data type structures
DWORD cbBuf, // specifies size, in bytes, of buffer
LPDWORD pcbNeeded, // points to number of bytes copied (or
// required)
LPDWORD pcReturned // points to number of data structures obtained
);
If this value is less than or equal to cbBuf and the function succeeds, this is the number of bytes stored in the buffer pointed to by pDatatypes. If this number is greater than cbBuf, the buffer is too small, and you must call the function again with a buffer size at least as large as *pcbNeeded.
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Windows NT: Requires version 3.5 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winspool.h.
Import Library: Use winspool.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT.
Printing and Print Spooler Overview, Printing and Print Spooler Functions, DATATYPES_INFO_1, EnumPrintProcessors