IAppxManifestReader::GetStream method (appxpackaging.h)
Gets the raw XML parsed and read by the manifest reader.
Syntax
HRESULT GetStream(
[out, retval] IStream **manifestStream
);
Parameters
[out, retval] manifestStream
Type: IStream**
The read-only stream that represents the XML content of the manifest.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
The raw XML stream is the entire source stream, and may contain elements and attributes in other namespaces that are ignored by the manifest reader. For example, the XML stream may have elements in other namespaces that were marked in the IgnorableNamespaces attribute in the Package element, which were not validated. Therefore, you should consider this XML as untrusted.
It is recommended that you use the packaging API to get information from the manifest, rather than parsing the raw XML.
If you parse the XML, you must include XML data validation and XML security testing.
Call the IUnknown::Release method when you have finished using the manifestStream object.
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 |