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

# XFrontPanelSetDisplayName

> XFrontPanelSetDisplayName

# XFrontPanelSetDisplayName

設定前面板顯示器的名稱。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
HRESULT XFrontPanelSetDisplayName(  
         const char* displayName  
)  
```

<a id="parametersSection" />

### 參數

*displayName*   \_In\_\
類型：char\*

顯示器的名稱。

<a id="retvalSection" />

### 傳回值

類型：HRESULT

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

<a id="remarksSection" />

## 備註

目前，前面板顯示器不會使用 *displayName*。

若要判斷此開發套件是否具有前面板顯示器，請使用 [XFrontPanelIsSupported](/zh-TW/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelissupported)。

如需詳細資訊，請參閱 [XBOX One X：使用前面板顯示器 (NDA 主題)](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/dev-kits/concepts/scorpio-frontpanel)。

<a id="requirementsSection" />

## 需求

**標頭：** xfrontpaneldisplay.h

**程式庫：** xfrontpaneldisplay.lib

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[XFrontPanelDisplay](/zh-TW/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members)


## Related topics

- [XFrontPanelSetDisplayName](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelsetdisplayname.md)
- [XFrontPanelDisplay](/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)
