// wdfdevice.h
NTSTATUS WdfDeviceRetrieveDeviceDirectoryString(
[_In_] WDFDEVICE Device,
[_In_] WDFSTRING String
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to UMDF only]
WdfDeviceRetrieveDeviceDirectoryString provides a path to a location on disk that can be used to persist information across reboots.
Device [_In_]A handle to a framework device object.
String [_In_]A handle to a framework string object. The framework will assign the directory path to the string object on successful return.
This function returns NTSTATUS. WdfDeviceRetrieveDeviceDirectoryString returns STATUS_SUCCESS if the operation succeeds.
UMDF only. KMDF drivers should use IoGetDeviceDirectory.
For info about string objects, see Using String Objects.