GetDriverStatus function (Installer DLL)
Returns information about the installed driver
BOOL __stdcall GetDriverStatusA(
const char * ProgramName,
unsigned long *FileVersionHigh,
unsigned long *FileVersionLow);
BOOL __stdcall GetDriverStatusW( const unsigned short* ProgramName, BOOL *DriverInstalled, unsigned long *FileVersionHigh, unsigned long *FileVersionLow);
TRUE / true if the function succeeded or FALSE / false if the function failed.
Use this method to get information about the installed driver. ProgramName is used to distinguish between installations of the driver made by different applications and to prevent the situation when the driver is installed by two applications and further deinstallation of one of them removes the driver.
FileVersionHigh and FileVersionLow both contain two values - one in the upper 16 bits and the other in the lower 16 bits.
For example for 18.104.22.168
FileVersionHigh - 0x00020020 = "2.32" FileVersionLow - 0x0006001C = "6.28"