RegistryView 枚举

定义

指定要在 64 位操作系统上针对的注册表视图。Specifies which registry view to target on a 64-bit operating system.

public enum class RegistryView
[System.Serializable]
public enum RegistryView
type RegistryView = 
Public Enum RegistryView
继承
RegistryView
属性

字段

Default 0

默认视图。The default view.

Registry32 512

32 位视图。The 32-bit view.

Registry64 256

64 位视图。The 64-bit view.

注解

在64位版本的 Windows 上, 将分别为32位和64位应用程序存储注册表部分。On the 64-bit version of Windows, portions of the registry are stored separately for 32-bit and 64-bit applications. 对于32位应用程序, 有32位视图, 适用于64位应用程序的64位视图。There is a 32-bit view for 32-bit applications and a 64-bit view for 64-bit applications.

当使用OpenBaseKeyOpenRemoteBaseKey(RegistryHive, String, RegistryView)方法时, 可以指定注册表视图, RegistryKeyFromHandle在对象上指定属性。You can specify a registry view when you use the OpenBaseKey and OpenRemoteBaseKey(RegistryHive, String, RegistryView) methods, and the FromHandle property on a RegistryKey object.

如果在32位操作系统上请求64位视图, 则返回的密钥将位于32位视图中。If you request a 64-bit view on a 32-bit operating system, the returned keys will be in the 32-bit view.

适用于