DEVQUERYPRINT_INFO structure (winddiui.h)

The DEVQUERYPRINT_INFO structure is used as an input parameter to a printer interface DLL's DevQueryPrintEx function.

Syntax

typedef struct _DEVQUERYPRINT_INFO {
  WORD    cbSize;
  WORD    Level;
  HANDLE  hPrinter;
  DEVMODE *pDevMode;
  LPWSTR  pszErrorStr;
  DWORD   cchErrorStr;
  DWORD   cchNeeded;
} DEVQUERYPRINT_INFO, *PDEVQUERYPRINT_INFO;

Members

cbSize

Spooler-supplied size, in bytes, of the DEVQUERYPRINT_INFO structure.

Level

Spooler-supplied level of the DEVQUERYPRINT_INFO structure. Currently, this member is always set to 1.

hPrinter

Spooler-supplied printer handle.

pDevMode

Spooler-supplied pointer to a DEVMODEW structure describing printer characteristics required by the print job.

pszErrorStr

Spooler-supplied pointer to a buffer to receive a NULL-terminated error text string, if the print job cannot be printed.

cchErrorStr

Spooler-supplied size, in bytes, of the string buffer pointed to by pszErrorStr.

cchNeeded

Driver-supplied length, in bytes, of the error string supplied in the buffer pointed to by pszErrorStr. If the string is too large to fit in the buffer, the string should be truncated, but the untruncated length should be specified here.

Requirements

Requirement Value
Header winddiui.h (include Winddiui.h)

See also

DevQueryPrintEx