DWORD WD_Version(
HANDLE hWD,
WD_VERSION *pVer);
| Name | Type | Input/Output |
|---|---|---|
| hWD | HANDLE | Input |
| pVer | WD_VERSION* | |
| • dwVer | DWORD | Output |
| • cVer | CHAR[128] | Output |
| Name | Description |
|---|---|
| hWD | Handle to WinDriver's kernel-mode driver as
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). |
WD_STATUS_SUCCESS(0) on success, or
an appropriate error code otherwise [A].
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");
}