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

# GetPackageFullNameFromManifest

> GetPackageFullNameFromManifest

# GetPackageFullNameFromManifest

返回指定应用程序清单对应包的完整名称。

<a id="syntaxSection" />

## 语法

```cpp theme={null}
HRESULT GetPackageFullNameFromManifest(
         PCWSTR manifestPath,
         WCHAR** packageFullName
)
```

<a id="parametersSection" />

### 参数

*manifestPath*   \_In\_\
类型：PCWSTR

清单的路径。

*packageFullName*   \_Out\_\
类型：WCHAR\*\*

返回时，包含包的完整名称。

<a id="retvalSection" />

### 返回值

类型：HRESULT

成功时返回 `S_OK`。否则，返回错误代码。有关错误代码的列表，请参阅[错误代码](/reference/errorcodes)。

<a id="remarksSection" />

## 备注

调用方必须使用 `CoTaskMemFree` 释放返回的字符串。

要获取指定游戏配置的包的完整名称和系列名称，请调用 [GetPackageInfoFromGameConfig](/reference/tools/packagingservices/functions/getpackageinfofromgameconfig)。

有关打包的更多信息，请参阅[打包概览](/build/core-features/common/packaging/overviews/packaging)。

<a id="requirementsSection" />

## 要求

**头文件：** packagingservices.h

**库：** packagingservices.lib

**支持的平台：** Windows（用于 XBOX 主机工具）

<a id="seealsoSection" />

## 另请参阅

[PackagingServices](/reference/tools/packagingservices/packagingservices_members)
