- HKCR, // classes root
-#ifdef __WIN32__
- HKCU, // current user
- HKLM, // local machine
- HKUSR, // users
- HKPD, // performance data (@@ NT only?)
-#if WINVER >= 0x0400
- HKCC, // current config
- HKDD, // dynamic data
-#endif // Winver
-#endif // Win32/16
+ HKCR, // classes root
+ HKCU, // current user
+ HKLM, // local machine
+ HKUSR, // users
+ HKPD, // performance data (WinNT/2K only)
+ HKCC, // current config
+ HKDD, // dynamic data (Win95/98 only)
+ HKMAX
+ };
+
+ // access mode for the key
+ enum AccessMode
+ {
+ Read, // read-only
+ Write // read and write
+ };
+
+ // Different registry views supported under WOW64.
+ enum WOW64ViewMode
+ {
+ // 32 bit registry for 32 bit applications, 64 bit registry
+ // for 64 bit ones.
+ WOW64ViewMode_Default,
+
+ // Can be used in 64 bit apps to access 32 bit registry,
+ // has no effect (i.e. treated as default) in 32 bit apps.
+ WOW64ViewMode_32,
+
+ // Can be used in 32 bit apps to access 64 bit registry,
+ // has no effect (i.e. treated as default) in 64 bit apps.
+ WOW64ViewMode_64