如何在控制特定于平台的注册表视图的同时删除 XP 上的注册表项
How to delete registry key on XP while having control over platform-specific view of the registry
这是以下问题的后续问题:RegDeleteKey and RegDeleteKeyEx
背景
所以,我有一个使用 RegDeleteKey function 的 C++ windows 应用程序。
但是,我需要控制注册表的 平台特定视图 。
所以,基于此:
64-bit Windows: On WOW64, 32-bit applications view a registry tree
that is separate from the registry tree that 64-bit applications view.
To enable an application to delete an entry in the alternate registry
view, use the RegDeleteKeyEx function
当您的应用程序在 Vista 及更高版本上运行时,使用 RegDeleteKeyEx function 非常好,但是 XP 呢?
问题
如何在控制 注册表的平台特定视图的同时删除 XP 上的注册表项
RegDeleteKeyEx
存在于每个具有 WOW64 64 位版本的平台上。你在那些平台上使用它。否则你可以使用 RegDeleteKey
。它不知道注册表视图并不重要,因为您不会在具有不同注册表视图的平台上调用它。
64 位 Windows 是在 XP 之后引入的。有一个 64 位版本的 XP 和一个相应的 64 位版本的 server 2003。这些是第一个提供 64 位 WOW64 的版本,并且都支持 RegDeleteKeyEx
。
这是以下问题的后续问题:RegDeleteKey and RegDeleteKeyEx
背景
所以,我有一个使用 RegDeleteKey function 的 C++ windows 应用程序。 但是,我需要控制注册表的 平台特定视图 。
所以,基于此:
64-bit Windows: On WOW64, 32-bit applications view a registry tree that is separate from the registry tree that 64-bit applications view. To enable an application to delete an entry in the alternate registry view, use the RegDeleteKeyEx function
当您的应用程序在 Vista 及更高版本上运行时,使用 RegDeleteKeyEx function 非常好,但是 XP 呢?
问题
如何在控制 注册表的平台特定视图的同时删除 XP 上的注册表项
RegDeleteKeyEx
存在于每个具有 WOW64 64 位版本的平台上。你在那些平台上使用它。否则你可以使用 RegDeleteKey
。它不知道注册表视图并不重要,因为您不会在具有不同注册表视图的平台上调用它。
64 位 Windows 是在 XP 之后引入的。有一个 64 位版本的 XP 和一个相应的 64 位版本的 server 2003。这些是第一个提供 64 位 WOW64 的版本,并且都支持 RegDeleteKeyEx
。