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

# XblPresenceGetPresenceForMultipleUsersAsync

> XblPresenceGetPresenceForMultipleUsersAsync

# XblPresenceGetPresenceForMultipleUsersAsync

Gets presence info for multiple users.

## Syntax

```cpp theme={null}
HRESULT XblPresenceGetPresenceForMultipleUsersAsync(  
         XblContextHandle xblContextHandle,  
         uint64_t* xuids,  
         size_t xuidsCount,  
         XblPresenceQueryFilters* filters,  
         XAsyncBlock* async  
)  
```

### Parameters

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

XBOX live context for the local user.

*xuids*   \_In\_\
Type: uint64\_t\*

The XBOX User IDs of the users to get presence for.

*xuidsCount*   \_In\_\
Type: size\_t

Size of the xuids array.

*filters*   \_In\_opt\_\
Type: [XblPresenceQueryFilters\*](/reference/live/xsapi-c/presence_c/structs/xblpresencequeryfilters)

Optional filters struct to filter results.

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

The AsyncBlock for this operation.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

To retrieve the result of calling XblPresenceGetPresenceForMultipleUsersAsync, call [XblPresenceGetPresenceForMultipleUsersResult](/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceformultipleusersresult).

To retrieve the required buffer size to hold the results of calling XblPresenceGetPresenceForMultipleUsersAsync, call [XblPresenceGetPresenceForMultipleUsersResultCount](/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceformultipleusersresultcount).

## Requirements

**Header:** presence\_c.h

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

## See also

[presence\_c](/reference/live/xsapi-c/presence_c/presence_c_members)


## Related topics

- [XblPresenceGetPresenceForMultipleUsersResult](/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceformultipleusersresult.md)
- [Getting a user's Presence](/services/xbox-services/community/presence/how-to/live-getting-a-users-presence.md)
- [XblPresenceGetPresenceForMultipleUsersResultCount](/reference/live/xsapi-c/presence_c/functions/xblpresencegetpresenceformultipleusersresultcount.md)
- [XblPresenceQueryFilters](/reference/live/xsapi-c/presence_c/structs/xblpresencequeryfilters.md)
- [Optional services](/build/gdk-and-engines/optional-services.md)
