Compartir a través de


XblMultiplayerAddConnectionIdChangedHandler

Registers an event handler for notifications when the multiplayer connection id changes. Use the returned XblFunctionContext to unregister the handler.

Syntax

XblFunctionContext XblMultiplayerAddConnectionIdChangedHandler(  
         XblContextHandle xblContext,  
         XblMultiplayerConnectionIdChangedHandler* handler,  
         void* context  
)  

Parameters

xblContext   _In_
Type: XblContextHandle

Xbox live context for the local user.

handler   _In_
Type: XblMultiplayerConnectionIdChangedHandler*

The callback function that receives notifications.

context   _In_opt_
Type: void*

Caller context to be passed the handler.

Return value

Type: XblFunctionContext

The function context token that was registered for the event.

Requirements

Header: multiplayer_c.h

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

See also

multiplayer_c