unit PartWrap_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 31.05.2004 10:39:46 from Type Library described below.

// ************************************************************************  //
// Type Lib: E:\Technolog\PartWrap\PartWrap.tlb (1)
// LIBID: {D7EAB47D-0F17-41B3-AEDC-1AFE0062A8E3}
// LCID: 0
// Helpfile: 
// HelpString: PartWrap 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
  PartWrapMajorVersion = 1;
  PartWrapMinorVersion = 0;

  LIBID_PartWrap: TGUID = '{D7EAB47D-0F17-41B3-AEDC-1AFE0062A8E3}';

  IID_IPart: TGUID = '{C54FEC45-B021-40DD-9D6F-F365A061EBAD}';
  CLASS_Part: TGUID = '{12CD8D42-8AD0-4AD6-90CE-B01477EE6FAE}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IPart = interface;
  IPartDisp = dispinterface;

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


// *********************************************************************//
// Interface: IPart
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {C54FEC45-B021-40DD-9D6F-F365A061EBAD}
// *********************************************************************//
  IPart = interface(IDispatch)
    ['{C54FEC45-B021-40DD-9D6F-F365A061EBAD}']
    procedure Deinit; safecall;
    procedure Init(ParentHandle: Integer; const UserName: WideString; const Password: WideString); safecall;
    procedure ShowForm(const FormName: WideString); safecall;
  end;

// *********************************************************************//
// DispIntf:  IPartDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {C54FEC45-B021-40DD-9D6F-F365A061EBAD}
// *********************************************************************//
  IPartDisp = dispinterface
    ['{C54FEC45-B021-40DD-9D6F-F365A061EBAD}']
    procedure Deinit; dispid 201;
    procedure Init(ParentHandle: Integer; const UserName: WideString; const Password: WideString); dispid 202;
    procedure ShowForm(const FormName: WideString); dispid 203;
  end;

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

implementation

uses ComObj;

class function CoPart.Create: IPart;
begin
  Result := CreateComObject(CLASS_Part) as IPart;
end;

class function CoPart.CreateRemote(const MachineName: string): IPart;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_Part) as IPart;
end;

end.
