Proposal : It is hoped that the equivalent API of UWP on the desktop can be provided in the Windows App SDK
Describe the bug
希望能在 Windows App SDK 中提供 UWP 在桌面被限制的等价 API It is hoped that the equivalent API of UWP on the desktop can be provided in the Windows App SDK
As the title suggests, there are many apis in Windows UWP that are limited to one platform, such as ShutdownManager, ProcessLauncher, TimeZoneSettings, and so on. These apis are not available either in UWP mode or desktop application mode, and if you want to use this part of the content, you need to call the corresponding Win32 API or COM interface. In the future, I hope the Windows App SDK team can consider this part and provide a flat API, which is not restricted by any restrictions, and is convenient for desktop applications to call. 如标题所示,在 Windows UWP 中,有很多 API 都是限制于某种平台下才可以使用的,比如 ShutdownManager,ProcessLauncher,TimeZoneSettings等等。这些 API 不管是在 UWP 模式下,还是桌面应用模式下,都不可用,如果想要使用这一部分的内容,就需要调用相应的 Win32 API 或 COM 接口。未来希望 Windows App SDK 团队能考虑一下这一部分,提供一个平替的 API,这个 API 不受任何限制,方便桌面应用调用。
Steps to reproduce the bug
See describe
Expected behavior
未来希望 Windows App SDK 团队能考虑一下这一部分,提供一个平替的 API,这个 API 不受任何限制,方便桌面应用调用。 In the future, I hope the Windows App SDK team can consider this part and provide a flat API, which is not restricted by any restrictions, and is convenient for desktop applications to call.
Screenshots
NuGet package version
Windows App SDK 1.5.0: 1.5.240227000
Packaging type
Packaged (MSIX)
Windows version
Insider Build (xxxxx)
IDE
Visual Studio 2022
Additional context
None
With regards to this proposal, what kind of functionality do you believe that it should have relative to the desktop API?
As an example, ProcessLauncher has two overloads for RunToCompletionAsync. One of these specifies the executable and command line arguments, where the other specifies the executable, command line arguments, I/O redirection and working directory. CreateProcess provides much more than this. The reason why I ask this is your use of "equivalent API". Do you want them to be equivalent in name and functionality, or do you wish for them to be similar in philosophy, but encompasses the capabilities of desktop applications?
With regards to this proposal, what kind of functionality do you believe that it should have relative to the desktop API?
As an example, ProcessLauncher has two overloads for RunToCompletionAsync. One of these specifies the executable and command line arguments, where the other specifies the executable, command line arguments, I/O redirection and working directory. CreateProcess provides much more than this. The reason why I ask this is your use of "equivalent API". Do you want them to be equivalent in name and functionality, or do you wish for them to be similar in philosophy, but encompasses the capabilities of desktop applications?
Personally, I think the relationship is at least similar to the mapping of Windows.UI.ViewManagement.AppWindow (uwp) to the Microsoft.UI.Windowing.AppWindow(desktop) api, and in addition to that, the appwindow of the Windows app SDK extends some APIs that desktop applications can use.