// winsplp.h
BOOL GetJobAttributes(
[in] LPWSTR pPrinterName,
[in] LPDEVMODEW pDevmode,
[out] PATTRIBUTE_INFO_3 pAttributeInfo
);
View the official Windows Driver Kit DDI referenceNo description available.
[!WARNING] Starting with Windows 10, the APIs which support third-party print providers are deprecated. Microsoft does not recommend any investment into third-party print providers. Additionally, on Windows 8 and newer products where the v4 print driver model is available, third-party print providers may not create or manage queues which use v4 print drivers.
A print provider's GetJobAttributes function gets information about a print job.
pPrinterName [in]Caller-supplied pointer to a NULL-terminated Unicode string containing the printer name.
pDevmode [in]Caller-supplied pointer to a DEVMODEW structure that is passed to the print processor or printer driver.
pAttributeInfo [out]Caller-supplied pointer to an ATTRIBUTE_INFO_3 structure that receives information about the print job.
GetJobAttributes returns TRUE if it is successful in obtaining the print job attributes; otherwise it returns FALSE.