Freigeben über


XGameUiShowPlayerPickerResultCount

Gets the count of results from a XGameUiShowPlayerPickerAsync call.

Syntax

HRESULT XGameUiShowPlayerPickerResultCount(  
         XAsyncBlock* async,  
         uint32_t* resultPlayersCount  
)  

Parameters

async   _In_
Type: XAsyncBlock*

A pointer to the XAsyncBlock that was passed to XGameUiShowPlayerPickerAsync.

resultPlayersCount   _Out_
Type: uint32_t*

The count of results.

Return value

Type: HRESULT

HRESULT success or error code.

Remarks

Typically this function is to be called in XGameUiShowPlayerPickerAsync's XAsyncBlock. This function will allow you to retrieve the number of players returned to the list. To get the actual list of players you will need to call XGameUiShowPlayerPickerResult.
You may also call this function anytime after the async function completes in order to retrieve the function result.

Requirements

Header: XGameUI.h

Library: xgameruntime.lib

Supported platforms: Windows, Xbox One family consoles and Xbox Series consoles

See also

XGameUI
XGameUiShowPlayerPickerAsync
XGameUiShowPlayerPickerResult