WdfDeviceGetDriver function (wdfdevice.h)

[Applies to KMDF and UMDF]

The WdfDeviceGetDriver method returns a handle to the framework driver object that is associated with a specified framework device object.

Syntax

WDFDRIVER WdfDeviceGetDriver(
  WDFDEVICE Device
);

Parameters

Device

[in] A handle to a framework device object.

Return value

WdfDeviceGetDriver returns a handle to a framework driver object.

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

Requirements

   
Target Platform Universal
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfdevice.h (include Wdf.h)
Library Wdf01000.sys (KMDF); WUDFx02000.dll (UMDF)
IRQL <= DISPATCH_LEVEL
DDI compliance rules DriverCreate, KmdfIrql, KmdfIrql2

See also

WdfDriverGetRegistryPath