# ADDOCINFO

This structure provides the format, file class, and version number of the source document. It is defined in `adinfo.h` and is part of the KVDocInfo structure.

    typedef struct
    {
        ENdocClass        eClass;
        ENdocFmt          eFormat;
        long              lVersion;
        unsigned long     ulAttributes;
    }
    ADDOCINFO;

## Member Descriptions

`eClass` | The file class of the source document (for example, spreadsheet, word processor, or encapsulation format) as defined by the `ENdocClass` enumerated type in `adinfo.h`.
`eFormat` | The major format of the source document (such as Microsoft Word or Corel Presentation) as defined by the `ENdocFmt` enumerated type in `adinfo.h`.
`lVersion` | The version number of the file format. The number is multiplied by 1000. For example, 1.02 is represented by 1020.
`ulAttributes` | Other attributes of the document as defined by the `ENdocAttributes` enumerated type in `adinfo.h`.

## Discussion

When format detection is enhanced in future releases, new format IDs might be added to the `ENdocFmt` enumerated type. When you use this type, your code should ensure binary compatibility with future releases. For example, if you use an array to access format information based on a format ID, your code should check that the format ID is less than `Max_Fmt` before accessing the data. This ensures that new format codes are detected when you add KeyView binary files from new releases to your existing installation.

© Copyright 2006-2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm