Export (0) Print
Expand All

IAppxManifestReader::GetStream method

Gets the raw XML parsed and read by the manifest reader.

Syntax


HRESULT GetStream(
  [out, retval]  IStream **manifestStream
);

Parameters

manifestStream [out, retval]

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

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

AppxPackaging.h

IDL

AppxPackaging.idl

IID

IID_IAppxManifestReader is defined as 4e1bd148-55a0-4480-a3d1-15544710637c

See also

IAppxManifestReader

 

 

Show:
© 2014 Microsoft