> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XClosedCaptionGetProperties

> XClosedCaptionGetProperties

# XClosedCaptionGetProperties

현재 폐쇄 자막의 속성을 반환합니다.

## 구문

```cpp theme={null}
HRESULT XClosedCaptionGetProperties(  
         XClosedCaptionProperties* properties  
)  
```

### 매개 변수

*properties*   \_Out\_\
형식: [XClosedCaptionProperties\*](https://docs.xbox.com/ko/reference/system/xaccessibility/structs/xclosedcaptionproperties.md)

함수가 반환되면 *properties*에는 현재 폐쇄 자막 속성이 포함됩니다.

### 반환 값

형식: HRESULT

폐쇄 자막이 활성화되어 있고 *properties*가 현재 [XClosedCaptionProperties](https://docs.xbox.com/ko/reference/system/xaccessibility/structs/xclosedcaptionproperties.md)를 포함하는 경우의 HRESULT입니다. 그렇지 않은 경우 오류 코드를 반환합니다.\
오류 코드 목록은 [오류 코드](https://docs.xbox.com/ko/reference/errorcodes.md)를 참조하세요.

## 설명

> [!NOTE]
>
> 이 함수는 시간에 민감한 스레드에서 호출하기에 안전하지 않습니다. 자세한 내용은 [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)를 참조하세요.

이 함수가 성공하려면 폐쇄 자막이 활성화되어 있어야 합니다.
사용자는 게임 타이틀의 UI에서 폐쇄 자막 기능을 활성화해야 합니다.
사용자가 폐쇄 자막을 활성화했다면, 게임 타이틀은 [XClosedCaptionSetEnabled](https://docs.xbox.com/ko/reference/system/xaccessibility/functions/xclosedcaptionsetenabled.md)를 호출하여 폐쇄 자막의 상태를 표시할 수 있습니다.

다음 예제는 폐쇄 자막 속성을 반환하는 방법을 보여줍니다.

```cpp theme={null}
XClosedCaptionProperties ccProperties;
if (SUCCEEDED(XClosedCaptionGetProperties(&ccProperties))
{
    // 이제 게임 타이틀은 ccProperties 구조체에서 색상 및 글꼴 설정에 액세스할 수 있습니다.
}
```

## 요구 사항

**헤더:** XAccessibility.h

**라이브러리:** xgameruntime.lib

**지원 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 개념 문서

* [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## 함께 보기

[XAccessibility](https://docs.xbox.com/ko/reference/system/xaccessibility/xaccessibility_members.md)

[XClosedCaptionProperties](https://docs.xbox.com/ko/reference/system/xaccessibility/structs/xclosedcaptionproperties.md)

[XClosedCaptionSetEnabled](https://docs.xbox.com/ko/reference/system/xaccessibility/functions/xclosedcaptionsetenabled.md)


## Related topics

- [XClosedCaptionProperties](https://docs.xbox.com/ko/reference/system/xaccessibility/structs/xclosedcaptionproperties.md)
- [XClosedCaptionFontStyle](https://docs.xbox.com/ko/reference/system/xaccessibility/enums/xclosedcaptionfontstyle.md)
- [XClosedCaptionFontEdgeAttribute](https://docs.xbox.com/ko/reference/system/xaccessibility/enums/xclosedcaptionfontedgeattribute.md)
- [XClosedCaptionSetEnabled](https://docs.xbox.com/ko/reference/system/xaccessibility/functions/xclosedcaptionsetenabled.md)
- [Xbox 접근성 가이드라인 104](https://docs.xbox.com/ko/build/game-principles/accessibility/xag-deep-dives/xag-104-subtitles-captions.md)
