您的位置:首页 > 其它

注册表中路径的写法

2013-07-06 11:47 190 查看
注册表中路径的写法

实际上,因为用户模式下的应用程序总是由某个 “ 当前用户 ” 打开的,因此在用户模 式

下可以直接访问 HKEY_CLASSES_ROOT 和 HKEY_CURRENT_USER ,但工作在内核模式

下的驱动程序不属于任何一个用户,因此不能直接访问这两个根键。

如果对象类型为注册表键,则对象名字应该起始于“\Registry”。例如:

键 名称

HKEY_USER "\Registry\User"

HKEY_LOCAL_MACHINE "\Registry\Machine"

Specifies whether Path is an absolute registry path or is relative to a predefined path as one of the following.

ValueMeaning
RTL_REGISTRY_ABSOLUTE

Path is an absolute registry path.

RTL_REGISTRY_SERVICES

Path is relative to \Registry\Machine\System\CurrentControlSet\Services.

RTL_REGISTRY_CONTROL

Path is relative to \Registry\Machine\System\CurrentControlSet\Control.

RTL_REGISTRY_WINDOWS_NT

Path is relative to \Registry\Machine\Software\Microsoft\Windows NT\CurrentVersion.

RTL_REGISTRY_DEVICEMAP

Path is relative to \Registry\Machine\Hardware\DeviceMap.

RTL_REGISTRY_USER

Path is relative to \Registry\User\CurrentUser. (For a system process, this is \Users\.Default.)

RTL_REGISTRY_OPTIONAL

Specifies that the key referenced by this parameter and the Path parameter are optional.

RTL_REGISTRY_HANDLE

Specifies that the Path parameter is actually a registry handle to use. This value is optional.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: