> ## 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](/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelissupported)。

有关详细信息，请参阅 [XBOX One X: Using the front panel display (NDA topic)](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](/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members)


## Related topics

- [XFrontPanelDisplay](/zh-CN/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)
- [XFrontPanelSetLightStates](/zh-CN/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelsetlightstates.md)
- [XFrontPanelLight](/zh-CN/reference/devkit/xfrontpaneldisplay/enums/xfrontpanellight.md)
- [XFrontPanelGetLightStates](/zh-CN/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetlightstates.md)
- [XFrontPanelButton](/zh-CN/reference/devkit/xfrontpaneldisplay/enums/xfrontpanelbutton.md)
