GxAoGetDriverSummary

Purpose

Returns the driver's name and version.

Syntax

GxAoGetDriverSummary (pszSummary, nSummaryMaxLen, pdwVersion, pnStatus)

Parameters

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 and patch.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The returned string is:

"GXAO Driver for GX1642, GX1648, GX1649 and GX1632e Version 1.4.3, Copyright(c) 2002-2020 Marvin Test Solutions, Inc."

Example

The following example prints the driver version:

 

CHAR    sz[128];

DWORD   dwVersion;

SHORT   nStatus;

GxAoGetDriverSummary (sz, sizeof sz, &dwVersion, &nStatus);

printf("Driver Version %d.%d.%d", (INT)(dwVersion>>16), (INT)
       ((dwVersion>>8) & 0xFF), (INT)(dwVersion & 0xFF);

 

See Also

GxAoGetErrorString