Expand Minimize

WdfDeviceGetCharacteristics method

[Applies to KMDF only]

The WdfDeviceGetCharacteristics method returns device characteristics for a specified device.

Syntax


ULONG WdfDeviceGetCharacteristics(
  [in]  WDFDEVICE Device
);

Parameters

Device [in]

A handle to a framework device object.

Return value

A bitwise OR of system-defined constants that represent device characteristics. For more information, see the Characteristics member of the DEVICE_OBJECT structure.

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

Examples

The following code example obtains a device's characteristics.


ULONG  deviceCharacteristics = 0L;

deviceCharacteristics = WdfDeviceGetCharacteristics(device);

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

WdfDeviceInitSetCharacteristics
WdfDeviceSetCharacteristics

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft. All rights reserved.