WdfDeviceRetrieveDeviceDirectoryString - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfdevice.h

NTSTATUS WdfDeviceRetrieveDeviceDirectoryString(
  [_In_] WDFDEVICE Device,
  [_In_] WDFSTRING String
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfdevice-wdfdeviceretrievedevicedirectorystring)

WdfDeviceRetrieveDeviceDirectoryString function

Description

[Applies to UMDF only]

WdfDeviceRetrieveDeviceDirectoryString provides a path to a location on disk that can be used to persist information across reboots.

Parameters

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.

Return value

This function returns NTSTATUS. WdfDeviceRetrieveDeviceDirectoryString returns STATUS_SUCCESS if the operation succeeds.

Remarks

UMDF only. KMDF drivers should use IoGetDeviceDirectory.

See also

For info about string objects, see Using String Objects.