共用方式為


XblLeaderboardResultGetNextAsync

Gets the result of next page of the leaderboard for a player of the specified title.

Syntax

HRESULT XblLeaderboardResultGetNextAsync(  
         XblContextHandle xboxLiveContext,  
         XblLeaderboardResult* leaderboardResult,  
         uint32_t maxItems,  
         XAsyncBlock* async  
)  

Parameters

xboxLiveContext   _In_
Type: XblContextHandle

An xbox live context handle created with XblContextCreateHandle.

leaderboardResult   _In_
Type: XblLeaderboardResult*

The leaderboard result from a previous call to XblLeaderboardGetLeaderboardResult.

maxItems   _In_
Type: uint32_t

The maximum number of items that the result can contain. Pass 0 to attempt to retrieve all items.

async   _In_
Type: XAsyncBlock*

Caller allocated AsyncBlock.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Remarks

To get the result, call XblLeaderboardResultGetNextResult inside the AsyncBlock callback or after the AsyncBlock is complete.

Requirements

Header: leaderboard_c.h

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

See also

leaderboard_c