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

# GetDlc

> IXtfApplicationClient::GetDlc

# IXtfApplicationClient::GetDlc

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

## 語法

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

### 參數

*pbstrDlcList*\
類型：LPBSTR

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

### 傳回值

類型：HRESULT

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

## 備註

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

### 處理 LPBSTR 指標

如需處理此函式所傳回之 LPBSTR 指標的詳細資訊，請參閱[配置和釋放 BSTR 的記憶體](https://learn.microsoft.com/cpp/atl-mfc-shared/allocating-and-releasing-memory-for-a-bstr?view=vs-2019)。

## 需求

**標頭：** xtfapplication.h

**程式庫：** xtfapplication.lib

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

## 另請參閱

[IXtfApplicationClient 介面](https://docs.xbox.com/zh-TW/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md)\
[XtfApplication](https://docs.xbox.com/zh-TW/reference/tools/xtf/xtfapplication/xtfapplication-xbox-microsoft-n.md)


## Related topics

- [IXtfApplicationClient 介面 (介面內容)](https://docs.xbox.com/zh-TW/reference/tools/xtf/xtfapplication/classes/IXtfApplicationClient/ixtfapplicationclient-xtfapplication-xbox-microsoft-t.md)
- [管理可下載內容 (DLC) 並授權](https://docs.xbox.com/zh-TW/publishing/xstore-commerce/xstore-dlc.md)
- [GDK 可下載內容 (DLC) 套件](https://docs.xbox.com/zh-TW/build/core-features/common/packaging/packaging-downloadable-content-dlc.md)
- [XStore 開發疑難排解](https://docs.xbox.com/zh-TW/publishing/xstore-commerce/xstore-troubleshooting.md)
- [DlcCompatibility 元素 (MicrosoftGame.config)](https://docs.xbox.com/zh-TW/reference/system/microsoftgameconfig/elements/microsoftgameconfig-element-dlccompatibility.md)
