WdfDeviceInitSetIoInCallerContextCallback function

[Applies to KMDF only]

The WdfDeviceInitSetIoInCallerContextCallback method registers a driver's EvtIoInCallerContext event callback function.

Syntax

void WdfDeviceInitSetIoInCallerContextCallback(
  PWDFDEVICE_INIT              DeviceInit,
  PFN_WDF_IO_IN_CALLER_CONTEXT EvtIoInCallerContext
);

Parameters

DeviceInit

A pointer to a WDFDEVICE_INIT structure.

EvtIoInCallerContext

A pointer to the driver's EvtIoInCallerContext callback function.

Return Value

None

Remarks

If a driver calls WdfDeviceInitSetIoInCallerContextCallback, it must do so before it calls WdfDeviceCreate. For more information about calling WdfDeviceCreate, see Creating a Framework Device Object.

For more information about the EvtIoInCallerContext event callback function, see Intercepting an I/O Request before it is Queued.

Examples

The following code example registers a driver's EvtIoInCallerContext event callback function.

WdfDeviceInitSetIoInCallerContextCallback(
                                          DeviceInit, 
                                          MyEvtIoInCallerContext
                                          );

Requirements

   
Target Platform Universal
Minimum KMDF version 1.0
Header wdfdevice.h (include Wdf.h)
Library Wdf01000.sys (see Framework Library Versioning.)
IRQL "<= DISPATCH_LEVEL"
DDI compliance rules ChildDeviceInitAPI, ControlDeviceInitAPI, DeviceInitAPI, DriverCreate, KmdfIrql, KmdfIrql2, PdoDeviceInitAPI

See Also

EvtIoInCallerContext