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

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().


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


pContext A pointer returned from fpInit().
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.



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