Returns the driver name and version.
GxPioGetDriverSummary (pszSummary ,nSummaryMaxLen, pdwVersion,
pnStatus)
Name |
Type |
Description |
pszSummary |
PSTR |
Buffer to the returned driver summary string. |
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: "GXPIO Driver for GX5731 and GX5732. Version 2.0, Copyright © Marvin Test Solutions 2006.".
The following example prints the driver version:
CHAR sz[128];
DWORD dwVersion;
SHORT nStatus;
GxPioGetDriverSummary (sz, sizeof sz, &dwVersion, &nStatus);
printf("Driver Version %d.%d", (INT)(dwVersion>>16), (INT)
dwVersion &0xFFFF);