locked
Static lib compiled with WINAPI_FAMILY_DESKTOP_APP (0x03) used in metro app RRS feed

  • Question

  • Hi 

    By default metro apps get:

    WINAPI_FAMILY=WINAPI_FAMILY_APP (0x02).

    My app uses static library compiled with:

    WINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP(0x03)

    which works ok. My question is - does this violate any metro app convention? Would I be able sign such application?

    The reason i use WINAPI_FAMILY_DESKTOP_APP in static lib is to access some APIs that are disabled with WINAPI_FAMILY_APP.

    Thanks 

    Vlad

    Tuesday, April 17, 2012 6:55 PM

Answers

  • Hi Vlad,

    Your app will not pass certification. The family definitions are designed to make it easy to prevent using disallowed API at compile time so you don't waste your time writing code that will be blocked later. By changing the define you just move the point when the error will be detected.

    --Rob

    Tuesday, April 17, 2012 7:03 PM
    Moderator

All replies

  • Hi Vlad,

    Your app will not pass certification. The family definitions are designed to make it easy to prevent using disallowed API at compile time so you don't waste your time writing code that will be blocked later. By changing the define you just move the point when the error will be detected.

    --Rob

    Tuesday, April 17, 2012 7:03 PM
    Moderator
  • Thanks for quick reply!

    That what i was afraid of.... :( Lots of OS primitives have to be ported in my project...


    Tuesday, April 17, 2012 7:06 PM