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

# IXtfApplicationClient::GetDlc

> IXtfApplicationClient::GetDlc

# IXtfApplicationClient::GetDlc

取得目前安裝在開發主機上的可下載內容 (DLC) 清單。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
public:
HRESULT GetDlc(
         LPBSTR pbstrDlcList
)  
```

<a id="parametersSection" />

### 參數

*pbstrDlcList*\
類型：LPBSTR

指標，接收目前安裝在開發主機上的 DLC 清單。

<a id="retvalSection" />

### 傳回值

類型：HRESULT

如果成功，則傳回 `S_OK`；否則會傳回 HRESULT 錯誤碼。

<a id="remarksSections" />

## 備註

此方法會取得目前安裝在開發主機上的可下載內容 (DLC) 清單。此方法類似於應用程式管理 (xbapp.exe) 工具中的 `xbapp listdlc` 命令，該工具隨附於 XBOX Tools Framework (XTF) 中。如需 `xbapp listdlc` 命令的詳細資訊，請參閱[應用程式管理 (xbapp.exe) (NDA 主題)](/zh-TW/tools/tools-console/commandlinetools/xbapp)。

<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" />

## 需求

**標頭：** xtfapplication.h

**程式庫：** xtfapplication.lib

**支援的平台：** Windows (適用於 XBOX 主機工具)

<a id="seealsoSection" />

## 另請參閱

[IXtfApplicationClient 介面](/zh-TW/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t)\
[XtfApplication](/zh-TW/reference/tools/xtf/xtfapplication/xtfapplication-xbox-microsoft-n)


## Related topics

- [IXtfApplicationClient::MarkAppAsProvisioned 方法](/zh-TW/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/markappasprovisioned-ixtfapplicationclient-xtfapplication.md)
- [IXtfApplicationClient::GetInstalled](/zh-TW/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/getinstalled-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md)
- [IXtfApplicationClient::Constrain](/zh-TW/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/constrain-ixtfapplicationclient-xtfapplication-xbox-windows-m.md)
- [IXtfApplicationClient::Suspend](/zh-TW/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/suspend-ixtfapplicationclient-xtfapplication-xbox-windows.md)
- [IXtfApplicationClient::Terminate](/zh-TW/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/methods/terminate-ixtfapplicationclient-xtfapplication-xbox-microsoft-m.md)
