共用方式為


XblPresenceSubscribeToTitlePresenceChange

Subscribes to title presence change notifications. DEPRECATED. This API will be removed in a future release. Individual RTA subscription will be managed automatically by XSAPI as titles are tracked with XblPresenceTrackAdditionalTitles.

Syntax

HRESULT XblPresenceSubscribeToTitlePresenceChange(  
         XblContextHandle xblContextHandle,  
         uint64_t xuid,  
         uint32_t titleId,  
         XblRealTimeActivitySubscriptionHandle* subscriptionHandle  
)  

Parameters

xblContextHandle   _In_
Type: XblContextHandle

Xbox live context for the local user.

xuid   _In_
Type: uint64_t

The Xbox User ID of the person of the subscription.

titleId   _In_
Type: uint32_t

The title ID.

subscriptionHandle   _Out_
Type: XblRealTimeActivitySubscriptionHandle*

Passes back the RTA subscription handle that will be used to unsubscribe.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Requirements

Header: presence_c.h

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

See also

presence_c