What's the right way to pass data between a metro style app and a desktop app?


  • Hi Guys,

    I would like to know if there is way or API to pass data between the metro app and the desktop application simiarly a metro browser passes data to/from IE or invokes shell commands.



    Tuesday, April 10, 2012 6:10 PM


  • Communication between Metro style apps and desktop apps is blocked by design. They can communicate via a common web service, but not through channels only on the local machine. This goes for browsers as for any other apps, except that you can encode data within a URL that could be picked up by the target web page.

    With shell commands, Metro style apps can invoke other apps through file associations or protocols, but the user is always in final control of what app gets launched, so you cannot know what other specific app will actually be launched. Metro style apps can't do a generic shell invoke (e.g. launch an arbitrary command line); similarly, desktop apps cannot directly invoke Metro style apps (though again they may be invoked through file or protocol association).


    Wednesday, April 11, 2012 3:55 AM