GetJobAttributes function (winsplp.h)

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(
  [in]  LPWSTR            pPrinterName,
  [in]  LPDEVMODEW        pDevmode,
  [out] PATTRIBUTE_INFO_3 pAttributeInfo
);

Parameters

[in] pPrinterName

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

[in] pDevmode

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

[out] 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

Requirement Value
Target Platform Desktop
Header winsplp.h (include Winsplp.h)
Library Spoolss.lib
DLL Spoolss.dll

See also

ATTRIBUTE_INFO_3

DEVMODEW

GetJobAttributesEx