DrvQueryDriverInfo function (winddi.h)
The DrvQueryDriverInfo function returns requested driver-specific information.
Syntax
BOOL DrvQueryDriverInfo(
DWORD dwMode,
[out] PVOID pBuffer,
DWORD cbBuf,
[out] PDWORD pcbNeeded
);
Parameters
dwMode
Caller-supplied constant value, as indicated in the following table.
Value | Definition |
---|---|
DRVQUERY_USERMODE | The caller is querying whether the driver executes in user mode or in kernel mode. |
[out] pBuffer
Caller-supplied pointer to a buffer to receive requested information. The function must supply the following information:
dwMode Value | pBuffer Size | Value supplied by DrvQueryDriverInfo |
---|---|---|
DRVQUERY_USERMODE | One DWORD | TRUE if driver executes in user mode; FALSE otherwise. |
cbBuf
Caller-supplied value representing the size, in bytes, of the buffer pointed to by pBuffer.
[out] pcbNeeded
Caller-supplied pointer to a location to receive the minimum buffer size, in bytes, required to contain the requested information.
Return value
If the operation succeeds, the function should return TRUE; otherwise it should return FALSE.
Remarks
Printer graphics DLLs that execute in user mode must export a DrvQueryDriverInfo function. If the function is not exported, the local print provider assumes the graphics DLL executes in kernel mode.
Requirements
Requirement | Value |
---|---|
Target Platform | Desktop |
Header | winddi.h (include Winddi.h) |