WdfDeviceGetDeviceStackIoType - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfdevice.h

VOID WdfDeviceGetDeviceStackIoType(
  [in]  WDFDEVICE          Device,
  [out] WDF_DEVICE_IO_TYPE *ReadWriteIoType,
  [out] WDF_DEVICE_IO_TYPE *IoControlIoType
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfdevice-wdfdevicegetdevicestackiotype)

WdfDeviceGetDeviceStackIoType function

Description

[Applies to UMDF only]

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

Parameters

Device [in]

A handle to a framework device object.

ReadWriteIoType [out]

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

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.

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.

See also

WdfDeviceInitSetIoTypeEx