Expand Minimize

WdfDeviceGetAlignmentRequirement method

[Applies to KMDF only]

The WdfDeviceGetAlignmentRequirement method retrieves a device's address alignment requirement for memory transfer operations.

Syntax


ULONG WdfDeviceGetAlignmentRequirement(
  [in]  WDFDEVICE Device
);

Parameters

Device [in]

A handle to a framework device object.

Return value

WdfDeviceGetAlignmentRequirement returns the device's current alignment requirement. This value is one of the FILE_XXXX_ALIGNMENT constants that are defined in wdm.h.

A bug check occurs if the driver supplies an invalid object handle.

Examples

For a code example that uses WdfDeviceGetAlignmentRequirement, see WdfDeviceSetAlignmentRequirement.

Requirements

Minimum KMDF version

1.0

Header

Wdfdevice.h (include Wdf.h)

Library

Wdf01000.sys (see Framework Library Versioning.)

IRQL

<= DISPATCH_LEVEL

DDI compliance rules

DriverCreate, KmdfIrql, KmdfIrql2

See also

WdfDeviceSetAlignmentRequirement

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.