Will using RegisterHotKey in a WinUI 3 packaged app pass Microsoft Store certification?

Grape Juice 0 Reputation points
2025-12-06T13:05:03.7066667+00:00

Hello,

I am currently developing a WinUI 3 packaged app that I plan to distribute through the Microsoft Store.

My app would benefit from global keyboard shortcuts, and I am considering using the Win32 API RegisterHotKey to implement this functionality.

My questions are:

  • If I declare runFullTrust and use RegisterHotKey in my WinUI 3 packaged app, will this pass Microsoft Store certification?
  • Are there any restrictions or policies I should be aware of when implementing global hotkeys in a Store app?

I want to ensure my app complies with Store policies before submitting it. Any guidance or references to official documentation would be greatly appreciated.

Thank you!

Windows development | Windows API - Win32
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-12-06T13:05:13.7233333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Using RegisterHotKey in a WinUI 3 packaged app that declares runFullTrust can potentially pass Microsoft Store certification, but there are important considerations to keep in mind. The Microsoft Store has specific policies regarding the use of APIs and features that could affect user experience and security.

    1. Global Hotkeys: While using global hotkeys is technically feasible, you should ensure that your implementation does not interfere with the normal operation of the operating system or other applications. This includes avoiding conflicts with existing shortcuts and ensuring that the hotkeys do not lead to a poor user experience.
    2. Microsoft Store Policies: You must comply with the Microsoft Store Policies, which include requirements for technical compliance, security, content, and legal aspects. Violations of these policies can lead to failed submissions or removal from the Store. It is crucial to review the complete version of the Store Policies to ensure your app meets all necessary criteria.
    3. Testing and Compliance: Before submitting your app, thoroughly test the functionality of the hotkeys to ensure they work as intended without causing issues. Additionally, consider how the use of runFullTrust might impact your app's certification, as this setting can have implications on the app's behavior and permissions.

    For more detailed guidance, you may want to refer to the official Microsoft documentation regarding app certification and the specific policies that apply to your app type.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.