Does KEY_WOW64_64KEY have any effect on 32 bit Windows?

后端 未结 3 833
说谎
说谎 2021-01-17 18:57

It appears that specifying the KEY_WOW64_64KEY flag (reference) when accessing a registry key under 32-bit Windows XP has no effect - that is, no error

相关标签:
3条回答
  • 2021-01-17 18:58

    Also, you should usually be avoiding this key - WOW64 provides a pretty complete "illusion" to 32-bit apps; just write your app properly on 32-bit without this flag, and it will still work on WOW64. Don't try to use this flag (and other mechanisms) to be "64-bit compatible".

    0 讨论(0)
  • 2021-01-17 19:15

    I have tested on Windows XP 32 bit, and it seems to work OK.

    0 讨论(0)
  • 2021-01-17 19:21

    I can't speak to Windows 2000 or XP, but I know that on Vista and above, KEY_WOW64_64KEY opens the registry key in the 64bit registry if it's a 64bit OS and the 32bit registry if it's a 32bit OS.

    0 讨论(0)
提交回复
热议问题