IAppxManifestProperties::GetStringValue method (appxpackaging.h)
Gets the value of the specified string element in the properties section.
Syntax
HRESULT GetStringValue(
[in] LPCWSTR name,
[out, retval] LPWSTR *value
);
Parameters
[in] name
Type: LPCWSTR
The name of the string element. Valid values include:
"Description"
"DisplayName"
"Logo"
"PublisherDisplayName"
[out, retval] value
Type: LPWSTR*
The value of the specified element.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
If a valid string property with this name is not defined in the manifest, this method returns E_INVALIDARG and value receives a null string.
The caller must free the memory allocated for value 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 |