Compartir a través de


XblPresenceAddDevicePresenceChangedHandler

Registers an event handler for device presence change notifications. Notifications will only be received for the Users configured with XblPresenceTrackUsers.

Syntax

XblFunctionContext XblPresenceAddDevicePresenceChangedHandler(  
         XblContextHandle xblContextHandle,  
         XblPresenceDevicePresenceChangedHandler* handler,  
         void* context  
)  

Parameters

xblContextHandle   _In_
Type: XblContextHandle

Xbox live context for the local user.

handler   _In_
Type: XblPresenceDevicePresenceChangedHandler*

The callback function that receives notifications.

context   _In_opt_
Type: void*

Caller context that will be passed back to the handler.

Return value

Type: XblFunctionContext

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

Requirements

Header: presence_c.h

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

See also

presence_c