none
How to launch Windows Store App form Win32 via protocol RRS feed

All replies

  • pidls are for desktop only. ActivateForProtocol  does not work if the target metro app is not the registered protocol handler.

    Which app you are trying to launch? If you are writing a launcher, you can launch via IApplicationActivationManager::ActivateApplication.



    Visual C++ MVP

    Thursday, May 23, 2013 4:02 AM
    Moderator
  • Yes, My App registered protocol, I used this sample codes.

    http://code.msdn.microsoft.com/windowsapps/Association-Launching-535d2cec

    I used ActivateApplication, but I did not find a good way to pass a value to it. The arguments pass one time when App launch, if the App resume from this API, the  arguments will be null.

     

    I want to pass value via protocol, like alsdkcs://helloworld 



    NEU_ShieldEdge

    Thursday, May 23, 2013 5:04 AM
  • Can you explain your scenario in more detail?

    Typically you would launch a protocol with ShellExecute. If your app is the registered handler then that it will be activated to handle the protocol.

    --Rob

    Friday, May 24, 2013 2:41 AM
  • Hi Rob,

    My app was registered handler, like alsdkcs://helloworld. I type this in the Windows explorer, my app will launch.

    My question is, how to do this in Win32. For example, user press a button and my app will be launched via the protocol which using  ActivateForProtocol API


    NEU_ShieldEdge

    Friday, May 24, 2013 3:13 AM