GetJobAttributes function

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.

Syntax

BOOL GetJobAttributes(
  LPWSTR            pPrinterName,
  LPDEVMODEW        pDevmode,
  PATTRIBUTE_INFO_3 pAttributeInfo
);

Parameters

pPrinterName

Caller-supplied pointer to a NULL-terminated Unicode string containing the printer name.

pDevmode

Caller-supplied pointer to a DEVMODEW structure that is passed to the print processor or printer driver.

pAttributeInfo

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.

Requirements

   
Minimum supported client This function is available in Microsoft Windows Server 2003 and later operating system versions.
Target Platform Desktop
Header winsplp.h (include Winsplp.h)
Library Spoolss.lib
DLL Spoolss.dll

See Also

ATTRIBUTE_INFO_3

DEVMODEW

GetJobAttributesEx