This structure contains the format, file class, and version number of the source document. The structure is defined in adinfo.h
, and is initialized by calling the fpGetDocInfoFile() or fpGetDocInfoStream() functions.
typedef struct { ENdocClass eClass; ENdocFmt eFormat; long lVersion; unsigned long ulAttributes; } ADDOCINFO, *ADDOCINFOPTR;
When format detection is enhanced in future releases, new format IDs might be added to the ENdocFmt
enumerated type. When using 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.
|