# fpGetDocInfoStream()

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

- Format
- File Class
- Major version
- Other attributes

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

## Syntax

    BOOL pascal fpGetDocInfoStream(
        void           *pContext,
        KVInputStream  *pInput,
        ADDOCINFO      *pADDocInfo );

## Arguments

`pContext` | A pointer returned from fpInit() or fpInitWithLicenseData().
`pInput` | A pointer to the input stream.
`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`.

## Discussion

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

_FT_HTML5_bannerTitle.htm