Compartir a través de


GetPackageFamilyNameFromManifest

Returns the family name of the package for the specified application manifest.

Syntax

HRESULT GetPackageFamilyNameFromManifest(
         PCWSTR manifestPath,
         WCHAR** packageFamilyName
)

Parameters

manifestPath   _In_
Type: PCWSTR

The path to the manifest.

packageFamilyName   _Out_
Type: WCHAR**

On return, contains the package family name.

Return value

Type: HRESULT

Returns S_OK if successful. Otherwise, returns an error code. For a list of error codes, see Error Codes.

Remarks

The caller must free the returned string by using CoTaskMemFree.

To determine the full name of a package by specifying the package name, the package version, the package architecture, the package resource ID, and the package publisher, call GetPackageFullNameFromInfo.

For more information about packaging, see Overview of packaging.

Requirements

Header: packagingservices.h

Library: packagingservices.lib

Supported platforms: Windows (for Xbox console tools)

See also

PackagingServices