GxPdoGetDriverSummary

Purpose

Returns the driver name and version.

Syntax

GxPdoGetDriverSummary (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
LPDWORD
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.

Comments

The returned string is: "GXPDO Driver for GX1838. Version 1.0, Copyright © Marvin Test Solutions 2002-2013

Example

The following example prints the driver version:

 

CHAR sz[128];

DWORD dwVersion;

SHORT nStatus;

 

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

printf("Driver Version %d.%d", (INT)(dwVersion>>16), (INT)

dwVersion &0xFFFF);

 

See Also

GxPdoGetErrorString