WdfRegistryClose function (wdfregistry.h)
[Applies to KMDF and UMDF]
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
);
[in] Key
A handle to a registry-key object that represents an opened registry key.
None
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.
WdfRegistryClose(Key);
Requirement | Value |
---|---|
Target Platform | Universal |
Minimum KMDF version | 1.0 |
Minimum UMDF version | 2.0 |
Header | wdfregistry.h (include Wdf.h) |
Library | Wdf01000.sys (KMDF); WUDFx02000.dll (UMDF) |
IRQL | PASSIVE_LEVEL |
DDI compliance rules | DriverCreate(kmdf), KmdfIrql(kmdf), KmdfIrql2(kmdf), KmdfIrqlExplicit(kmdf) |