Skip to main content

XUserGetGamerPictureResultSize

傳回 XUserGetGamerPictureResult 擷取 XUserGetGamerPictureAsync 所傳回之玩家圖片所需的緩衝區大小。

語法

參數

async   _Inout_
類型:XAsyncBlock*
傳送至 XUserGetGamerPictureAsync 的非同步區塊。 bufferSize   _Out_
類型:size_t*
包含所需的緩衝區大小。

傳回值

類型:HRESULT HRESULT 成功或錯誤碼。
如需錯誤碼清單,請參閱錯誤碼。

備註

若要以非同步方式擷取特定使用者的玩家圖片,請呼叫 XUserGetGamerPictureAsync。 若要擷取呼叫 XUserGetGamerPictureAsync 的結果,請呼叫 XUserGetGamerPictureResult。 下列範例示範如何載入玩家圖片。

需求

標頭: XUser.h 程式庫: xgameruntime.lib 支援的平台: Windows、Steam Deck、XBOX One 系列主機和 XBOX Series 主機

另請參閱

XUser XUserGetGamerPictureAsync XUserGetGamerPictureResult
Last modified on October 6, 2026