SolFSStorage.GetModuleStatus method (OS edition, Windows platform)
Filter:Pascal Plain C C++ (DLL/Lib) C++ (VCL) C++ (.NET) C# VB.NET Java
OPERATING SYSTEM EDITION FOR WINDOWS
Returns information about the installed driver or helper DLL (on Windows)
class procedure GetModuleStatus( ProductName : AnsiString; Module : Integer; var Installed : boolean; var FileVersionHigh : Integer; var FileVersionLow : Integer; ServiceStatus : PServiceStatus);
long _stdcall StorageGetModuleStatus(char* ProductName, SolFSLongWord Module, SolFSBool *Installed, SolFSLongWord* FileVersionHigh, SolFSLongWord* FileVersionLow, SolFSPointer /* SERVICE_STATUS* */ ServiceStatus);
Shared Sub GetModuleStatus( ByVal ProductName As String, ByVal Module As Integer, ByRef Installed As Boolean, ByRef FileVersionHigh As Integer, ByRef FileVersionLow As Integer, ByRef ServiceStatus As SERVICE_STATUS)
- ProductName - the ProductName string that identifies installation of the driver or helper DLL by your application
- Module - specifies, information about which module is queried
- Installed - on return contains true if the module has been installed or false otherwise.
- FileVersionHigh - on return contains driver file version (high-order values)
- FileVersionLow - on return contains driver file version (low-order values)
- ServiceStatus - if information about the driver was requested, on return this parameter contians various information that describes the driver status. The format of the structure is defined by Windows and is described in Windows SDK.
Values of Module
Use this method to get information about the installed driver or helper DLL. Use Module parameter to specify, which module (driver itself or one of the helper DLLs) should be installed.
ProductName is used to distinguish between installations of the package made by different applications and to prevent the situation when the package is installed by two applications and further deinstallation of one of them removes the package.
FileVersionHigh and FileVersionLow both contain two values - one in the upper 16 bits and the other in the lower 16 bits.
For example for 188.8.131.52
FileVersionHigh - 0x00020020 = "2.32" FileVersionLow - 0x0006001C = "6.28"
This method may be called only from outside of callback / event handlers.