GetJobAttributes - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// winsplp.h

BOOL GetJobAttributes(
  [in]  LPWSTR            pPrinterName,
  [in]  LPDEVMODEW        pDevmode,
  [out] PATTRIBUTE_INFO_3 pAttributeInfo
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-winsplp-getjobattributes)

Description

[!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.

Parameters

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.

Return value

GetJobAttributes returns TRUE if it is successful in obtaining the print job attributes; otherwise it returns FALSE.

See also

ATTRIBUTE_INFO_3

DEVMODEW

GetJobAttributesEx