unit EmpSrvr_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 : $Revision:   1.126  $
// File generated on 5/16/2001 10:02:45 AM from Type Library described below.

// ************************************************************************  //
// Type Lib: C:\D\D6Proj\Cds\Server\EmpSrvr.tlb (1)
// LIBID: {FE190B6F-4DCA-439C-AD52-8674B4C483E6}
// LCID: 0
// Helpfile: 
// DepndLst: 
//   (1) v1.0 Midas, (C:\WINNT\System32\midas.dll)
//   (2) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
//   (3) v4.0 StdVCL, (C:\WINNT\System32\STDVCL40.DLL)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}

interface

uses ActiveX, Classes, Graphics, Midas, StdVCL, Variants, Windows;
  


// *********************************************************************//
// 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
  EmpSrvrMajorVersion = 1;
  EmpSrvrMinorVersion = 0;

  LIBID_EmpSrvr: TGUID = '{FE190B6F-4DCA-439C-AD52-8674B4C483E6}';

  IID_IEmployeeDm: TGUID = '{75964EF0-F52A-46BF-8D5B-B66E73B63EBF}';
  CLASS_EmployeeDm: TGUID = '{07DB2CF8-9AFA-4E3C-BE30-EAD50ABED746}';
  IID_IChildDm: TGUID = '{D036AB39-A854-41A3-9934-E39ABDAB6412}';
  IID_ICustomerDm: TGUID = '{89C36E19-AFC1-4406-AF5F-5E518E0FAE4B}';
  CLASS_CustomerDm: TGUID = '{C41B2711-EF81-4DD6-A5D5-D0E7F8042587}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IEmployeeDm = interface;
  IEmployeeDmDisp = dispinterface;
  IChildDm = interface;
  IChildDmDisp = dispinterface;
  ICustomerDm = interface;
  ICustomerDmDisp = dispinterface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
// *********************************************************************//
  EmployeeDm = IEmployeeDm;
  CustomerDm = ICustomerDm;


// *********************************************************************//
// Interface: IEmployeeDm
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {75964EF0-F52A-46BF-8D5B-B66E73B63EBF}
// *********************************************************************//
  IEmployeeDm = interface(IAppServer)
    ['{75964EF0-F52A-46BF-8D5B-B66E73B63EBF}']
    function  Get_CustomerRdm: ICustomerDm; safecall;
    property CustomerRdm: ICustomerDm read Get_CustomerRdm;
  end;

// *********************************************************************//
// DispIntf:  IEmployeeDmDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {75964EF0-F52A-46BF-8D5B-B66E73B63EBF}
// *********************************************************************//
  IEmployeeDmDisp = dispinterface
    ['{75964EF0-F52A-46BF-8D5B-B66E73B63EBF}']
    property CustomerRdm: ICustomerDm dispid 1;
    function  AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; 
                              MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
    function  AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer; 
                            Options: Integer; const CommandText: WideString; 
                            var Params: OleVariant; var OwnerData: OleVariant): OleVariant; dispid 20000001;
    function  AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
    function  AS_GetProviderNames: OleVariant; dispid 20000003;
    function  AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
    function  AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; 
                            var OwnerData: OleVariant): OleVariant; dispid 20000005;
    procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString; 
                         var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
  end;

// *********************************************************************//
// Interface: IChildDm
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {D036AB39-A854-41A3-9934-E39ABDAB6412}
// *********************************************************************//
  IChildDm = interface(IAppServer)
    ['{D036AB39-A854-41A3-9934-E39ABDAB6412}']
    function  Get_EmployeeRdm: IEmployeeDm; safecall;
    procedure Set_EmployeeRdm(const Value: IEmployeeDm); safecall;
    property EmployeeRdm: IEmployeeDm read Get_EmployeeRdm write Set_EmployeeRdm;
  end;

// *********************************************************************//
// DispIntf:  IChildDmDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {D036AB39-A854-41A3-9934-E39ABDAB6412}
// *********************************************************************//
  IChildDmDisp = dispinterface
    ['{D036AB39-A854-41A3-9934-E39ABDAB6412}']
    property EmployeeRdm: IEmployeeDm dispid 1;
    function  AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; 
                              MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
    function  AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer; 
                            Options: Integer; const CommandText: WideString; 
                            var Params: OleVariant; var OwnerData: OleVariant): OleVariant; dispid 20000001;
    function  AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
    function  AS_GetProviderNames: OleVariant; dispid 20000003;
    function  AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
    function  AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; 
                            var OwnerData: OleVariant): OleVariant; dispid 20000005;
    procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString; 
                         var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
  end;

// *********************************************************************//
// Interface: ICustomerDm
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {89C36E19-AFC1-4406-AF5F-5E518E0FAE4B}
// *********************************************************************//
  ICustomerDm = interface(IChildDm)
    ['{89C36E19-AFC1-4406-AF5F-5E518E0FAE4B}']
  end;

// *********************************************************************//
// DispIntf:  ICustomerDmDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {89C36E19-AFC1-4406-AF5F-5E518E0FAE4B}
// *********************************************************************//
  ICustomerDmDisp = dispinterface
    ['{89C36E19-AFC1-4406-AF5F-5E518E0FAE4B}']
    property EmployeeRdm: IEmployeeDm dispid 1;
    function  AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; 
                              MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
    function  AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer; 
                            Options: Integer; const CommandText: WideString; 
                            var Params: OleVariant; var OwnerData: OleVariant): OleVariant; dispid 20000001;
    function  AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
    function  AS_GetProviderNames: OleVariant; dispid 20000003;
    function  AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
    function  AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; 
                            var OwnerData: OleVariant): OleVariant; dispid 20000005;
    procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString; 
                         var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
  end;

// *********************************************************************//
// The Class CoEmployeeDm provides a Create and CreateRemote method to          
// create instances of the default interface IEmployeeDm exposed by              
// the CoClass EmployeeDm. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoEmployeeDm = class
    class function Create: IEmployeeDm;
    class function CreateRemote(const MachineName: string): IEmployeeDm;
  end;

// *********************************************************************//
// The Class CoCustomerDm provides a Create and CreateRemote method to          
// create instances of the default interface ICustomerDm exposed by              
// the CoClass CustomerDm. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoCustomerDm = class
    class function Create: ICustomerDm;
    class function CreateRemote(const MachineName: string): ICustomerDm;
  end;

implementation

uses ComObj;

class function CoEmployeeDm.Create: IEmployeeDm;
begin
  Result := CreateComObject(CLASS_EmployeeDm) as IEmployeeDm;
end;

class function CoEmployeeDm.CreateRemote(const MachineName: string): IEmployeeDm;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_EmployeeDm) as IEmployeeDm;
end;

class function CoCustomerDm.Create: ICustomerDm;
begin
  Result := CreateComObject(CLASS_CustomerDm) as ICustomerDm;
end;

class function CoCustomerDm.CreateRemote(const MachineName: string): ICustomerDm;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_CustomerDm) as ICustomerDm;
end;

end.
