unit Project1_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 02-09-2005 19:46:11 from Type Library described below.

// ************************************************************************  //
// Type Lib: C:\Documents and Settings\jacek\Moje dokumenty\Wydawnictwa\Delphi 2005\(2) tekst - OK\zrodla - dodac numery projektow\13. Technologie COM\268a. Automatyzacja serwer (Delphi VCL.Win32)\Project1.tlb (1)
// LIBID: {B92C7B8F-EDE1-4A5D-A234-0975CDCAFAE7}
// LCID: 0
// Helpfile: 
// HelpString: Project1 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
  Project1MajorVersion = 1;
  Project1MinorVersion = 0;

  LIBID_Project1: TGUID = '{B92C7B8F-EDE1-4A5D-A234-0975CDCAFAE7}';

  IID_IAutoProgressBar: TGUID = '{CF9213F8-FD45-4B8C-A1D4-5AC2AAD972CC}';
  CLASS_AutoProgressBar: TGUID = '{2A2FF8DD-C0F1-45DA-9F59-5DE04167F730}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IAutoProgressBar = interface;
  IAutoProgressBarDisp = dispinterface;

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


// *********************************************************************//
// Interface: IAutoProgressBar
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {CF9213F8-FD45-4B8C-A1D4-5AC2AAD972CC}
// *********************************************************************//
  IAutoProgressBar = interface(IDispatch)
    ['{CF9213F8-FD45-4B8C-A1D4-5AC2AAD972CC}']
    procedure Clear; safecall;
    function Get_Position: SYSINT; safecall;
    procedure Set_Position(Value: SYSINT); safecall;
    property Position: SYSINT read Get_Position write Set_Position;
  end;

// *********************************************************************//
// DispIntf:  IAutoProgressBarDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {CF9213F8-FD45-4B8C-A1D4-5AC2AAD972CC}
// *********************************************************************//
  IAutoProgressBarDisp = dispinterface
    ['{CF9213F8-FD45-4B8C-A1D4-5AC2AAD972CC}']
    procedure Clear; dispid 201;
    property Position: SYSINT dispid 202;
  end;

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

implementation

uses ComObj;

class function CoAutoProgressBar.Create: IAutoProgressBar;
begin
  Result := CreateComObject(CLASS_AutoProgressBar) as IAutoProgressBar;
end;

class function CoAutoProgressBar.CreateRemote(const MachineName: string): IAutoProgressBar;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_AutoProgressBar) as IAutoProgressBar;
end;

end.
