// wdfdriver.h
PWSTR WdfDriverGetRegistryPath(
[in] WDFDRIVER Driver
);
View the official Windows Driver Kit DDI referenceNo description available.
[Applies to KMDF and UMDF]
The WdfDriverGetRegistryPath method retrieves the path to the driver's registry key in the registry's Services tree.
Driver [in]A handle to the driver's framework driver object, obtained by a previous call to WdfDriverCreate or WdfGetDriver.
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.
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.
The following code example obtains the path to a driver's registry key in the registry's Services tree.
PWSTR registryPath;
registryPath = WdfDriverGetRegistryPath(driver);
WdfDriverOpenParametersRegistryKey