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

# XFrontPanelSetDisplayName

> XFrontPanelSetDisplayName

# XFrontPanelSetDisplayName

设置正面板显示屏的名称。

## 语法

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

### 参数

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

显示屏的名称。

### 返回值

类型：HRESULT

如果成功则返回 `S_OK`；否则返回错误代码。

## 注解

目前，正面板显示屏未使用 *displayName*。

若要确定此开发套件是否具有正面板显示屏，请使用 [XFrontPanelIsSupported](https://docs.xbox.com/zh-CN/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelissupported.md)。

有关详细信息，请参阅 [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)。

## 要求

**头文件：** xfrontpaneldisplay.h

**库：** xfrontpaneldisplay.lib

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[XFrontPanelDisplay](https://docs.xbox.com/zh-CN/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)


## Related topics

- [XFrontPanelDisplay（API 内容）](https://docs.xbox.com/zh-CN/reference/devkit/xfrontpaneldisplay/xfrontpaneldisplay_members.md)
- [XFrontPanelLight](https://docs.xbox.com/zh-CN/reference/devkit/xfrontpaneldisplay/enums/xfrontpanellight.md)
- [XFrontPanelSetLightStates](https://docs.xbox.com/zh-CN/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelsetlightstates.md)
- [XFrontPanelGetLightStates](https://docs.xbox.com/zh-CN/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelgetlightstates.md)
- [XFrontPanelIsSupported](https://docs.xbox.com/zh-CN/reference/devkit/xfrontpaneldisplay/functions/xfrontpanelissupported.md)
