Freigeben über


XblMultiplayerActivityAddInviteHandler

Registers an event handler for multiplayer activity invites.

Syntax

XblFunctionContext XblMultiplayerActivityAddInviteHandler(  
         XblContextHandle xblContextHandle,  
         XblMultiplayerActivityInviteHandler* handler,  
         void* context  
)  

Parameters

xblContextHandle   _In_
Type: XblContextHandle

Xbox Live context for the local user.

handler   _In_
Type: XblMultiplayerActivityInviteHandler*

The callback function that receives notifications.

context   _In_opt_
Type: void*

Caller context to be passed to the handler.

Return value

Type: XblFunctionContext

An XblFunctionContext object that can be used to unregister the event handler.

Remarks

To unregister an event handler for multiplayer activity invites, call the XblMultiplayerActivityRemoveInviteHandler function.

For more information about multiplayer activities, see Activities.

Requirements

Header: multiplayer_activity_c.h

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

See also

multiplayer_activity_c