> ## 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.

# XtfStartTitleOSByGameConfig

> XtfStartTitleOSByGameConfig

Starts or restarts the Game OS based on the contents of a MicrosoftGame.config file that is stored in memory as a string.

## Syntax

```cpp theme={null}
HRESULT XtfStartTitleOSByGameConfig(
         PCWSTR address,
         UINT32 flags,
         PCWSTR gameconfigContents
)  
```

### Parameters

*address*\
Type: PCWSTR

\[in] The IP address of the console.

*flags*\
Type: UINT32

\[in] Currently unused, but reserved for future behavior changes.

*gameconfigContents*\
Type: PCWSTR

\[in] The contents of a MicrosoftGame.config file.

### Return value

Type: HRESULT

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

## Remarks

Use this function to start or restart the game OS based on the contents of a MicrosoftGame.config file that is stored in memory as a string. If a value for `address` or `gameconfigContents` isn't specified, an error occurs.

For more information about the contents of a MicrosoftGame.config file, see [MicrosoftGame.config Overview](https://docs.xbox.com/build/core-features/common/game-config/MicrosoftGameConfig-Overview.md).

## Requirements

**Header:** xtfapi.h

**Library:** XtfApi.lib

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

## See also

[XTF Transport Errors (NDA topic)](https://docs.xbox.com/tools/tools-console/commandlinetools/xtf-transport-errors.md)\
[Additional Xtf APIs](https://docs.xbox.com/reference/tools/xtf/xtfapi/atoc-xtfapi.md)


## Related topics

- [XtfStartTitleOS](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfstarttitleos-xtfapi-xbox-windows-m.md)
- [XtfStartTitleOSByVersion](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfstarttitleosbyversion-xtfapi-xbox-windows-m.md)
- [Additional Xtf APIs (API contents)](https://docs.xbox.com/reference/tools/xtf/xtfapi/atoc-xtfapi.md)
- [Start](https://docs.xbox.com/reference/tools/xtf/xtfdebugmonitor/classes/IXtfDebugMonitorClient/methods/start-ixtfdebugmonitorclient-xtfdebugmonitor-xbox-microsoft-m.md)
- [XtfCacheTitleOS](https://docs.xbox.com/reference/tools/xtf/xtfapi/functions/xtfcachetitleos-xtfapi-xbox-windows-m.md)
