unit DataSnapServer_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 12.07.2005 0:52:33 from Type Library described below.

// ************************************************************************  //
// Type Lib: D:\home\devrace\FIBPlusExamples\src\DataSnap\DataSnapServer.tlb (1)
// LIBID: {28BAD6D1-54B5-4C70-A813-03A374078815}
// LCID: 0
// Helpfile: 
// HelpString: DataSnapServer Library
// DepndLst: 
//   (1) v1.0 Midas, (C:\WINDOWS\system32\midas.dll)
//   (2) 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, Midas, 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
  DataSnapServerMajorVersion = 1;
  DataSnapServerMinorVersion = 0;

  LIBID_DataSnapServer: TGUID = '{28BAD6D1-54B5-4C70-A813-03A374078815}';

  IID_ICustomerServerModule: TGUID = '{EFAD515F-2B9A-4E59-8E71-E7C087CE7AFF}';
  CLASS_CustomerServerModule: TGUID = '{766CF201-1F4B-4FB2-BF63-E0E7791D5CF9}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  ICustomerServerModule = interface;
  ICustomerServerModuleDisp = dispinterface;

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


// *********************************************************************//
// Interface: ICustomerServerModule
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {EFAD515F-2B9A-4E59-8E71-E7C087CE7AFF}
// *********************************************************************//
  ICustomerServerModule = interface(IAppServer)
    ['{EFAD515F-2B9A-4E59-8E71-E7C087CE7AFF}']
  end;

// *********************************************************************//
// DispIntf:  ICustomerServerModuleDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {EFAD515F-2B9A-4E59-8E71-E7C087CE7AFF}
// *********************************************************************//
  ICustomerServerModuleDisp = dispinterface
    ['{EFAD515F-2B9A-4E59-8E71-E7C087CE7AFF}']
    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 CoCustomerServerModule provides a Create and CreateRemote method to          
// create instances of the default interface ICustomerServerModule exposed by              
// the CoClass CustomerServerModule. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoCustomerServerModule = class
    class function Create: ICustomerServerModule;
    class function CreateRemote(const MachineName: string): ICustomerServerModule;
  end;

implementation

uses ComObj;

class function CoCustomerServerModule.Create: ICustomerServerModule;
begin
  Result := CreateComObject(CLASS_CustomerServerModule) as ICustomerServerModule;
end;

class function CoCustomerServerModule.CreateRemote(const MachineName: string): ICustomerServerModule;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_CustomerServerModule) as ICustomerServerModule;
end;

end.
