locked
CoCreateInstanceFromApp + CreateActCtxW

    Question

  • Hi, I want use my own COM lib in metro app. I know, that i need use RegFree COM (add manifest to my metro app), but also i know about CreateActCtxW + ActivateActCtx. Can I use CreateActCtxW + ActivateActCtx + CoCreateInstanceFromApp for create COM object from metro app without use manifest for my metro app ?

    I created manifest for my COM lib (my com is OUT proc server, *.exe).

    Then i created activation context (CreateActCtxW + ActivateActCtx) - without any error, but CoCreateInstanceFromApp still return error 0x80040154.

    Friday, July 04, 2014 8:23 AM

All replies

  • Windows Store apps (formerly known as Metro) run in a security context that prevents arbitrary access to the system including non-whitelisted COM objects.

    The functions CreateActCtxW and ActivateActCtx are Win32 desktop only APIs.


    Friday, July 04, 2014 4:23 PM
  • Windows Store apps (formerly known as Metro) run in a security context that prevents arbitrary access to the system including non-whitelisted COM objects.

    The functions CreateActCtxW and ActivateActCtx are Win32 desktop only APIs.


    But why are this APIs returns success ?
    I need implement metro apps only for desktop, can i use their?
    Friday, July 04, 2014 5:07 PM
  • Even if the API returns success, you could not submit the application to the Windows Store. The WACK tool enforces proper API usage.
    Saturday, July 05, 2014 3:22 AM
  • Windows Store apps (formerly known as Metro) run in a security context that prevents arbitrary access to the system including non-whitelisted COM objects.

    The functions CreateActCtxW and ActivateActCtx are Win32 desktop only APIs.


    "non-whitelisted COM objects" - but can i use RegFree COM for using my COM out proc server ?

    Thank you

     
    Monday, July 07, 2014 12:36 PM