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

# XtfGetDefaultAddress

> XtfGetDefaultAddress

# XtfGetDefaultAddress

이 PC의 기본 개발 콘솔의 IP 주소를 반환합니다.

<a id="syntaxSection" />

## 구문

```cpp theme={null}
HRESULT XtfGetDefaultAddress(
         LPBSTR pbstrAddress
)  
```

<a id="parametersSection" />

### 매개 변수

*pbstrAddress*\
형식: LPBSTR

이 PC가 기본 개발 콘솔에 사용하는 IP 주소입니다.

<a id="retvalSection" />

### 반환 값

형식: HRESULT

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

<a id="remarksSection" />

## 설명

이 메서드가 성공하면 이 PC의 기본 개발 콘솔의 IP 주소를 `pbstrAddress`에 가져옵니다. [IXtfConsoleManager::GetDefaultConsole](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/getdefaultconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m) 메서드를 사용하여 기본 개발 콘솔에 대한 자세한 정보를 검색하거나 [IXtfConsoleManager::SetDefaultConsole](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/setdefaultconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m) 메서드를 호출하여 기본 개발 콘솔을 설정할 수도 있습니다. 기본 개발 콘솔은 다른 XBOX Tools Framework(XTF) 도구 및 API에서 사용됩니다.

기본 개발 콘솔 쿼리에 대한 자세한 내용은 [Connect(xbconnect.exe)(NDA 항목)](/tools/tools-console/commandlinetools/xbconnect)를 참조하세요.

<a id="remarks_output" />

### LPBSTR 포인터 처리

이 메서드에서 반환되는 LPBSTR 포인터 처리에 대한 자세한 내용은 [BSTR용 메모리 할당 및 해제](https://learn.microsoft.com/cpp/atl-mfc-shared/allocating-and-releasing-memory-for-a-bstr?view=vs-2019)를 참조하세요.

<a id="requirementsSection" />

## 요구 사항

**헤더:** xtfconsolemanager.h

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

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

<a id="seealsoSection" />

## 함께 보기

[IXtfConsoleManager 인터페이스](/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-t)\
[XtfConsoleManager](/reference/tools/xtf/xtfconsolemanager/xtfconsolemanager-xbox-microsoft-n)


## Related topics

- [XtfCreateConsoleManager](/ko/reference/tools/xtf/xtfconsolemanager/methods/xtfcreateconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
- [XtfGetSavedConsoleAddress](/ko/reference/tools/xtf/xtfapi/functions/xtfgetsavedconsoleaddress-xtfapi-xbox-windows-m.md)
- [IXtfConsoleManager::GetDefaultConsole 메서드](/ko/reference/tools/xtf/xtfconsolemanager/classes/IXtfConsoleManager/methods/getdefaultconsole-ixtfconsolemanager-xtfconsolemanager-xbox-microsoft-m.md)
- [XtfGetConsoleFieldValue](/ko/reference/tools/xtf/xtfapi/functions/xtfgetconsolefieldvalue-xbox-microsoft-m.md)
- [XtfGetAvailableSpaceForAppInstallation](/ko/reference/tools/xtf/xtfconsolecontrol/functions/xtfgetavailablespaceforappinstallation-xtfconsolecontrol-xbox-microsoft-m.md)
