> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XblAchievementUnlockAddNotificationHandler

> XblAchievementUnlockAddNotificationHandler

# XblAchievementUnlockAddNotificationHandler

Registers an event handler for achievement unlock notifications.

## Syntax

```cpp theme={null}
XblFunctionContext XblAchievementUnlockAddNotificationHandler(  
         XblContextHandle xblContextHandle,  
         XblAchievementUnlockHandler* handler,  
         void* handlerContext  
)  
```

### Parameters

*xblContextHandle*   \_In\_\
Type: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

XBOX live context for the local user.

*handler*   \_In\_\
Type: XblAchievementUnlockHandler\*

The callback function that receives notifications.

*handlerContext*   \_In\_opt\_\
Type: void\*

Caller context to be passed the handler.

### Return value

Type: XblFunctionContext

An XblFunctionContext object that can be used to unregister the event handler.

## Requirements

**Header:** achievements\_c.h

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

## See also

[achievements\_c](/reference/live/xsapi-c/achievements_c/achievements_c_members)
