IAppxManifestPackageId::GetName method (appxpackaging.h)
Gets the name of the package as defined in the manifest.
Syntax
HRESULT GetName(
[out, retval] LPWSTR *name
);
Parameters
[out, retval] name
Type: LPWSTR*
The name of the package.
Return value
Type: HRESULT
If the method succeeds, it returns S_OK.
Remarks
Package name information is specified using the Name attribute of the Identity element in the package manifest.
The package name is not intended to be displayed to end users. Rather, the system uses it to uniquely identify the package.
The caller must free the memory allocated for name using the CoTaskMemFree function.
Examples
For an example, see Quickstart: Read app package manifest info.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | appxpackaging.h |