⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 schoolmanager_tlb.pas

📁 学籍管理
💻 PAS
📖 第 1 页 / 共 2 页
字号:
unit SchoolManager_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.88  $
// File generated on 2002-4-4 17:28:53 from Type Library described below.

// *************************************************************************//
// NOTE:                                                                      
// Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties  
// which return objects that may need to be explicitly created via a function 
// call prior to any access via the property. These items have been disabled  
// in order to prevent accidental use from within the object inspector. You   
// may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively   
// removing them from the $IFDEF blocks. However, such items must still be    
// programmatically created via a method of the appropriate CoClass before    
// they can be used.                                                          
// ************************************************************************ //
// Type Lib: G:\数据库\SQLServer数据库\应用程序\Server\SchoolManager.tlb (1)
// IID\LCID: {EA0FB10F-C620-46FF-B277-1D33770C01D9}\0
// Helpfile: 
// DepndLst: 
//   (1) v1.0 Midas, (D:\WINNT\System32\midas.dll)
//   (2) v2.0 stdole, (D:\WINNT\System32\stdole2.tlb)
//   (3) v4.0 StdVCL, (D:\WINNT\System32\STDVCL40.DLL)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
interface

uses Windows, ActiveX, Classes, Graphics, OleServer, OleCtrls, StdVCL, 
  MIDAS;

// *********************************************************************//
// 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
  SchoolManagerMajorVersion = 1;
  SchoolManagerMinorVersion = 0;

  LIBID_SchoolManager: TGUID = '{EA0FB10F-C620-46FF-B277-1D33770C01D9}';

  IID_ISchoolMTS: TGUID = '{2BF4138E-6A5E-4216-90AB-291A1D48C103}';
  CLASS_SchoolMTS: TGUID = '{99CFAB84-F322-4780-B78C-05A6F1DB47D4}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  ISchoolMTS = interface;
  ISchoolMTSDisp = dispinterface;

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


// *********************************************************************//
// Declaration of structures, unions and aliases.                         
// *********************************************************************//
  POleVariant1 = ^OleVariant; {*}


// *********************************************************************//
// Interface: ISchoolMTS
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {2BF4138E-6A5E-4216-90AB-291A1D48C103}
// *********************************************************************//
  ISchoolMTS = interface(IAppServer)
    ['{2BF4138E-6A5E-4216-90AB-291A1D48C103}']
    procedure GetHostNotes(var Notes: OleVariant); safecall;
    procedure GetSystemTime(var SystemTime: OleVariant); safecall;
    procedure GetSystemUse(var SystemUse: OleVariant); safecall;
    procedure GetAllTables(var TablesNames: OleVariant); safecall;
    procedure SearchRecord(var CommandTxt: OleVariant); safecall;
    procedure NewPassword(var UseName: OleVariant; var OldPassword: OleVariant; 
                          var NewPassword: OleVariant); safecall;
    procedure ClearLink; safecall;
  end;

// *********************************************************************//
// DispIntf:  ISchoolMTSDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {2BF4138E-6A5E-4216-90AB-291A1D48C103}
// *********************************************************************//
  ISchoolMTSDisp = dispinterface
    ['{2BF4138E-6A5E-4216-90AB-291A1D48C103}']
    procedure GetHostNotes(var Notes: OleVariant); dispid 1;
    procedure GetSystemTime(var SystemTime: OleVariant); dispid 2;
    procedure GetSystemUse(var SystemUse: OleVariant); dispid 3;
    procedure GetAllTables(var TablesNames: OleVariant); dispid 4;
    procedure SearchRecord(var CommandTxt: OleVariant); dispid 5;
    procedure NewPassword(var UseName: OleVariant; var OldPassword: OleVariant; 
                          var NewPassword: OleVariant); dispid 6;
    procedure ClearLink; dispid 7;
    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 CoSchoolMTS provides a Create and CreateRemote method to          
// create instances of the default interface ISchoolMTS exposed by              
// the CoClass SchoolMTS. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CoSchoolMTS = class
    class function Create: ISchoolMTS;
    class function CreateRemote(const MachineName: string): ISchoolMTS;
  end;


// *********************************************************************//
// OLE Server Proxy class declaration
// Server Object    : TSchoolMTS
// Help String      : SchoolMTS Object
// Default Interface: ISchoolMTS
// Def. Intf. DISP? : No
// Event   Interface: 
// TypeFlags        : (2) CanCreate
// *********************************************************************//
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
  TSchoolMTSProperties= class;
{$ENDIF}
  TSchoolMTS = class(TOleServer)
  private
    FIntf:        ISchoolMTS;
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
    FProps:       TSchoolMTSProperties;
    function      GetServerProperties: TSchoolMTSProperties;
{$ENDIF}
    function      GetDefaultInterface: ISchoolMTS;
  protected
    procedure InitServerData; override;
  public
    constructor Create(AOwner: TComponent); override;
    destructor  Destroy; override;
    procedure Connect; override;
    procedure ConnectTo(svrIntf: ISchoolMTS);
    procedure Disconnect; override;
    function  AS_ApplyUpdates(const ProviderName: WideString; Delta: OleVariant; 
                              MaxErrors: Integer; out ErrorCount: Integer; var OwnerData: OleVariant): OleVariant;
    function  AS_GetRecords(const ProviderName: WideString; Count: Integer; out RecsOut: Integer; 
                            Options: Integer; const CommandText: WideString; 
                            var Params: OleVariant; var OwnerData: OleVariant): OleVariant;
    function  AS_DataRequest(const ProviderName: WideString; Data: OleVariant): OleVariant;
    function  AS_GetProviderNames: OleVariant;
    function  AS_GetParams(const ProviderName: WideString; var OwnerData: OleVariant): OleVariant;
    function  AS_RowRequest(const ProviderName: WideString; Row: OleVariant; RequestType: Integer; 
                            var OwnerData: OleVariant): OleVariant;
    procedure AS_Execute(const ProviderName: WideString; const CommandText: WideString; 
                         var Params: OleVariant; var OwnerData: OleVariant);
    procedure GetHostNotes(var Notes: OleVariant);
    procedure GetSystemTime(var SystemTime: OleVariant);
    procedure GetSystemUse(var SystemUse: OleVariant);
    procedure GetAllTables(var TablesNames: OleVariant);
    procedure SearchRecord(var CommandTxt: OleVariant);
    procedure NewPassword(var UseName: OleVariant; var OldPassword: OleVariant; 
                          var NewPassword: OleVariant);
    procedure ClearLink;
    property  DefaultInterface: ISchoolMTS read GetDefaultInterface;
  published
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
    property Server: TSchoolMTSProperties read GetServerProperties;
{$ENDIF}
  end;

{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
// *********************************************************************//
// OLE Server Properties Proxy Class
// Server Object    : TSchoolMTS
// (This object is used by the IDE's Property Inspector to allow editing
//  of the properties of this server)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -