C_GetBinaryFileType

Call C_GetBinaryFileType to find more information about the contents of a data or simulation file. Typically this function is called to distinguish between static state simulation files and dynamic simulation files which both commonly use the same '.sim' file extension.

void C_GetBinaryFileType(

LPCTSTR lpFileName,

int *lpFileType,

int *lpStatus

);

Parameters

lpFileName (IN)

Points to a null-terminated string containing the name of a data file or simulation file.

lpFileType (OUT)

Points to a variable in which the file type will be returned. This will be one of the following constants which are defined in OrcFxAPI.h:

lpStatus (OUT)

Points to a variable in which the status result for the function call will be returned.

Unicode and ANSI

The Unicode function name is C_GetBinaryFileTypeW and the ANSI function name is C_GetBinaryFileTypeA.