5.3.WD_Version()

Purpose

Returns the version number of the WinDriver kernel module currently running.

Prototype
DWORD WD_Version(
    HANDLE hWD,
    WD_VERSION *pVer);
Parameters
NameTypeInput/Output
hWDHANDLEInput
pVerWD_VERSION*
dwVerDWORDOutput
cVerCHAR[128]Output
Description
NameDescription
hWDHandle to WinDriver's kernel-mode driver as received from WD_Open()[5.2]
pVerPointer to a WinDriver version information structure:
dwVerThe version number
cVer Version information string.
The version string's size is limited to 128 characters (including the NULL terminator character).
Return Value

Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise[A].

Example
WD_VERSION ver;

BZERO(ver);
WD_Version(hWD, &ver);
printf("%s\n", ver.cVer);
if (ver.dwVer < WD_VER)
{
    printf("Error - incorrect WinDriver version\n");
}