WDF_QUERY_INTERFACE_CONFIG_INIT function (wdfqueryinterface.h)

[Applies to KMDF only]

The WDF_QUERY_INTERFACE_CONFIG_INIT function initializes a driver's WDF_QUERY_INTERFACE_CONFIG structure.

Syntax

void WDF_QUERY_INTERFACE_CONFIG_INIT(
  [out]          PWDF_QUERY_INTERFACE_CONFIG                    InterfaceConfig,
  [in]           PINTERFACE                                     Interface,
  [in]           const GUID                                     *InterfaceType,
  [in, optional] PFN_WDF_DEVICE_PROCESS_QUERY_INTERFACE_REQUEST EvtDeviceProcessQueryInterfaceRequest
);

Parameters

[out] InterfaceConfig

A pointer to the driver's WDF_QUERY_INTERFACE_CONFIG structure.

[in] Interface

A pointer to an INTERFACE structure.

[in] InterfaceType

A pointer to the GUID that identifies the interface.

[in, optional] EvtDeviceProcessQueryInterfaceRequest

A pointer to the driver's EvtDeviceProcessQueryInterfaceRequest event callback function, which is called when another driver requests the interface.

Return value

None

Remarks

For more information about driver-defined interfaces, see Using Driver-Defined Interfaces.

Examples

For a code example that uses WDF_QUERY_INTERFACE_CONFIG_INIT, see WdfDeviceAddQueryInterface.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Header wdfqueryinterface.h (include Wdf.h)

See also

EvtDeviceProcessQueryInterfaceRequest

INTERFACE

WDF_QUERY_INTERFACE_CONFIG