typedef struct _DEVQUERYPRINT_INFO {
WORD cbSize;
WORD Level;
HANDLE hPrinter;
PDEVMODE pDevMode;
LPTSTR pszErrorStr;
DWORD cchErrorStr;
DWORD cchNeeded;
} DEVQUERYPRINT_INFO, *PDEVQUERYPRINT_INFO;
The DEVQUERYPRINT_INFO structure contains information required by the driver's DevQueryPrintEx function to determine whether a print job is printable.
Members
cbSize
Specifies the size in bytes of this structure.
Level
Specifies the level of this structure. Currently, this member is always set to 1.
hPrinter
Handle to the printer on which the query is to be made.
pDevMode
Pointer to the DEVMODE structure that describes the job to be printed.
pszErrorStr
Pointer to a buffer in which a null-terminated error string can be returned if the driver determines that the job is unprintable.
cchErrorStr
Specifies the size in bytes of the string buffer pointed to by pszErrorStr.
cchNeeded
Specifies the size, in bytes, of the error string returned in the buffer to which pszErrorStr points if the buffer is large enough to hold the entire string. If the supplied buffer is too small, cchNeeded specifies the buffer size required for the entire error string. In this situation, the driver should truncate the error string to fit the supplied buffer.