现代应用程序的注册表功能

Registry functions for modern apps

我想在 UWP 应用程序中使用像 RegCloseKey 这样的 API。

我们可以在现代应用程序中使用这些 API 吗?或者这些 API 仅适用于 win32 应用程序?

谢谢。

You can read registry values from a Win32 runFullTrust background process launched from a UWP application, and you can write values in the HKEY_LOCAL_MACHINE hive from an "elevated" Win32 application launched from that runFullTrust process.

These techniques are powerful and using them in a UWP app deployed from the Windows Store requires special scrutiny and permission from Microsoft. The techniques are used by OEMs, but not exclusively restricted to them. If you have a good reason and are able to explain it, you're likely to get approval.