DefaultReturnCodeAction (microsoft-windows-embedded-shelllauncher-defaultreturncodeaction)

根據傳回碼指定要採取的動作。

當自訂殼層結束時,殼層啟動器可以根據傳回碼執行四個動作的其中一個。

描述

0

重新開機殼層。

這是預設值。

1

重新啟動裝置。

2

關閉裝置。

3

不執行任何動作。

父階層

Microsoft-Windows-Embedded-ShellLauncher | DefaultReturnCodeAction

有效的組態傳遞

oobeSystem

套用至

如需此元件支援的 Windows 版本和架構清單,請參閱 Microsoft-Windows-Embedded-ShellLauncher

XML 範例

<settings pass="oobeSystem">
    <component name="Microsoft-Windows-Embedded-ShellLauncher" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="NonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <Shell>testshell.exe</Shell>
        <DefaultReturnCodeAction>1</DefaultReturnCodeAction>
    </component>
</settings>