FT_STATUS
|
FT_GetLibraryVersion
|
(LPDWORD lpdwDLLVersion)
|
Parameters
lpdwDLLVersion
|
Pointer to the DLL version number.
|
Return Value
FT_OK if successful, otherwise the return value is an FT error code.
Remarks
A version number consists of major, minor and build version numbers contained in a 4-byte field (unsigned long). Byte0 (least significant) holds the build version, Byte1 holds the minor version, and Byte2 holds the major version. Byte3 is currently set to zero.
For example, driver version "3.01.02" is represented as 0x00030102. Note that this function does not take a handle, and so it can be called without opening a device.
Not available in Windows CE or Linux.
Example
This example shows how to call FT_GetLibraryVersion.
FT_STATUS status;
DWORD dwLibraryVer;
//
// Get DLL version
//
status = FT_GetLibraryVersion(&dwLibraryVer);
if (status == FT_OK)
printf("Library version = 0x%x\n",dwLibraryVer);
else
printf("error reading library version\n");