跨设备同步 Desktop App Converter 应用程序设置

Synchronizing Desktop App Converter app settings across devices

Microsoft 文档中的

Roaming settings options FAQ 说:

The Desktop Bridge helps you bring your existing Windows desktop apps to the Universal Windows Platform. From here, minimal code changes will be required to take advantage of Azure AD app data roaming. The Desktop Bridge provides your apps with an app identity, which is needed to enable app data roaming for existing desktop apps.

但是没有提到 “最小代码更改” 是什么。

该应用程序应该使用 Windows.Storage.ApplicationData.Current.RoamingSettings API 吗?我使用 C++ Win32。我是否需要加载 .NET 框架才能使用 API?或者是否有 Win32 替代方案?

Should the app make use of Windows.Storage.ApplicationData.Current.RoamingSettings API? I use C++ Win32. Do I need to load .NET framework to use the API? Or is there Win32 alternative?

首先,我想让您知道,并非所有 UWP API 都可用于一般桌面应用程序。请检查 UWP APIs available to a packaged desktop app (Desktop Bridge) and UWP APIs callable from a classic desktop app

然后,请参阅Enhance your desktop application for Windows 10了解更多详情。

另外:

Some Windows 10 experiences (For example: a touch-enabled UI page) must run inside of a modern app container . If you want to add these experiences, extend your desktop application with UWP projects and Windows Runtime Components.

另请查看 Extend your desktop application with modern UWP components 文档以获取更多参考。