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

# XGameStreamingInitialize

> XGameStreamingInitialize

# XGameStreamingInitialize

Game Streaming API を初期化します。

## Syntax

```cpp theme={null}
HRESULT XGameStreamingInitialize(  
)  
```

### Parameters

なし

### Return value

型: HRESULT

成功した場合は S\_OK を返します。それ以外の場合はエラー コードを返します。エラー コードの一覧については、[Error Codes](/reference/errorcodes) を参照してください。

## Remarks

<Note>この関数は、時間制約のあるスレッドで呼び出すには安全ではありません。詳細については、[時間制約のあるスレッド](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)を参照してください。</Note>

この API は、他の XGameStreaming API のほとんどを呼び出す前に呼び出す必要があります。この API が呼び出されていない場合、他の API は `E_GAMESTREAMING_NOT_INITIALIZED` を返します。

## Requirements

**ヘッダー:** XGameStreaming.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## Conceptual documentation

* [時間制約のあるスレッド](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## See also

[XGameStreamingUninitialize](/reference/system/xgamestreaming/functions/xgamestreaminguninitialize)\
[XGameStreaming](/reference/system/xgamestreaming/xgamestreaming_members)


## Related topics

- [XGameStreamingUninitialize](/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminguninitialize.md)
- [XGameStreaming](/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)
- [XGameStreamingRegisterConnectionStateChanged](/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingregisterconnectionstatechanged.md)
- [XGameStreamingUpdateTouchControlsState](/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingupdatetouchcontrolsstate.md)
- [XGameStreamingSetResolution](/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingsetresolution.md)
