// wdfdevice.h
WDFDRIVER WdfDeviceGetDriver(
[in] WDFDEVICE Device
);
View the official Windows Driver Kit DDI referenceNo description available.
[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.
Device [in]A handle to a framework device object.
WdfDeviceGetDriver returns a handle to a framework driver object.
A bug check occurs if the driver supplies an invalid object handle.