EnumPrintProcessorDatatypes

BOOL EnumPrintProcessorDatatypes(

    LPWSTR  pName,
   LPWSTR  pPrintProcessorName,
   DWORD  Level,
   LPBYTE  pDatatypes,
   DWORD  cbBuf,
   LPDWORD  pcbNeeded,
   LPDWORD  pcReturned
  );

EnumPrintProcessorDatatypes enumerates the data types supported by a print processor.

Parameters

pName

Points to a zero-terminated string that specifies the name of the server on which the print processor is installed. If the string is null, the server is local.

pPrintProcessorName

Points to the print processor name.

Level

Specifies the version of the structure to which pDatatypes points. This value must be 1, indicating that the structure version is DATATYPES_INFO_1.

pDatatypes

Points to an array of DATATYPES_INFO_1 structures that are be written if the function succeeds.

cbBuf

Specifies the size, in bytes, of the buffer to which pDatatypes points.

pcbNeeded

Points to the location in which to return the required buffer size for the requested data. If cbBuf is too small, an error message is returned and pcbNeeded will contain the size required. If cbBuf is large enough, pcbNeeded contains the number of bytes that were copied.

pcReturned

Points to the location in which to return the number of DATATYPES_INFO_1 structures pointed to by pDatatypes.

Return Value

The function returns TRUE if it is successful. Otherwise it returns FALSE, and the logged error can be retrieved by a call to GetLastError.

Comments

EnumPrintProcessorDatatypes is called by the spooler at initialization.