DataService_TLB.pas
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:6k
源码类别:

Delphi控件源码

开发平台:

Delphi

  1. unit DataService_TLB;
  2. // ************************************************************************ //
  3. // WARNING                                                                    
  4. // -------                                                                    
  5. // The types declared in this file were generated from data read from a       
  6. // Type Library. If this type library is explicitly or indirectly (via        
  7. // another type library referring to this type library) re-imported, or the   
  8. // 'Refresh' command of the Type Library Editor activated while editing the   
  9. // Type Library, the contents of this file will be regenerated and all        
  10. // manual modifications will be lost.                                         
  11. // ************************************************************************ //
  12. // PASTLWTR : $Revision:   1.130  $
  13. // File generated on 6/6/2001 2:29:06 AM from Type Library described below.
  14. // ************************************************************************  //
  15. // Type Lib: C:md6code23DataServiceDataService.tlb (1)
  16. // LIBID: {DAEA8F54-7BDA-4B0E-BA66-A589A545CABE}
  17. // LCID: 0
  18. // Helpfile: 
  19. // DepndLst: 
  20. //   (1) v2.0 stdole, (C:WINDOWSSystem32stdole2.tlb)
  21. //   (2) v4.0 StdVCL, (C:WINDOWSsystem32stdvcl40.dll)
  22. //   (3) v1.0 Midas, (C:WINDOWSSystem32midas.dll)
  23. // ************************************************************************ //
  24. {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
  25. {$WARN SYMBOL_PLATFORM OFF}
  26. {$WRITEABLECONST ON}
  27. interface
  28. uses ActiveX, Classes, Graphics, Midas, StdVCL, Variants, Windows;
  29.   
  30. // *********************************************************************//
  31. // GUIDS declared in the TypeLibrary. Following prefixes are used:        
  32. //   Type Libraries     : LIBID_xxxx                                      
  33. //   CoClasses          : CLASS_xxxx                                      
  34. //   DISPInterfaces     : DIID_xxxx                                       
  35. //   Non-DISP interfaces: IID_xxxx                                        
  36. // *********************************************************************//
  37. const
  38.   // TypeLibrary Major and minor versions
  39.   DataServiceMajorVersion = 1;
  40.   DataServiceMinorVersion = 0;
  41.   LIBID_DataService: TGUID = '{DAEA8F54-7BDA-4B0E-BA66-A589A545CABE}';
  42.   IID_IDataServiceObj: TGUID = '{3AB54780-6B56-4D31-8F29-86F69B013FFD}';
  43.   CLASS_DataServiceObj: TGUID = '{8CB4BA13-F15B-4659-972C-46B4E0195AB0}';
  44. type
  45. // *********************************************************************//
  46. // Forward declaration of types defined in TypeLibrary                    
  47. // *********************************************************************//
  48.   IDataServiceObj = interface;
  49.   IDataServiceObjDisp = dispinterface;
  50. // *********************************************************************//
  51. // Declaration of CoClasses defined in Type Library                       
  52. // (NOTE: Here we map each CoClass to its Default Interface)              
  53. // *********************************************************************//
  54.   DataServiceObj = IDataServiceObj;
  55. // *********************************************************************//
  56. // Interface: IDataServiceObj
  57. // Flags:     (4416) Dual OleAutomation Dispatchable
  58. // GUID:      {3AB54780-6B56-4D31-8F29-86F69B013FFD}
  59. // *********************************************************************//
  60.   IDataServiceObj = interface(IAppServer)
  61.     ['{3AB54780-6B56-4D31-8F29-86F69B013FFD}']
  62.   end;
  63. // *********************************************************************//
  64. // DispIntf:  IDataServiceObjDisp
  65. // Flags:     (4416) Dual OleAutomation Dispatchable
  66. // GUID:      {3AB54780-6B56-4D31-8F29-86F69B013FFD}
  67. // *********************************************************************//
  68.   IDataServiceObjDisp = dispinterface
  69.     ['{3AB54780-6B56-4D31-8F29-86F69B013FFD}']
  70.     function  AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; 
  71.                               MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
  72.     function  AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer; 
  73.                             Options: Integer; const CommandText: WideString; 
  74.                             var Params: OleVariant; var OwnerData: OleVariant): OleVariant; dispid 20000001;
  75.     function  AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
  76.     function  AS_GetProviderNames: OleVariant; dispid 20000003;
  77.     function  AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
  78.     function  AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; 
  79.                             var OwnerData: OleVariant): OleVariant; dispid 20000005;
  80.     procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString; 
  81.                          var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
  82.   end;
  83. // *********************************************************************//
  84. // The Class CoDataServiceObj provides a Create and CreateRemote method to          
  85. // create instances of the default interface IDataServiceObj exposed by              
  86. // the CoClass DataServiceObj. The functions are intended to be used by             
  87. // clients wishing to automate the CoClass objects exposed by the         
  88. // server of this typelibrary.                                            
  89. // *********************************************************************//
  90.   CoDataServiceObj = class
  91.     class function Create: IDataServiceObj;
  92.     class function CreateRemote(const MachineName: string): IDataServiceObj;
  93.   end;
  94. implementation
  95. uses ComObj;
  96. class function CoDataServiceObj.Create: IDataServiceObj;
  97. begin
  98.   Result := CreateComObject(CLASS_DataServiceObj) as IDataServiceObj;
  99. end;
  100. class function CoDataServiceObj.CreateRemote(const MachineName: string): IDataServiceObj;
  101. begin
  102.   Result := CreateRemoteComObject(MachineName, CLASS_DataServiceObj) as IDataServiceObj;
  103. end;
  104. end.