IAppxBundleFactory::CreateBundleReader method (appxpackaging.h)
Creates a read-only bundle object that reads its contents from an IStream object.
Syntax
HRESULT CreateBundleReader(
[in] IStream *inputStream,
[out, retval] IAppxBundleReader **bundleReader
);
Parameters
[in] inputStream
Type: IStream*
The input stream that delivers the content of the package 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] bundleReader
Type: IAppxBundleReader**
A bundle 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 ZIP file delivered by inputStream is an interleaved OPC package. |
|
The OPC package delivered by inputStream contains OPC package/part relationships. |
|
The OPC package delivered by inputStream does not have a manifest, or a block map, or a signature file when a CI catalog is present. |
|
The bundle manifest is not valid. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8.1 [desktop apps only] |
Minimum supported server | Windows Server 2012 R2 [desktop apps only] |
Target Platform | Windows |
Header | appxpackaging.h |