Skip to main content

XUserGetGamerPictureResultSize

XUserGetGamerPictureAsync が返すゲーマー画像を取得するために XUserGetGamerPictureResult に必要なバッファー サイズを返します。

構文

パラメーター

async   _Inout_
Type: XAsyncBlock*
XUserGetGamerPictureAsync に渡された非同期ブロックです。 bufferSize   _Out_
Type: size_t*
必要となるバッファー サイズが格納されます。

戻り値

Type: HRESULT HRESULT の成功またはエラー コード。
エラー コードの一覧については、エラー コード を参照してください。

解説

特定のユーザーのゲーマー画像を非同期に取得するには、XUserGetGamerPictureAsync を呼び出します。 XUserGetGamerPictureAsync の呼び出し結果を取得するには、XUserGetGamerPictureResult を呼び出します。 以下の例は、ゲーマー画像を読み込む方法を示しています。

要件

ヘッダー: XUser.h ライブラリ: xgameruntime.lib サポートされているプラットフォーム: Windows、Steam Deck、XBOX One ファミリ本体および XBOX Series 本体

関連項目

XUser XUserGetGamerPictureAsync XUserGetGamerPictureResult
最終更新日 2026年8月24日