信息
您所需的主题如下所示。但此主题未包含在此库中。

WdfRegistryClose 方法

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.

返回值

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

要求

版本

Available in version 1.0 and later versions of KMDF.

标头

Wdfregistry.h (包括Wdf.h)

Wdf<MajorVersionNumber>000.sys (see Framework Library Versions.)

IRQL

PASSIVE_LEVEL

另请参见

WdfObjectDelete

 

 

社区附加资源

显示:
© 2014 Microsoft