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 方法替换或创建打开键下的值项。

要求

要求 价值
目标平台 窗户
标头 portcls.h