CallbackFilter

Instant control over file and folder operations in Windows and .NET applications

GetDriverVersion function (Installer DLL)

Installer DLL     See also    

Overview

Returns version information from the driver file (not necessarily installed)

Declaration

    BOOL __stdcall GetDriverVersionA( const char * DriverFile, unsigned long *FileVersionHigh, unsigned long *FileVersionLow);
    BOOL __stdcall GetDriverVersionW( const unsigned short* DriverFile, unsigned long *FileVersionHigh, unsigned long *FileVersionLow);

Parameters

  • DriverFile - the fully qualified file name of the driver whose version is to be extracted
  • FileVersionHigh - on return contains driver file version (high-order values)
  • FileVersionLow - on return contains driver file version (low-order values)

Return values

TRUE / true if the function succeeded or FALSE / false if the function failed.

Description

Use this method to get the version numbers from the driver file. The driver doesn't need to be installed for the function to succeed.

FileVersionHigh and FileVersionLow both contain two values - one in the upper 16 bits and the other in the lower 16 bits.
For example for 2.32.6.28

FileVersionHigh - 0x00020020 = "2.32"
FileVersionLow - 0x0006001C = "6.28"

See also

GetDriverStatus     InstallDriver     UninstallDriver    

Back to top