> ## 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.

# XblMultiplayerActivityFlushRecentPlayersAsync

> XblMultiplayerActivityFlushRecentPlayersAsync

# XblMultiplayerActivityFlushRecentPlayersAsync

Immediately writes any pending recent-players updates to XBOX Live.

## Syntax

```cpp theme={null}
HRESULT XblMultiplayerActivityFlushRecentPlayersAsync(  
         XblContextHandle xblContext,  
         XAsyncBlock* async  
)  
```

### Parameters

*xblContext*   \_In\_\
Type: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

XBOX Live context for the local user.

*async*   \_In\_\
Type: XAsyncBlock\*

The `XAsyncBlock` for this operation.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

Calling this API is optional; updates are periodically uploaded from a background task queue. <br /><br /> When this API is used, the upload happens on the task queue supplied in this call. <br /><br /> To get the result of the asynchronous operation, call [XAsyncGetStatus](/reference/system/xasync/functions/xasyncgetstatus) inside the `XAsyncBlock` callback or after `XAsyncBlock` is complete. <br /><br /> To see how this enumeration is used, see the [Recent players](/services/xbox-services/multiplayer/mpa/how-to/live-mpa-client-how-to#recent-players) section of [Example code for Multiplayer Activity](/services/xbox-services/multiplayer/mpa/how-to/live-mpa-client-how-to).

## REST Call

Calls POST /titles/{titleId}/recentplayers

## Requirements

**Header:** multiplayer\_activity\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[multiplayer\_activity\_c](/reference/live/xsapi-c/multiplayer_activity_c/multiplayer_activity_c_members)


## Related topics

- [XblMultiplayerActivityUpdateRecentPlayers](/reference/live/xsapi-c/multiplayer_activity_c/functions/xblmultiplayeractivityupdaterecentplayers.md)
- [Example code for Multiplayer Activity](/services/xbox-services/multiplayer/mpa/how-to/live-mpa-client-how-to.md)
- [Moving from MPSD to PlayFab Multiplayer and MPA](/services/xbox-services/multiplayer/mpsd/concepts/live-mpsd-to-mlp.md)
- [XblMultiplayerActivityRecentPlayerUpdate](/reference/live/xsapi-c/multiplayer_activity_c/structs/xblmultiplayeractivityrecentplayerupdate.md)
- [Recent players](/services/xbox-services/multiplayer/mpa/concepts/live-mpa-recent-players.md)
