IRegistryKey 接口 (portcls.h)

接口 IRegistryKey 提供注册表项的抽象,微型端口驱动程序可以使用该注册表项来访问密钥及其子项。 PortCls 系统驱动程序实现此接口并将其公开给微型端口驱动程序。 微型端口驱动程序通过调用 PcNewRegistryKeyIPort::NewRegistryKey 获取对IRegistryKey对象的引用。

有关详细信息,请参阅 注册表项对象

继承

IRegistryKey 接口继承自 IUnknown 接口。 IRegistryKey 还具有以下类型的成员:

方法

IRegistryKey 接口具有这些方法。

 
IRegistryKey::D eleteKey

DeleteKey 方法删除注册表项。
IRegistryKey::EnumerateKey

EnumerateKey 方法返回有关打开键的子项的信息。
IRegistryKey::EnumerateValueKey

EnumerateValueKey 方法返回有关包含值键的注册表项的信息。
IRegistryKey::NewSubKey

NewSubKey 方法创建新的注册表子项,或在 IRegistryKey 对象表示的项下打开现有子项。
IRegistryKey::QueryKey

QueryKey 方法检索有关注册表项的信息,包括项名称、键类以及子项的数量及其大小。
IRegistryKey::QueryRegistryValues

QueryRegistryValues 方法允许调用方通过单个调用查询注册表中的多个值。
IRegistryKey::QueryValueKey

QueryValueKey 方法检索有关注册表项的值条目的信息,包括其名称、类型、数据大小和值。
IRegistryKey::SetValueKey

SetValueKey 方法替换或创建打开键下的值条目。

要求

要求
目标平台 Windows
标头 portcls.h