P_server_TLB.pas
上传用户:psxgmh
上传日期:2013-04-08
资源大小:15112k
文件大小:7k
源码类别:

Delphi/CppBuilder

开发平台:

Delphi

  1. unit P_server_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 2002-2-20 17:53:59 from Type Library described below.
  14. // ************************************************************************  //
  15. // Type Lib: E:论文应用篇物资管理数据库应用程序(三层)CODE服务器端程序P_server.tlb (1)
  16. // LIBID: {5025EA22-EFED-447A-8EB8-0837FA5E7E9C}
  17. // LCID: 0
  18. // Helpfile: 
  19. // DepndLst: 
  20. //   (1) v1.0 Midas, (D:WINNTSystem32midas.dll)
  21. //   (2) v2.0 stdole, (D:WINNTSystem32stdole2.tlb)
  22. //   (3) v4.0 StdVCL, (D:WINNTSystem32stdvcl40.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.   P_serverMajorVersion = 1;
  40.   P_serverMinorVersion = 0;
  41.   LIBID_P_server: TGUID = '{5025EA22-EFED-447A-8EB8-0837FA5E7E9C}';
  42.   IID_IWZGL: TGUID = '{0628A46E-A1E9-447B-B20A-2936B930FF57}';
  43.   CLASS_WZGL: TGUID = '{F426F9B5-2B0F-42FA-A954-405571A12550}';
  44. type
  45. // *********************************************************************//
  46. // Forward declaration of types defined in TypeLibrary                    
  47. // *********************************************************************//
  48.   IWZGL = interface;
  49.   IWZGLDisp = dispinterface;
  50. // *********************************************************************//
  51. // Declaration of CoClasses defined in Type Library                       
  52. // (NOTE: Here we map each CoClass to its Default Interface)              
  53. // *********************************************************************//
  54.   WZGL = IWZGL;
  55. // *********************************************************************//
  56. // Declaration of structures, unions and aliases.                         
  57. // *********************************************************************//
  58.   POleVariant1 = ^OleVariant; {*}
  59.   Alias1 = Integer; 
  60. // *********************************************************************//
  61. // Interface: IWZGL
  62. // Flags:     (4416) Dual OleAutomation Dispatchable
  63. // GUID:      {0628A46E-A1E9-447B-B20A-2936B930FF57}
  64. // *********************************************************************//
  65.   IWZGL = interface(IAppServer)
  66.     ['{0628A46E-A1E9-447B-B20A-2936B930FF57}']
  67.     procedure GetFuncs(aZh: OleVariant; var vFuncs: OleVariant); safecall;
  68.     procedure Logined(bAliasName: OleVariant; aPassword: OleVariant; var aYhbh: OleVariant; 
  69.                       var aZh: OleVariant; var aLogined: OleVariant); safecall;
  70.     procedure AddUser(Host: OleVariant; IP: OleVariant; UserAlias: OleVariant; ConnTime: OleVariant); safecall;
  71.     procedure DelUser(Host: OleVariant; IP: OleVariant; UserAlias: OleVariant; ConnTime: OleVariant); safecall;
  72.     procedure GetSysTime(var aTime: OleVariant); safecall;
  73.     procedure updatePassword(bAliasName: OleVariant; aPassword: OleVariant; var aResult: OleVariant); safecall;
  74.   end;
  75. // *********************************************************************//
  76. // DispIntf:  IWZGLDisp
  77. // Flags:     (4416) Dual OleAutomation Dispatchable
  78. // GUID:      {0628A46E-A1E9-447B-B20A-2936B930FF57}
  79. // *********************************************************************//
  80.   IWZGLDisp = dispinterface
  81.     ['{0628A46E-A1E9-447B-B20A-2936B930FF57}']
  82.     procedure GetFuncs(aZh: OleVariant; var vFuncs: OleVariant); dispid 2;
  83.     procedure Logined(bAliasName: OleVariant; aPassword: OleVariant; var aYhbh: OleVariant; 
  84.                       var aZh: OleVariant; var aLogined: OleVariant); dispid 1;
  85.     procedure AddUser(Host: OleVariant; IP: OleVariant; UserAlias: OleVariant; ConnTime: OleVariant); dispid 3;
  86.     procedure DelUser(Host: OleVariant; IP: OleVariant; UserAlias: OleVariant; ConnTime: OleVariant); dispid 4;
  87.     procedure GetSysTime(var aTime: OleVariant); dispid 5;
  88.     procedure updatePassword(bAliasName: OleVariant; aPassword: OleVariant; var aResult: OleVariant); dispid 6;
  89.     function  AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; 
  90.                               MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant; dispid 20000000;
  91.     function  AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer; 
  92.                             Options: Integer; const CommandText: WideString; 
  93.                             var Params: OleVariant; var OwnerData: OleVariant): OleVariant; dispid 20000001;
  94.     function  AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant; dispid 20000002;
  95.     function  AS_GetProviderNames: OleVariant; dispid 20000003;
  96.     function  AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant; dispid 20000004;
  97.     function  AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; 
  98.                             var OwnerData: OleVariant): OleVariant; dispid 20000005;
  99.     procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString; 
  100.                          var Params: OleVariant; var OwnerData: OleVariant); dispid 20000006;
  101.   end;
  102. // *********************************************************************//
  103. // The Class CoWZGL provides a Create and CreateRemote method to          
  104. // create instances of the default interface IWZGL exposed by              
  105. // the CoClass WZGL. The functions are intended to be used by             
  106. // clients wishing to automate the CoClass objects exposed by the         
  107. // server of this typelibrary.                                            
  108. // *********************************************************************//
  109.   CoWZGL = class
  110.     class function Create: IWZGL;
  111.     class function CreateRemote(const MachineName: string): IWZGL;
  112.   end;
  113. implementation
  114. uses ComObj;
  115. class function CoWZGL.Create: IWZGL;
  116. begin
  117.   Result := CreateComObject(CLASS_WZGL) as IWZGL;
  118. end;
  119. class function CoWZGL.CreateRemote(const MachineName: string): IWZGL;
  120. begin
  121.   Result := CreateRemoteComObject(MachineName, CLASS_WZGL) as IWZGL;
  122. end;
  123. end.