Compartir a través de


XblMultiplayerSessionCurrentUserSetStatus

Set the current user to active or inactive. The member must first be joined to the session.

Syntax

HRESULT XblMultiplayerSessionCurrentUserSetStatus(  
         XblMultiplayerSessionHandle handle,  
         XblMultiplayerSessionMemberStatus status  
)  

Parameters

handle   _In_
Type: XblMultiplayerSessionHandle

Handle to the multiplayer session.

status   _In_
Type: XblMultiplayerSessionMemberStatus

Indicates the current user status.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Remarks

You cannot set the user to reserved or ready in this manner. Use XblMultiplayerSessionAddMemberReservation to add a member reservation.

Requirements

Header: multiplayer_c.h

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

See also

multiplayer_c