共用方式為


XblMultiplayerClearActivityAsync

Clears the user's current activity session for the specified serviceConfigurationId.

Syntax

HRESULT XblMultiplayerClearActivityAsync(  
         XblContextHandle xblContext,  
         const char* scid,  
         XAsyncBlock* async  
)  

Parameters

xblContext   _In_
Type: XblContextHandle

Xbox live context for the local user.

scid   _In_z_
Type: char*

The Service Configuration ID (SCID) in which to clear activity. The SCID is considered case sensitive so paste it directly from the Partner Center

async   _In_
Type: XAsyncBlock*

The AsyncBlock for this operation.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Requirements

Header: multiplayer_c.h

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

See also

multiplayer_c