> ## 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.

# SetDefaultApp

> IXtfApplicationClient::SetDefaultApp

# IXtfApplicationClient::SetDefaultApp

특정 타이틀 ID에 대한 활성화 요청이 수신될 때 시작할 애플리케이션의 ID를 설정합니다.

## 구문

```cpp theme={null}
public:
HRESULT SetDefaultApp(
         LPCWSTR pszTitleId,
         LPCWSTR pszAumid
)  
```

### 매개 변수

*pszTitleId*\
형식: LPCWSTR

기본값을 변경할 타이틀 ID 체계입니다.

*pszAumid*\
형식: LPCWSTR

시작할 앱의 AUMID가 포함된 문자열에 대한 포인터입니다.

### 반환 값

형식: HRESULT

성공하면 `S_OK`를 반환하고, 그렇지 않으면 HRESULT 오류 코드를 반환합니다.

## 설명

이 메서드는 특정 타이틀 ID에 대한 활성화 요청이 수신될 때 시작할 애플리케이션의 ID를 설정합니다. 이 메서드는 XBOX Tools Framework(XTF)의 일부로 포함된 애플리케이션 관리(xbapp.exe) 도구의 `xbapp setdefaultapp` 명령과 유사합니다. `xbapp setdefaultapp` 명령에 대한 자세한 내용은 [애플리케이션 관리(xbapp.exe)(NDA 항목)](https://docs.xbox.com/ko/tools/tools-console/commandlinetools/xbapp.md)를 참조하세요.

> [!NOTE]
>
> 향후 호환성을 극대화하려면 이 메서드를 직접 호출하는 대신 애플리케이션 관리 도구의 `xbapp setdefaultapp` 명령을 사용해야 합니다.

`pszAumid`에 지정된 기본 App User Model ID(AUMID)는 셸에서 게임이 시작되거나 다른 앱이 게임을 시작할 때 실행할 애플리케이션의 버전을 결정합니다.

> [!NOTE]
>
> 타이틀이 [XLaunchNewGame](https://docs.xbox.com/ko/reference/system/xgame/functions/xlaunchnewgame.md)을 호출하면 기본값은 현재 실행 중인 타이틀 버전의 AUMID로 일시적으로 재정의되어 재시작 시 동일한 버전이 실행되도록 합니다.

## 요구 사항

**헤더:** xtfapplication.h

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

**지원 플랫폼:** Windows(XBOX 콘솔 도구용)

## 함께 보기

[IXtfApplicationClient 인터페이스](https://docs.xbox.com/ko/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md)\
[XtfApplication](https://docs.xbox.com/ko/reference/tools/xtf/xtfapplication/xtfapplication-xbox-microsoft-n.md)


## Related topics

- [IXtfApplicationClient 인터페이스 (인터페이스 콘텐츠)](https://docs.xbox.com/ko/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md)
- [SetDefaultConsole](https://docs.xbox.com/ko/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/setdefaultconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
- [XSpeechSynthesizerSetDefaultVoice](https://docs.xbox.com/ko/reference/system/xspeechsynthesizer/functions/xspeechsynthesizersetdefaultvoice.md)
- [Redeem Apple App Store Inventory Items](https://docs.xbox.com/api-reference/inventory/redeem-apple-app-store-inventory-items.md)
- [Redeem Apple App Store With Jws Inventory Items](https://docs.xbox.com/api-reference/inventory/redeem-apple-app-store-with-jws-inventory-items.md)
