The WdfRegistryClose method closes the registry key that is associated with a specified framework registry-key object and then deletes the registry-key object.
VOID WdfRegistryClose( [in] WDFKEY Key );
- Key [in]
A handle to a registry-key object that represents an opened registry key.
A bug check occurs if the driver supplies an invalid object handle.
After your driver has finished accessing a registry key, it must call WdfRegistryClose or WdfObjectDelete. Both of these methods close the registry key and delete the registry-key object.
For more information about registry-key objects, see Using the Registry in Framework-Based Drivers.
The following code example closes a registry key and deletes the registry-key object.
|Available in version 1.0 and later versions of KMDF.|
|Wdf<MajorVersionNumber>000.sys (see Framework Library Versions.)|