WdfDeviceInitSetIoInCallerContextCallback method
[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
- DeviceInit [in]
-
A pointer to a WDFDEVICE_INIT structure.
- EvtIoInCallerContext [in]
-
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
Minimum KMDF version | 1.0 |
---|---|
Header |
|
Library |
|
IRQL | <= DISPATCH_LEVEL |
DDI compliance rules | ChildDeviceInitAPI, ControlDeviceInitAPI, DeviceInitAPI, DriverCreate, KmdfIrql, KmdfIrql2, PdoDeviceInitAPI |
See also
Show: