// winddiui.h
typedef struct _DEVQUERYPRINT_INFO {
WORD cbSize;
WORD Level;
HANDLE hPrinter;
DEVMODE *pDevMode;
LPWSTR pszErrorStr;
DWORD cchErrorStr;
DWORD cchNeeded;
} DEVQUERYPRINT_INFO, *PDEVQUERYPRINT_INFO;
View the official Windows Driver Kit DDI referenceNo description available.
The DEVQUERYPRINT_INFO structure is used as an input parameter to a printer interface DLL's DevQueryPrintEx function.
cbSizeSpooler-supplied size, in bytes, of the DEVQUERYPRINT_INFO structure.
LevelSpooler-supplied level of the DEVQUERYPRINT_INFO structure. Currently, this member is always set to 1.
hPrinterSpooler-supplied printer handle.
pDevModeSpooler-supplied pointer to a DEVMODEW structure describing printer characteristics required by the print job.
pszErrorStrSpooler-supplied pointer to a buffer to receive a NULL-terminated error text string, if the print job cannot be printed.
cchErrorStrSpooler-supplied size, in bytes, of the string buffer pointed to by pszErrorStr.
cchNeededDriver-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.