unit PWithTypeInfo_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 2003/9/7 ¤U¤È 04:50:01 from Type Library described below.

// ************************************************************************  //
// Type Lib: E:\Leewei\Books\InsideVCL\Demos\Chap07\WithTypeInfo\PWithTypeInfo.tlb (1)
// LIBID: {C0AC0CC4-B6DC-494A-B3B3-1FF507BF4B24}
// LCID: 0
// Helpfile: 
// HelpString: PWithTypeInfo Library
// DepndLst: 
//   (1) v2.0 stdole, (F:\WINNT\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
  PWithTypeInfoMajorVersion = 1;
  PWithTypeInfoMinorVersion = 0;

  LIBID_PWithTypeInfo: TGUID = '{C0AC0CC4-B6DC-494A-B3B3-1FF507BF4B24}';

  IID_IWithTypeInfo: TGUID = '{2EAE4499-D6EA-49F4-A8E4-5F230059056F}';
  CLASS_WithTypeInfo: TGUID = '{8B957B27-6942-45B0-8EEB-2B1175B1767A}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IWithTypeInfo = interface;

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


// *********************************************************************//
// Interface: IWithTypeInfo
// Flags:     (256) OleAutomation
// GUID:      {2EAE4499-D6EA-49F4-A8E4-5F230059056F}
// *********************************************************************//
  IWithTypeInfo = interface(IUnknown)
    ['{2EAE4499-D6EA-49F4-A8E4-5F230059056F}']
  end;

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

implementation

uses ComObj;

class function CoWithTypeInfo.Create: IWithTypeInfo;
begin
  Result := CreateComObject(CLASS_WithTypeInfo) as IWithTypeInfo;
end;

class function CoWithTypeInfo.CreateRemote(const MachineName: string): IWithTypeInfo;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_WithTypeInfo) as IWithTypeInfo;
end;

end.
