Open topic with navigation

# KVStreamInfo

This structure defines a document’s character set and format. It is initialized by calling `fpGetStreamInfo()`. See fpGetStreamInfo().

    typedef struct tag_KVStreamInfo
    {
        KVCharSet    charset;
        ADDOCINFO    adInfo;
    }
    KVStreamInfo;

## Member Descriptions

`charset` | The character set of the source document, if that information is ascertainable. The available character sets are enumerated in `KVCharSet` in `kvtypes.h`. See Convert Character Sets.
`adInfo` | The file class, major format, and version of the source document. A pointer to the `ADDOCINFO` structure. The structure of `ADDOCINFO` is defined in `adinfo.h`. See ADDOCINFO. `adInfo.eClass` represents the class of the source document, as defined by the `ENdocClass` enumerated type. `adInfo.eFormat` represents the format of the source document, as defined by the `ENdocFmt` enumerated type. `adInfo.lVersion` represents the version number of the file format. The number is multiplied by 1000. For example, 1.02 is represented by 1020. `adInfo.ulAttributes` represents other attributes of the document as defined by the `ENdocAttributes` enumerated type.

## 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 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.

© 2006-2018 EntIT Software LLC, a Micro Focus company | Send documentation feedback to Micro Focus Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm