Skip to main content
Unregisters an event handler for Real-Time Activity (RTA) service connectivity state changes.

Syntax

Parameters

xboxLiveContext   _In_
Type: XblContextHandle
XBOX services context handle. Use a context for the same user that you registered the handler for. token   _In_
Type: XblFunctionContext
The XblFunctionContext object that was returned when the event handler was registered.

Return value

Type: HRESULT Returns S_OK if the handler was unregistered, or if no handler is registered with token for the user. Possible error codes include the following. This list isn’t exhaustive. For a list of error codes, see Error codes.

Requirements

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

See also

real_time_activity_c
Last modified on October 29, 2026