Skip to main content

XUserGetGamerPictureResultSize

Returns the buffer size that XUserGetGamerPictureResult requires to retrieve the gamer picture that XUserGetGamerPictureAsync returns.

Syntax

Parameters

async   _Inout_
Type: XAsyncBlock*
The asynchronous block sent to XUserGetGamerPictureAsync. bufferSize   _Out_
Type: size_t*
Contains the buffer size requirement.

Return value

Type: HRESULT HRESULT success or error code.
For a list of error codes, see Error Codes.

Remarks

To asynchronously retrieve the gamer picture for a specific user, call XUserGetGamerPictureAsync. To the retrieve the result of a call to XUserGetGamerPictureAsync, call XUserGetGamerPictureResult. The following example demonstrates how to load a gamer picture.

Requirements

Header: XUser.h Library: xgameruntime.lib Supported platforms: Windows, Steam Deck, XBOX One family consoles and XBOX Series consoles

See also

XUser XUserGetGamerPictureAsync XUserGetGamerPictureResult
Last modified on August 20, 2026