Export (0) Print
Expand All

OPC_STREAM_IO_MODE enumeration

Describes the read/write status of a stream.

Syntax


typedef enum  { 
  OPC_STREAM_IO_READ   = 1,
  OPC_STREAM_IO_WRITE  = 2
} 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

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Msopc.h

IDL

Msopc.idl

See also

Packaging Enumerations
Overviews
Getting Started with the Packaging API
Packaging API Programming Guide
Reference
IOpcFactory::CreateStreamOnFile
Packaging Interfaces
Packaging API Samples

 

 

Community Additions

ADD
Show:
© 2015 Microsoft