# fpGetDocInfoFile()

This function gets the following format information for a file and populates the `ADDOCINFO` structure:

- File format
- File class
- Major version
- Other attributes

The possible values are defined in `adinfo.h`.

An extended error code is set in `pContext` if an invalid input file is provided. You can retrieve the error code by using fpGetKvErrorCodeEx().

## Syntax

    BOOL pascal fpGetDocInfoFile(
        void       *pContext,
        char       *szFile,
        ADDOCINFO  *pADDocInfo );

## Arguments

`pContext` | A pointer returned from fpInit() or fpInitWithLicenseData().
`szFile` | A pointer to the input file.
`pADDOCINFO` | The format, file class, and version of the source document. A pointer to the ADDOCINFO structure. The structure of `ADDOCINFO` is defined in `adinfo.h`.

## Returns

- If the format information is extracted, the return value for this function is `TRUE`.
- If the format information is not extracted, the return value is `FALSE`. If `FALSE` is returned, you can retrieve the extended error code by using fpGetKvErrorCodeEx().

## Discussion

This function runs in process or out of process. See The Filter Process Model.

© Copyright 2016-2020 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