__MIDL___MIDL_itf_msopc_0000_0002_0003 Enumeration

Describes the read/write status of a stream.

Syntax

typedef enum __MIDL___MIDL_itf_msopc_0000_0002_0003 {
  OPC_STREAM_IO_READ   ,
  OPC_STREAM_IO_WRITE
} OPC_STREAM_IO_MODE;

Constants

OPC_STREAM_IO_READ Creates a read-only stream for loading an existing package.
OPC_STREAM_IO_WRITE Creates a write-only stream for saving a new package.

Remarks

Important  

Reading and writing to the same package is not recommended and may result in undefined behavior.

 

Requirements

   
Windows version Windows 7 [desktop apps only] Windows Server 2008 R2 [desktop apps only]
Header msopc.h

See Also

Getting Started with the Packaging API

IOpcFactory::CreateStreamOnFile

Overviews

Packaging API Programming Guide

Packaging API Samples

Packaging Enumerations

Packaging Interfaces

Reference