locked
Ability to Control Metro Apps in Kiosk Environment

    Question

  • Hi, we develop secure kiosk application layer and need
    to support Windows 8 in new version of our SiteKiosk product.

    I wonder if it's possible to interact with Metro Apps / WWAHost.exe:

    1. How can I detect that an Metro App is started?
    2. Is the better way to close the Metro App then to kill corresponding WWAHost.exe?
    3. Is there a something like policy to prevent certain application to start?
    4. Is there an API to suspend / resume Metro App externally

    Thank you in advance,

    Slawa Konkevych
    Provisio, Germany

    Sunday, May 6, 2012 4:08 PM

Answers

All replies

  • Hi,

    You can open Task Manager, detect WWAHost process and check its command line parameter "-ServerName" which indicates specific hosted Metro style app.

    You need not to manually close your Metro style app. Windows will maintain it and decide when to terminate it according to specific policy.

    To prevent a Metro style app from running, you can implement some check logic in launch or activate event. If your custom ploicy is not met, you can call Application.Exit to shutdown the app.

    There is no API to suspend/resume Metro style app externally. Normally, you can use SuspendThread and ResumeThread to suspend and resume a specific process in Desktop environment. However, both APIs are not available in Metro style app.


    Best wishes,


    Robin [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, May 7, 2012 8:45 AM
    Moderator
  • Hi Robin,

    thank you very much for the quick answer.

    I would like to further specify my tasks:

    I need to start our Kiosk App in full screen mode and want to prevent some actions / charms,

    for example i need to prevent the wellcome screen to show. Can you please tell me if its possible?

    Thank you in advance,

    Slawa Konkevych

    PROVISIO, Germany

    Monday, May 7, 2012 9:02 AM
  • Slawa,

    You will want to look into Windows 8 embedded and see if it meets your needs:

    http://www.microsoft.com/windowsembedded/en-us/evaluate/windows-embedded-standard-8-ctp.aspx

    Best Wishes - Eric

    Monday, May 7, 2012 5:37 PM
    Moderator
  • Hi Eric, thank you very much for your suggestion,
    I just have told it to my product manager and he would like to look through embedded version soon.

    In spite of the embedded OS we have to support the mainstream Windows version.
    Do you know whether a certain policy exists to hide certain applications
    from the Start Screen or even to disable the Start Screen entirely?

    Thank you in advance,

    Slawa Konkevych

    PROVISIO, Germany

    Tuesday, May 8, 2012 1:22 PM
  • Slawa,

    The embedded version of the product is the only supported way of doing this.  They currently have a free trial you can download.

    Best Wishes - Eric

    Wednesday, May 9, 2012 5:02 PM
    Moderator