PURPOSE
Returns the version number of the WinDriver kernel module currently
running.
PROTOTYPE
DWORD WD_Version(
HANDLE hWD,
WD_VERSION *pVer);
PARAMETERS
| Name | Type | Input/Output |
|---|---|---|
| HANDLE | Input | |
| WD_VERSION* | ||
| DWORD | Output | |
| CHAR[128] | Output |
DESCRIPTION
| Name | Description |
|---|---|
| hWD | The handle to WinDriver's kernel-mode driver received from WD_Open() [5.2] |
| pVer | Pointer to a WinDriver version information structure: |
| dwVer | The 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");
}