ReturnCode (Standard 8 Module Reference)

7/8/2014

Review the applicable Feature modules and any examples for the ReturnCode setting in Windows Embedded 8 Standard (Standard 8).

This setting contains an integer that maps an exit code returned by an application to an action defined in the corresponding action setting.

Modules

The following table shows the modules that you can apply this setting to. In Image Configuration Editor (ICE), you can follow the corresponding path to set this setting for a module.

Module

Path

Setting Description

Windows 8 Application Launcher

Features/Branding/Windows 8 Application Launcher/CustomReturnCodeAction/LauncherAction/ReturnCode

Specifies the value that a Windows 8 app writes to the local account data CustomExitCode key when the Windows 8 app exits. Windows 8 Application Launcher performs the action defined by the corresponding action setting when the Windows 8 app exits and writes this return code to the CustomExitCode key.

Windows 8 Application Launcher

Features/Branding/Windows 8 Application Launcher/UserSettings/User/CustomReturnCodeAction/LauncherAction/ReturnCode

Specifies the value that a Windows 8 app writes to the local account data CustomExitCode key when the Windows 8 app exits. Windows 8 Application Launcher performs the action defined by the corresponding action setting when the Windows 8 app exits and writes this return code to the CustomExitCode key.

Shell Launcher

Features/Shell/Shell Launcher/UserSettings/User/CustomReturnCodeAction/CodeAction/ReturnCode

Specifies the value returned by the launched shell when it exits. Shell Launcher performs the action defined by the corresponding action setting when the shell exits with this return code.

XML Example

The following XML example shows how to set this setting.

<CustomReturnCodeAction>
    <CodeAction wcm:action="add">
        <Action>0</Action>
        <ReturnCode>1</ReturnCode>
    </CodeAction>
</CustomReturnCodeAction>

See Also

Concepts

Feature Module Settings