WdfRegistryClose - NtDoc

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

VOID WdfRegistryClose(
  [in] WDFKEY Key
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-wdfregistry-wdfregistryclose)

WdfRegistryClose function

Description

[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.

Parameters

Key [in]

A handle to a registry-key object that represents an opened registry key.

Remarks

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.

Examples

The following code example closes a registry key and deletes the registry-key object.

WdfRegistryClose(Key);

See also

WdfObjectDelete