DrvQueryDriverInfo function

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.

ValueDefinition

DRVQUERY_USERMODE

The caller is querying whether the driver executes in user mode or in kernel mode.

 

pBuffer [out]

Caller-supplied pointer to a buffer to receive requested information. The function must supply the following information:

dwMode ValuepBuffer SizeValue 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.

pcbNeeded [out]

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

Target platform

Header

Winddi.h (include Winddi.h)

 

 

Send comments about this topic to Microsoft

Show: