OPC_WRITE_FLAGS enumeration

Describes the encoding method that is used by the serialization object to produce the package.

Syntax


typedef enum  { 
  OPC_WRITE_DEFAULT      = 0x00000000,
  OPC_WRITE_FORCE_ZIP32  = 0x00000001
} OPC_WRITE_FLAGS;

Constants

OPC_WRITE_DEFAULT

Use Zip64 encoding. The minimum software version for extracting a package with Zip64 encoding is 4.5.

OPC_WRITE_FORCE_ZIP32

Force Zip32 encoding. The minimum software version for extracting a package with Zip32 encoding is 2.0.

If one or more of the following Zip32 limitations are violated, the package write will fail:

  • The maximum size for a single, uncompressed file item is 4 gigabytes.
  • The maximum number of file items is 65535 (2¹⁶-1).

Requirements

Header

Msopc.h

IDL

Opcobjectmodel.idl

See also

Packaging Enumerations
Overviews
Open Packaging Conventions Fundamentals
Getting Started with the Packaging API
Packaging API Programming Guide
Relationships Overview
Reference
IOpcFactory::WritePackageToStream
Packaging Interfaces
Packaging API Samples

 

 

Community Additions

ADD
Show: