XblAchievementsManagerResultGetAchievements

Get a list of XblAchievement objects.

Syntax

HRESULT XblAchievementsManagerResultGetAchievements(  
         XblAchievementsManagerResultHandle resultHandle,  
         const XblAchievement** achievements,  
         uint64_t* achievementsCount  
)  

Parameters

resultHandle   _In_
Type: XblAchievementsManagerResultHandle

Achievement result handle.

achievements   _Out_
Type: XblAchievement**

Pointer to an array of XblAchievement objects. The memory for the returned pointer will remain valid for the life of the XblAchievementsManagerResultHandle object until it is closed.

achievementsCount   _Out_
Type: uint64_t*

The count of objects in the returned array.

Return value

Type: HRESULT

HRESULT return code for this API operation.

Remarks

The returned array of XblAchievement objects is freed when all outstanding handles to the object have been closed with XblAchievementsManagerResultCloseHandle. However the data might become stale.

Requirements

Header: achievements_manager_c.h

Library: Microsoft.Xbox.Services.141.GSDK.C.lib

See also

achievements_manager_c