> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.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\*](/reference/system/xaccessibility/structs/xclosedcaptionproperties)

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

### 반환 값

형식: HRESULT

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

## 설명

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

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

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

```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](/reference/system/xaccessibility/xaccessibility_members)

[XClosedCaptionProperties](/reference/system/xaccessibility/structs/xclosedcaptionproperties)

[XClosedCaptionSetEnabled](/reference/system/xaccessibility/functions/xclosedcaptionsetenabled)


## Related topics

- [XClosedCaptionProperties](/ko/reference/system/xaccessibility/structs/xclosedcaptionproperties.md)
- [XClosedCaptionFontStyle](/ko/reference/system/xaccessibility/enums/xclosedcaptionfontstyle.md)
- [XClosedCaptionFontEdgeAttribute](/ko/reference/system/xaccessibility/enums/xclosedcaptionfontedgeattribute.md)
- [XClosedCaptionSetEnabled](/ko/reference/system/xaccessibility/functions/xclosedcaptionsetenabled.md)
- [XAG 104: 자막과 캡션](/ko/build/game-principles/accessibility/xag-deep-dives/xag-104-subtitles-captions.md)
