Open topic with navigation
Format information can include file attributes in the following categories:
Not all categories are required. Many formats include only major format and file class, or major format only.
The format information has the following structure:
Each number in the format information represents a file attribute. The entry
184.108.40.206.0 represents a Lotus 1-2-3 Spreadsheet file version 9.0, where
81 = Lotus 1-2-3 Spreadsheet (major format)
2 = Spreadsheet (file class)
0 = not defined (minor format)
9 = 9 (major version)
0 = 0 (minor version)
The example above applies to the initialization file and the Windows registry. When extracting format information by using the
VAPIMWP_INIT_GETDOCFORMAT parameter, the same format information is represented as
VAPIMWP_INIT_GETDOCFORMATdiffer from those in the initialization file and Windows registry because the former defines a unique ID for each major format, whereas the latter uses a major version, minor version, and minor format to distinguish between formats.
ADDOCINFO structure provides a unique ID for each major format. For example,
351.1.0 for a Microsoft Word 2003 XML format. The major format
351 is unique to this format.
ADDOCINFO, the initialization file and the Windows registry use the major version number to distinguish between formats. For example, in the initialization file, a Microsoft Word 2003 XML format is defined as
2220.127.116.11.0. The major format
285 and file class
1 are the same values for generic XML. The major version
100 distinguishes the format as Microsoft Word 2003 XML.
The major version is used in the
kvsdk.ini file or the Windows registry to specify the following formats:
The Microsoft Office 2003 XML format has the same major format and file class as generic XML (
285.1). It is distinguished from generic XML by using the following major versions: