Freigeben über


XblMultiplayerSessionMembers

Gets the collection of members that are in the session or entering the session together.

Syntax

HRESULT XblMultiplayerSessionMembers(  
         XblMultiplayerSessionHandle handle,  
         const XblMultiplayerSessionMember** members,  
         size_t* membersCount  
)  

Parameters

handle   _In_
Type: XblMultiplayerSessionHandle

Handle to the multiplayer session.

members   _Out_
Type: XblMultiplayerSessionMember**

Passes back a pointer to array of session member ojects. The memory for the returned pointer will remain valid for the life of the XblMultiplayerSessionHandle object until it is closed.

membersCount   _Out_
Type: size_t*

Passes back the size of the returned array.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Remarks

Call XblMultiplayerSessionJoin or XblMultiplayerSessionLeave to add or remove yourself from this list. Call XblMultiplayerSessionAddMemberReservation to add a reservation for another user on this list.

Requirements

Header: multiplayer_c.h

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

See also

multiplayer_c