Skip to content

How can I use APIs not allowed under an UWP app in a runtime component that needs to work in both UWP and desktop apps? #853

Description

@jaigak

I have a Windows Runtime Component which needs to work under both Win32 and UWP and since some UWP APIs can't be used from desktop apps, I have replaced them to use Win32 API when those methods are called from a desktop app. (I detect whether it's UWP or not by checking CoreWindow however that doesn't work in a UWP console app). Although I'm sure those banned APIs won't be called at runtime from a UWP app when using my Windows Runtime Component, the app certification kit seems to detect it and the UWP app doesn't pass verification. What should I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions