WdfDeviceGetDeviceStackIoType function

[Applies to UMDF only]

The WdfDeviceGetDeviceStackIoType method retrieves the buffer access methods that the framework is using for a device.

Syntax

void WdfDeviceGetDeviceStackIoType(
  WDFDEVICE          Device,
  WDF_DEVICE_IO_TYPE *ReadWriteIoType,
  WDF_DEVICE_IO_TYPE *IoControlIoType
);

Parameters

Device

A handle to a framework device object.

ReadWriteIoType

A pointer to a driver-allocated location that receives a WDF_DEVICE_IO_TYPE-typed value. This value identifies the buffer access method that the framework is using for a device's read and write requests.

IoControlIoType

A pointer to a driver-allocated location that receives a WDF_DEVICE_IO_TYPE-typed value. This value that identifies the buffer access method that the framework is using for a device's I/O control requests.

Return Value

This method does not return a value.

Remarks

If your driver calls WdfDeviceGetDeviceStackIoType before the PnP manager has loaded all of the device's drivers, the values that WdfDeviceGetDeviceStackIoType retrieves might not be the values that it actually uses.

For more information about how the framework chooses a buffer access method, see Managing Buffer Access Methods in UMDF Drivers.

Requirements

   
Minimum supported client Windows 8.1
Target Platform Universal
Minimum UMDF version 2.0
Header wdfdevice.h (include Wdf.h)
Library WUDFx02000.lib
DLL WUDFx02000.dll
IRQL PASSIVE_LEVEL

See Also

WdfDeviceInitSetIoTypeEx