Skip to main content

XblSocialIncomingFriendRequestCountChangedHandler

A callback invoked when the number of incoming friend requests for a user changes.

Syntax

Parameters

eventArgs   _In_
Type: const XblSocialFriendRequestCountChangedEventArgs*
The arguments associated with the change. The fields of the structure are valid only during the callback. context   _In_opt_
Type: void*
The context that was provided when the handler was added.

Return value

Type: void

Remarks

Register this callback by calling XblSocialAddFriendRequestCountChangedHandler. The context parameter receives the handlerContext value that you passed when you registered the handler. The incomingFriendRequestCount member of eventArgs contains the current number of pending incoming friend requests. Copy any values that you need after the callback returns. The XBOX Services API (XSAPI) ignores a friend request count notification that doesn’t include a count, so the callback isn’t invoked for it.

Argument of

XblSocialAddFriendRequestCountChangedHandler

Requirements

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

See also

social_c
XblSocialFriendRequestCountChangedEventArgs
XblSocialRemoveFriendRequestCountChangedHandler
Last modified on October 29, 2026