Skip to main content

XAppCaptureUnRegisterMetadataPurged

Remove an event handler for meta data purge events.

Syntax

Parameters

token   _In_
Type: XTaskQueueRegistrationToken
Event handler token created by XAppCaptureRegisterMetadataPurged. wait   _In_
Type: bool
Tells the unregister function to wait in the case that the callback function is running some blocking function.

Return value

Type: bool

Remarks

This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
Each instance of XAppCaptureRegisterMetadataPurged needs to be followed by an instance of AppCaptureUnRegisterMetadataPurged when the event handler is no longer needed. Failure to remove the handle will result in a memory leak. It is recommended that you call this function after the app has finished capture activity or before the app is shut down.

Requirements

Header: XAppCapture.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

Conceptual documentation

See also

GameDVR Overview
XAppCapture Members
XAppCaptureRegisterMetadataPurged
Last modified on August 20, 2026