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

Delphi控件源码

开发平台:

Delphi

  1. unit AppSPlus_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.126  $
  13. // File generated on 5/13/2001 1:00:17 AM from Type Library described below.
  14. // ************************************************************************  //
  15. // Type Lib: C:md6code17AppSPlusAppSPlus.tlb (1)
  16. // LIBID: {E31849A6-4A82-11D3-B9F1-00000100A27B}
  17. // LCID: 0
  18. // Helpfile: 
  19. // DepndLst: 
  20. //   (1) v1.0 Midas, (C:WINDOWSSystem32midas.dll)
  21. //   (2) v2.0 stdole, (C:WINDOWSSystem32stdole2.tlb)
  22. //   (3) v4.0 StdVCL, (C:WINDOWSsystem32stdvcl40.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.   AppSPlusMajorVersion = 1;
  40.   AppSPlusMinorVersion = 0;
  41.   LIBID_AppSPlus: TGUID = '{E31849A6-4A82-11D3-B9F1-00000100A27B}';
  42.   IID_IAppServerPlus: TGUID = '{E31849A7-4A82-11D3-B9F1-00000100A27B}';
  43.   CLASS_AppServerPlus: TGUID = '{E31849A9-4A82-11D3-B9F1-00000100A27B}';
  44. type
  45. // *********************************************************************//
  46. // Forward declaration of types defined in TypeLibrary                    
  47. // *********************************************************************//
  48.   IAppServerPlus = interface;
  49.   IAppServerPlusDisp = dispinterface;
  50. // *********************************************************************//
  51. // Declaration of CoClasses defined in Type Library                       
  52. // (NOTE: Here we map each CoClass to its Default Interface)              
  53. // *********************************************************************//
  54.   AppServerPlus = IAppServerPlus;
  55. // *********************************************************************//
  56. // Interface: IAppServerPlus
  57. // Flags:     (4416) Dual OleAutomation Dispatchable
  58. // GUID:      {E31849A7-4A82-11D3-B9F1-00000100A27B}
  59. // *********************************************************************//
  60.   IAppServerPlus = interface(IAppServer)
  61.     ['{E31849A7-4A82-11D3-B9F1-00000100A27B}']
  62.     procedure Login(const Name: WideString; const Password: WideString); safecall;
  63.   end;
  64. // *********************************************************************//
  65. // DispIntf:  IAppServerPlusDisp
  66. // Flags:     (4416) Dual OleAutomation Dispatchable
  67. // GUID:      {E31849A7-4A82-11D3-B9F1-00000100A27B}
  68. // *********************************************************************//
  69.   IAppServerPlusDisp = dispinterface
  70.     ['{E31849A7-4A82-11D3-B9F1-00000100A27B}']
  71.     procedure Login(const Name: WideString; const Password: WideString); dispid 1;
  72.     function  AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; 
  73.                               MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
  74.     function  AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer; 
  75.                             Options: Integer; const CommandText: WideString; 
  76.                             var Params: OleVariant; var OwnerData: OleVariant): OleVariant; dispid 20000001;
  77.     function  AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
  78.     function  AS_GetProviderNames: OleVariant; dispid 20000003;
  79.     function  AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
  80.     function  AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; 
  81.                             var OwnerData: OleVariant): OleVariant; dispid 20000005;
  82.     procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString; 
  83.                          var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
  84.   end;
  85. // *********************************************************************//
  86. // The Class CoAppServerPlus provides a Create and CreateRemote method to          
  87. // create instances of the default interface IAppServerPlus exposed by              
  88. // the CoClass AppServerPlus. The functions are intended to be used by             
  89. // clients wishing to automate the CoClass objects exposed by the         
  90. // server of this typelibrary.                                            
  91. // *********************************************************************//
  92.   CoAppServerPlus = class
  93.     class function Create: IAppServerPlus;
  94.     class function CreateRemote(const MachineName: string): IAppServerPlus;
  95.   end;
  96. implementation
  97. uses ComObj;
  98. class function CoAppServerPlus.Create: IAppServerPlus;
  99. begin
  100.   Result := CreateComObject(CLASS_AppServerPlus) as IAppServerPlus;
  101. end;
  102. class function CoAppServerPlus.CreateRemote(const MachineName: string): IAppServerPlus;
  103. begin
  104.   Result := CreateRemoteComObject(MachineName, CLASS_AppServerPlus) as IAppServerPlus;
  105. end;
  106. end.