Partager via


XblMultiplayerAddSubscriptionLostHandler

Registers an event handler for notifications when a multiplayer subscription is lost. Use the returned XblFunctionContext to unregister the handler.

Syntax

XblFunctionContext XblMultiplayerAddSubscriptionLostHandler(  
         XblContextHandle xblContext,  
         XblMultiplayerSessionSubscriptionLostHandler* handler,  
         void* context  
)  

Parameters

xblContext   _In_
Type: XblContextHandle

Xbox live context for the local user.

handler   _In_
Type: XblMultiplayerSessionSubscriptionLostHandler*

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