WdfRegistryClose method

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

Syntax


VOID WdfRegistryClose(
  [in]  WDFKEY Key
);

Parameters

Key [in]

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

Return value

None.

A bug check occurs if the driver supplies an invalid object handle.

Remarks

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);

Requirements

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, KmdfIrql, KmdfIrql2

See also

WdfObjectDelete

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft