Partager via


XblPresenceGetPresenceForMultipleUsersAsync

Gets presence info for multiple users.

Syntax

HRESULT XblPresenceGetPresenceForMultipleUsersAsync(  
         XblContextHandle xblContextHandle,  
         uint64_t* xuids,  
         size_t xuidsCount,  
         XblPresenceQueryFilters* filters,  
         XAsyncBlock* async  
)  

Parameters

xblContextHandle   _In_
Type: 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*

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.

To retrieve the required buffer size to hold the results of calling XblPresenceGetPresenceForMultipleUsersAsync, call XblPresenceGetPresenceForMultipleUsersResultCount.

Requirements

Header: presence_c.h

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

See also

presence_c