unit CM2Gen_TLB;

// ************************************************************************ //
// WARNING                                                                    
// -------                                                                    
// The types declared in this file were generated from data read from a       
// Type Library. If this type library is explicitly or indirectly (via        
// another type library referring to this type library) re-imported, or the   
// 'Refresh' command of the Type Library Editor activated while editing the   
// Type Library, the contents of this file will be regenerated and all        
// manual modifications will be lost.                                         
// ************************************************************************ //

// PASTLWTR : 1.2
// File generated on 20-06-2006 23:04:36 from Type Library described below.

// ************************************************************************  //
// Type Lib: D:\LPL\Source Codes\coolmon\CoolMon 2\Source\PlugIn Code\COM+\General\Test\CM2Gen_Test.tlb (1)
// LIBID: {7E94A731-DF79-434A-A883-7C1D1EEE6D4D}
// LCID: 0
// Helpfile: 
// HelpString: CM2Gen_Test Library
// DepndLst: 
//   (1) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface

uses Windows, ActiveX, Classes, Graphics, StdVCL, Variants;
  

// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:        
//   Type Libraries     : LIBID_xxxx                                      
//   CoClasses          : CLASS_xxxx                                      
//   DISPInterfaces     : DIID_xxxx                                       
//   Non-DISP interfaces: IID_xxxx                                        
// *********************************************************************//
const
  // TypeLibrary Major and minor versions
  CM2GenMajorVersion = 1;
  CM2GenMinorVersion = 0;

  LIBID_CM2Gen: TGUID = '{7E94A731-DF79-434A-A883-7C1D1EEE6D4D}';

  IID_ICM2GenPlug: TGUID = '{2B2F26F1-A7E8-4D68-B74C-BAB14D3D4F6D}';
  CLASS_CM2GenPlug: TGUID = '{807C8D3D-644D-4196-B975-660C7233DDAE}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  ICM2GenPlug = interface;
  ICM2GenPlugDisp = dispinterface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
// *********************************************************************//
  CM2GenPlug = ICM2GenPlug;


// *********************************************************************//
// Interface: ICM2GenPlug
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {2B2F26F1-A7E8-4D68-B74C-BAB14D3D4F6D}
// *********************************************************************//
  ICM2GenPlug = interface(IDispatch)
    ['{2B2F26F1-A7E8-4D68-B74C-BAB14D3D4F6D}']
    procedure Name(out Name: WideString); safecall;
    procedure Version(out Version: Word); safecall;
    procedure RequiredCoreVersion(out RCV: Word); safecall;
    procedure GetInfoCount(out InfoCount: Integer); safecall;
    procedure GetInfo(Index: Integer; out InfoName: WideString; out InfoVar: WideString); safecall;
    procedure GetSensorCount(out SensorCount: Integer); safecall;
    procedure GetSensorNameOnly(Index: Integer; out SensorName: WideString); safecall;
    procedure GetSensor(Index: Integer; const Parameters: WideString; out SensorName: WideString; 
                        out IsNumeric: Byte; out SensorString: WideString); safecall;
    procedure Init; safecall;
    procedure Terminating; safecall;
    procedure Setup; safecall;
  end;

// *********************************************************************//
// DispIntf:  ICM2GenPlugDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {2B2F26F1-A7E8-4D68-B74C-BAB14D3D4F6D}
// *********************************************************************//
  ICM2GenPlugDisp = dispinterface
    ['{2B2F26F1-A7E8-4D68-B74C-BAB14D3D4F6D}']
    procedure Name(out Name: WideString); dispid 201;
    procedure Version(out Version: {??Word}OleVariant); dispid 202;
    procedure RequiredCoreVersion(out RCV: {??Word}OleVariant); dispid 203;
    procedure GetInfoCount(out InfoCount: Integer); dispid 204;
    procedure GetInfo(Index: Integer; out InfoName: WideString; out InfoVar: WideString); dispid 205;
    procedure GetSensorCount(out SensorCount: Integer); dispid 206;
    procedure GetSensorNameOnly(Index: Integer; out SensorName: WideString); dispid 207;
    procedure GetSensor(Index: Integer; const Parameters: WideString; out SensorName: WideString; 
                        out IsNumeric: Byte; out SensorString: WideString); dispid 208;
    procedure Init; dispid 209;
    procedure Terminating; dispid 210;
    procedure Setup; dispid 211;
  end;

// *********************************************************************//
// The Class CoCM2GenPlug provides a Create and CreateRemote method to          
// create instances of the default interface ICM2GenPlug exposed by              
// the CoClass CM2GenPlug. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoCM2GenPlug = class
    class function Create: ICM2GenPlug;
    class function CreateRemote(const MachineName: string): ICM2GenPlug;
  end;

implementation

uses ComObj;

class function CoCM2GenPlug.Create: ICM2GenPlug;
begin
  Result := CreateComObject(CLASS_CM2GenPlug) as ICM2GenPlug;
end;

class function CoCM2GenPlug.CreateRemote(const MachineName: string): ICM2GenPlug;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_CM2GenPlug) as ICM2GenPlug;
end;

end.
