GetJobNamedPropertyValue function

Retrieves the value of the named property for the specified print job on the specified printer.

Syntax

DWORD GetJobNamedPropertyValue(
  HANDLE             hPrinter,
  DWORD              JobId,
  PCWSTR             pszName,
  PrintPropertyValue *pValue
);

Parameters

hPrinter

A handle to the printer object of interest. Use the OpenPrinter, OpenPrinter2, or the AddPrinter function to retrieve a printer handle.

JobId

Identifier that specifies the print job. You obtain a print job identifier by calling the AddJob function or the StartDoc function.

pszName

Name of the property whose value will be retrieved.

pValue

Value of the named property. The caller needs to free this using the FreePrintPropertyValue function.

Return Value

If the operation succeeds, the function returns ERROR_SUCCESS.

Requirements

   
Target Platform Desktop
Header winspool.h (include Winspool.h)
Library WinSpool.lib
DLL Spoolss.dll; WinSpool.drv