> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ShutdownConsole

> IXtfConsoleControlClient::ShutdownConsole

Shuts down the development console.

## Syntax

```cpp theme={null}
HRESULT ShutdownConsole(
         DWORD dwFlags
)  
```

### Parameters

*dwFlags*\
Type: DWORD

A bitwise-OR combination of flags that specify how to shut down the development console. The following table lists the available flags:

| Value | Constant | Description |
| - | - | - |
| 0x00000001 | XTFSHUTDOWN\_REBOOT | Shuts down and reboots the development console. |
| 0x00000002 | XTFSHUTDOWN\_POWER\_MODE\_AWARE | Shuts down and reboots the development console according to the console's power mode settings. |

### Return value

Type: HRESULT

Returns `S_OK` if successful; otherwise, returns an HRESULT error code.

## Remarks

This function shuts down the current development console, depending on the combination of flags specified in `dwFlags`. If the system isn't ready to accept a shutdown request at the time the function is invoked, the function includes retry logic, such as attempting to shut down the console using the Host OS as a fallback if the System OS is not accessible. The function attempts to shut down the console until the function either succeeds or times out after 5 minutes and returns an error.

For more information about shutting down and rebooting a console using XBOX Tools Framework (XTF), see [Reboot (xbreboot.exe) (NDA topic)](https://docs.xbox.com/tools/tools-console/commandlinetools/xbreboot.md).

## Requirements

**Header:** xtfconsolecontrol.h

**Library:** xtfconsolecontrol.lib

**Supported platforms:** Windows (for XBOX console tools)

## See also

[IXtfConsoleControlClient](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/ixtfconsolecontrolclient.md)\
[XtfConsoleControl](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/xtfconsolecontrol_members.md)


## Related topics

- [IXtfConsoleControlClient (Interface contents)](https://docs.xbox.com/reference/tools/xtf/xtfconsolecontrol/interfaces/IXtfConsoleControlClient/ixtfconsolecontrolclient.md)
- [XtfShutdownTitleOS](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfshutdowntitleos-xtfapi-xbox-windows-m.md)
- [Shutdown Multiplayer Server](https://docs.xbox.com/services/playfab/api-references/rest/multiplayer/multiplayer-server/shutdown-multiplayer-server.md)
- [MsQuic](https://docs.xbox.com/build/console-features/networking/game-mesh/msquic-intro-networking.md)
- [XGameSave API overview](https://docs.xbox.com/build/core-features/common/game-save/xgamesave.md)
