IAppxFactory::CreateManifestReader method (appxpackaging.h)
Creates a read-only manifest object model from contents provided by an IStream.
Syntax
HRESULT CreateManifestReader(
[in] IStream *inputStream,
[out, retval] IAppxManifestReader **manifestReader
);
Parameters
[in] inputStream
Type: IStream*
The input stream that delivers the manifest XML for reading. The stream must support Read, Seek, and Stat. If these methods fail, their error codes might be passed to and returned by this method.
[out, retval] manifestReader
Type: IAppxManifestReader**
The manifest reader.
Return value
Type: HRESULT
If the method succeeds, it returns S_OK. Otherwise, it returns an error code that includes, but is not limited to, those in the following table.
Return code | Description |
---|---|
|
The inputStream does not contain syntactically valid XML for the manifest. |
Remarks
Use CreateManifestReader to read a manifest outside of an app package. This method validates the manifest XML. The manifestReader provides access to all data elements and attributes in the manifest XML. The manifest logs the location of manifest validation errors in the ETW event log for AppxPackaging.
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 |