WdfDeviceInitSetIoInCallerContextCallback function (wdfdevice.h)

[Applies to KMDF only]

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

Syntax

void WdfDeviceInitSetIoInCallerContextCallback(
  [in] PWDFDEVICE_INIT              DeviceInit,
  [in] PFN_WDF_IO_IN_CALLER_CONTEXT EvtIoInCallerContext
);

Parameters

[in] DeviceInit

A pointer to a WDFDEVICE_INIT structure.

[in] 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

Requirement Value
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(kmdf), ControlDeviceInitAPI(kmdf), DeviceInitAPI(kmdf), DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf), PdoDeviceInitAPI(kmdf)

See also

EvtIoInCallerContext