Returns the driver's name and version.
GxFpgaGetDriverSummary (pszSummary, nSummaryMaxLen, pdwVersion, pnStatus)
Name |
Type |
Comments |
pszSummary |
PSTR |
Buffer to contain a summary indicating last FPGA EEPROM write timestamp and file name. |
nSummaryMaxLen |
SHORT |
The size of the summary string buffer. |
pdwVersion |
PDWORD |
Returned version number. The high order word specifies the major version number where the low order word specifies the minor version number. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The returned string is:” GXFPGA Driver for GX35xx, GX37xx/e, GX38xxe, Version 2.4, Copyright (c) 2009-2018, Marvin Test Solutions, Inc."
The following example prints the driver version:
CHAR sz[128];
DWORD dwVersion;
SHORT nStatus;
GxFpgaGetDriverSummary (sz, sizeof sz, &dwVersion, &nStatus);
printf("Driver Version %d.%d", (INT)(dwVersion>>16), (INT)
dwVersion &0xFFFF);