Skip to main content

XblSocialRemoveFriendRequestCountChangedHandler

Removes a friend request count change handler.

Syntax

Parameters

xboxLiveContext   _In_
Type: XblContextHandle
The XBOX services context handle that you used to register the handler. handlerFunctionContext   _In_
Type: XblFunctionContext
The token that XblSocialAddFriendRequestCountChangedHandler passed back when you registered the handler.

Return value

Type: HRESULT Returns S_OK on success. Returns E_INVALIDARG if xboxLiveContext is null. If the token doesn’t identify a registered handler, the function does nothing and returns S_OK.

Remarks

Call this function only for a handler that you registered with XblSocialAddFriendRequestCountChangedHandler. Friend request count handlers and social relationship changed handlers share one Real-Time Activity (RTA) subscription for the context’s user. After you remove the last handler of both types, the XBOX Services API (XSAPI) removes the subscription.

Requirements

Header: social_c.h Library: Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

See also

social_c
XblSocialAddFriendRequestCountChangedHandler
Last modified on October 29, 2026