XblMultiplayerSessionCurrentUser

Returns the current User in the session.

Syntax

const XblMultiplayerSessionCurrentUser(  
         XblMultiplayerSessionHandle handle  
)  

Parameters

handle   _In_
Type: XblMultiplayerSessionHandle

Handle to the multiplayer session.

Return value

Type: const

The current User in the session. The memory for the returned pointer will remain valid for the life of the XblMultiplayerSessionHandle object until it is closed.

Remarks

A nullptr will be returned if there is no current user in the session.

Requirements

Header: multiplayer_c.h

Library: Microsoft.Xbox.Services.141.GSDK.C.lib

See also

multiplayer_c