WACK test failure due to win32 API integrated with UWP app.

Rahul K 51 Reputation points
2021-06-11T17:51:57.453+00:00

Framework: using win32 API to access file permissions.
The win32 app is integrated to UWP app using the WinRT bridge.

In this app i am trying to get permissions(security information) for a file object using GetFileSecurityA.
Its working fine in UWP app using win32 but it fails in the WACK test(when we upload to store).

Can anyone suggest some alternative to this?

Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
874 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 31,766 Reputation points Microsoft Vendor
    2021-06-14T01:31:24.513+00:00

    Hello,

    Welcome to Microsoft Q&A!

    This behavior is expected. The message is clear-using win32 API to access file permissions.

    Not all the win32 API could pass the Store WACK test even when the app is packaged with Desktop Bridge. And the API works fine when debugging in Visual Studio locally doesn't mean that API is allowed in the Store.

    You might need to check other APIs that could get the file but not get the file permissions. Or you could just use Windows.Storage Namespace.

    Thank you.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments