Skip to content

UWP build fails WACK - AcquireCredentialsHandle #3564

Open
@carmines

Description

@carmines

Describe the bug

when trying to build a UWP app with the msquic.lib linked, running it through the WACK tool generates this error

`Supported API test

FAILED
Supported APIs
Error Found: The supported APIs test detected the following errors:
API FreeCredentialsHandle in secur32.dll is not supported for this application type. MyQuicApp.exe calls this API.
Impact if not fixed: Using an API that is not part of the Windows SDK for Microsoft Store apps violates the Microsoft Store certification requirements.
How to fix: Review the error messages to identify the API that is not part of the Windows SDK for Microsoft Store apps. If the DLL listed is an allowable redistributable from a NuGET package, SDK or other toolkit, did you forget to add the DLL to your app? Please note, apps that are built in a debug configuration or without .NET Native enabled (where applicable) can fail this test as these environments may pull in unsupported APIs. Retest your app in a release configuration, and with .NET Native enabled if applicable. See the link below for more information:
Alternatives to Windows APIs in Microsoft Store apps.`

Affected OS

  • Windows
  • Linux
  • macOS
  • Other (specify below)

Additional OS information

Windows 11 UWP

MsQuic version

main

Steps taken to reproduce bug

Using the winrt Xaml app template
link msquic.lib
add a call to the library
` if (Configuration != nullptr) {
MsQuic->ConfigurationClose(Configuration);
}

// This will block until all outstanding child objects have been closed.
if (Registration != nullptr) {
  MsQuic->RegistrationClose(Registration);
}

`

  • build uwp succeeds
  • open Windows App Cert Kit and check the .msix file

Expected behavior

should not be using restricted windows api's for UWP apps. If you are using Credentials, should be using the credential locker api's
https://learn.microsoft.com/en-us/windows/uwp/security/credential-locker

Actual outcome

fails WACK

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions