EldoS
 Table of Contents >  CBDisk.GetModuleStatus method
Navigation
Web site
Support
Table Of Contents

CBDisk.GetModuleStatus method

Filter:

Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET   

CallbackDisk     See also    

Overview

Returns information about the installed module

Declaration

[Pascal]
    class procedure GetModuleStatus( ProductName : AnsiString; Module : Integer; var Installed : boolean; var FileVersionHigh : Integer; var FileVersionLow : Integer; ServiceStatus : PServiceStatus);

[C++ (Lib)]
    static void GetModuleStatus( const char * ProductName, int Module, bool *Installed, long *FileVersionHigh, long *FileVersionLow, SERVICE_STATUS *ServiceStatus);

[C++ (VCL)]
    static void __fastcall GetModuleStatus( const char * ProductName, int Module, bool *Installed, long *FileVersionHigh, long *FileVersionLow, SERVICE_STATUS *ServiceStatus);

[C++ (.NET)]
    static void GetModuleStatus( String* ProductName, int Module, bool *Installed, long *FileVersionHigh, long *FileVersionLow, SERVICE_STATUS *ServiceStatus);

[C#]
    static void GetModuleStatus( string ProductName, int Module, ref bool Installed, ref int FileVersionHigh, ref int FileVersionLow, ref SERVICE_STATUS ServiceStatus);

[VB.NET]
    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)

Parameters

  • 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

[Pascal] [C++ (VCL)] [C++ (Lib)] [C++ (.NET)] [C#] [VB.NET] [Java] Value Meaning
CBDISK_MODULE_DRIVER 1 The driver (.sys file)
CBDISK_MODULE_NET_REDIRECTOR_DLL 65536 (0x00010000) Network redirector DLL (CbDiskNetRdr2.dll)
CBDISK_MODULE_MOUNT_NOTIFIER_DLL 131072 (0x00020000) Mount Notifier DLL (CbDiskMntNtf2.dll)

Description

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.

Call from...

This method may be called only from outside of callback / event handlers.

See also

Install     Uninstall    


Got questions or comments about this topic? Tell us about them.
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2011, EldoS Corporation