共用方式為


XblAchievementsAddAchievementProgressChangeHandler

Registers an event handler for achievement progress change notifications.

Syntax

XblFunctionContext XblAchievementsAddAchievementProgressChangeHandler(  
         XblContextHandle xblContextHandle,  
         XblAchievementsProgressChangeHandler handler,  
         void* handlerContext  
)  

Parameters

xblContextHandle   _In_
Type: XblContextHandle

An xbox live context handle created with XblContextCreateHandle.

handler   _In_
Type: XblAchievementsProgressChangeHandler

The callback function that receives notifications.

handlerContext   _In_opt_
Type: void*

Client context pointer to be passed back to the handler.

Return value

Type: XblFunctionContext

A XblFunctionContext used to remove the handler.

Remarks

Call XblAchievementsRemoveAchievementProgressChangeHandler to un-register event handler.

Requirements

Header: achievements_c.h

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

See also

achievements_c