locked
Metro Style Application return code RRS feed

  • Question

  • Hello there,

    Windows Embedded Standard 8 offers a way to launch a single metro style application and keep it running even if it is closed or crashes (restarts) for kiosk systems.

    This behavior can be controlled using the application return code. For instance you can prevent the app launcher to restart the application if you return "8" to properly shut down the application.

    However the Application::Exit() method does not support any overloads to specify a return code.

    My question: how can I specify the return code of an metro style application exit?

    Best regards

    -Simon

    Saturday, June 9, 2012 3:50 PM

Answers

  • @Simon - no this is not possible.  That kiosk mode is exclusive to embedded.

    Tim Heuer | Program Manager, XAML | http://timheuer.com/blog | @timheuer

    (if my post has answered your question, please consider using the 'mark as answer' feature in the forums to help others)

    Monday, June 11, 2012 2:13 AM
  • Hello Tim,

    thank you for your anwswer. However I am thinking about a Windows Embedded 8 Solution using the Metro Style App Launcher.

    For everyone having the same question: using the documentation I found the following:

    <sections xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">

    Standard Metro Style Apps

    <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">

    Metro style apps that are not specifically designed to work with
    Metro Style App Launcher, including Windows Store apps, do not return an
    exit code when the app exits. In these cases, Metro Style App Launcher restarts the app
    when it detects that the app has stopped running.

    </content>

    Specialized Metro Style Apps

    <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">

    If you create a specialized Metro style app designed to work with
    Metro Style App Launcher, you can have the app write a
    CustomExitCode key before it exits. This integer key is written to
    the app data local settings. If the app exits and Metro Style App Launcher detects a
    CustomExitCode key, Metro Style App Launcher can take a
    specific action based on the value of the CustomExitCode key.

    So you just write an integer key CustomExitCode to your local application data with contains a value (e.g. "8") that the application launcher can use.

    Regards

    -Simon

    </content>
    </sections>
    • Marked as answer by Simon Mattes Monday, June 11, 2012 8:26 AM
    Monday, June 11, 2012 8:26 AM
  • Simon, the Metro Style App Launcher is an Embedded-specific feature. In the future, please use the Embedded CTP forum available here:

    http://social.msdn.microsoft.com/Forums/en-US/wes8/threads?sort=viewsdesc

    Wednesday, June 20, 2012 7:09 PM

All replies

  • @Simon - no this is not possible.  That kiosk mode is exclusive to embedded.

    Tim Heuer | Program Manager, XAML | http://timheuer.com/blog | @timheuer

    (if my post has answered your question, please consider using the 'mark as answer' feature in the forums to help others)

    Monday, June 11, 2012 2:13 AM
  • Hello Tim,

    thank you for your anwswer. However I am thinking about a Windows Embedded 8 Solution using the Metro Style App Launcher.

    For everyone having the same question: using the documentation I found the following:

    <sections xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">

    Standard Metro Style Apps

    <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">

    Metro style apps that are not specifically designed to work with
    Metro Style App Launcher, including Windows Store apps, do not return an
    exit code when the app exits. In these cases, Metro Style App Launcher restarts the app
    when it detects that the app has stopped running.

    </content>

    Specialized Metro Style Apps

    <content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">

    If you create a specialized Metro style app designed to work with
    Metro Style App Launcher, you can have the app write a
    CustomExitCode key before it exits. This integer key is written to
    the app data local settings. If the app exits and Metro Style App Launcher detects a
    CustomExitCode key, Metro Style App Launcher can take a
    specific action based on the value of the CustomExitCode key.

    So you just write an integer key CustomExitCode to your local application data with contains a value (e.g. "8") that the application launcher can use.

    Regards

    -Simon

    </content>
    </sections>
    • Marked as answer by Simon Mattes Monday, June 11, 2012 8:26 AM
    Monday, June 11, 2012 8:26 AM
  • Simon, the Metro Style App Launcher is an Embedded-specific feature. In the future, please use the Embedded CTP forum available here:

    http://social.msdn.microsoft.com/Forums/en-US/wes8/threads?sort=viewsdesc

    Wednesday, June 20, 2012 7:09 PM