GetPackageFullNameFromInfo
Returns the full name of the package that matches the specified information.
Syntax
HRESULT GetPackageFullNameFromInfo(
PCWSTR packageName,
PCWSTR packageVersion,
PCWSTR packageArchitecture,
PCWSTR packageResourceId,
PCWSTR packagePublisher,
WCHAR** packageFullName
)
Parameters
packageName _In_
Type: PCWSTR
The package name.
packageVersion _In_
Type: PCWSTR
The package version.
packageArchitecture _In_
Type: PCWSTR
The package architecture.
packageResourceId _In_
Type: PCWSTR
The package resource ID.
packagePublisher _In_
Type: PCWSTR
The package publisher.
packageFullName _Out_
Type: WCHAR**
On return, contains the full name of the package.
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 get the family name of the package for a specified application manifest, call GetPackageFamilyNameFromManifest
For more information about packaging, see Overview of packaging.
Requirements
Header: packagingservices.h
Library: packagingservices.lib
Supported platforms: Windows (for Xbox console tools)