C_GetFileCreatorVersion

Call C_GetFileCreatorVersion to find out which version of OrcaFlex wrote a data file or simulation file. The file of interest is specified by the lpFileName parameter and the version is returned as a string in lpVersion.

int C_GetFileCreatorVersion(

LPCTSTR lpFileName,

LPTSTR lpVersion,

int *lpStatus

);

Parameters

lpFileName (IN)

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

lpVersion (OUT)

Points to a block of memory to receive the version string. The block of memory must be large enough for the version string. To find out how much memory to allocate call C_GetFileCreatorVersion passing NULL as the lpVersion parameter and use the return value to determine how much memory to allocate.

lpStatus (OUT)

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

Return Value

The length of the version string (including the null-terminating character).

Unicode and ANSI

The Unicode function name is C_GetFileCreatorVersionW and the ANSI function name is C_GetFileCreatorVersionA.