OPC_WRITE_FLAGS enumeration (msopc.h)

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

Syntax

typedef enum __MIDL___MIDL_itf_msopc_0000_0002_0005 {
  OPC_WRITE_DEFAULT = 0,
  OPC_WRITE_FORCE_ZIP32 = 0x1
} OPC_WRITE_FLAGS;

Constants

 
OPC_WRITE_DEFAULT
Value: 0
Use Zip64 encoding. The minimum software version for extracting a package with Zip64 encoding is 4.5.
OPC_WRITE_FORCE_ZIP32
Value: 0x1
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

Requirement Value
Header msopc.h

See also

Getting Started with the Packaging API

IOpcFactory::WritePackageToStream

Open Packaging Conventions Fundamentals

Overviews

Packaging API Programming Guide

Packaging API Samples

Packaging Enumerations

Packaging Interfaces

Reference

Relationships Overview