WdfDriverGetRegistryPath - NtDoc

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

PWSTR WdfDriverGetRegistryPath(
  [in] WDFDRIVER Driver
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfdriver-wdfdrivergetregistrypath)

WdfDriverGetRegistryPath function

Description

[Applies to KMDF and UMDF]

The WdfDriverGetRegistryPath method retrieves the path to the driver's registry key in the registry's Services tree.

Parameters

Driver [in]

A handle to the driver's framework driver object, obtained by a previous call to WdfDriverCreate or WdfGetDriver.

Return value

WdfDriverGetRegistryPath returns a pointer to a NULL-terminated Unicode string that represents the driver's registry path. A system bug check occurs if the Driver handle is invalid.

Remarks

The registry path string that WdfDriverGetRegistryPath returns is obtained from the UNICODE_STRING structure that the driver received as input to its DriverEntry routine.

For more information about the registry, see Using the Registry in Framework-Based Drivers.

Examples

The following code example obtains the path to a driver's registry key in the registry's Services tree.

PWSTR  registryPath;

registryPath = WdfDriverGetRegistryPath(driver);

See also

UNICODE_STRING

WdfDriverCreate

WdfDriverOpenParametersRegistryKey

WdfGetDriver