Skip to main content

XClosedCaptionGetProperties

Returns the properties of the current closed caption.

Syntax

Parameters

properties   _Out_
Type: XClosedCaptionProperties*
When the function returns, properties contains the current closed caption properties.

Return value

Type: HRESULT HRESULT if closed captions are enabled and properties contains the current XClosedCaptionProperties. Otherwise, returns an error code.
For a list of error codes, see Error Codes.

Remarks

This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
For this function to be successful, closed captions must be enabled. The user must enable the closed captions feature in the UI of the Game title. If the user enabled closed captions, your Game title can flag the status of closed captions by calling XClosedCaptionSetEnabled. The following example demonstrates how to return the closed caption properties.

Requirements

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

Conceptual documentation

See also

XAccessibility XClosedCaptionProperties XClosedCaptionSetEnabled
Last modified on August 20, 2026