GetDriverVersion function (Installer DLL)
Returns version information from the driver file (not necessarily installed)
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);
- 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)
TRUE / true if the function succeeded or FALSE / false if the function failed.
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 220.127.116.11
FileVersionHigh - 0x00020020 = "2.32" FileVersionLow - 0x0006001C = "6.28"