OPC_STREAM_IO_MODE enumeration (msopc.h)

Describes the read/write status of a stream.

Syntax

typedef enum __MIDL___MIDL_itf_msopc_0000_0002_0003 {
  OPC_STREAM_IO_READ = 1,
  OPC_STREAM_IO_WRITE = 2
} OPC_STREAM_IO_MODE;

Constants

 
OPC_STREAM_IO_READ
Value: 1
Creates a read-only stream for loading an existing package.
OPC_STREAM_IO_WRITE
Value: 2
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

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server 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