AppSPlus_TLB.pas
资源名称:delphi.rar [点击查看]
上传用户:fh681027
上传日期:2022-07-23
资源大小:1959k
文件大小:6k
源码类别:
Delphi控件源码
开发平台:
Delphi
- unit AppSPlus_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.126 $
- // File generated on 5/13/2001 1:00:17 AM from Type Library described below.
- // ************************************************************************ //
- // Type Lib: C:md6code17AppSPlusAppSPlus.tlb (1)
- // LIBID: {E31849A6-4A82-11D3-B9F1-00000100A27B}
- // LCID: 0
- // Helpfile:
- // DepndLst:
- // (1) v1.0 Midas, (C:WINDOWSSystem32midas.dll)
- // (2) v2.0 stdole, (C:WINDOWSSystem32stdole2.tlb)
- // (3) v4.0 StdVCL, (C:WINDOWSsystem32stdvcl40.dll)
- // ************************************************************************ //
- {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
- {$WARN SYMBOL_PLATFORM OFF}
- {$WRITEABLECONST ON}
- interface
- uses ActiveX, Classes, Graphics, Midas, StdVCL, Variants, Windows;
- // *********************************************************************//
- // 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
- AppSPlusMajorVersion = 1;
- AppSPlusMinorVersion = 0;
- LIBID_AppSPlus: TGUID = '{E31849A6-4A82-11D3-B9F1-00000100A27B}';
- IID_IAppServerPlus: TGUID = '{E31849A7-4A82-11D3-B9F1-00000100A27B}';
- CLASS_AppServerPlus: TGUID = '{E31849A9-4A82-11D3-B9F1-00000100A27B}';
- type
- // *********************************************************************//
- // Forward declaration of types defined in TypeLibrary
- // *********************************************************************//
- IAppServerPlus = interface;
- IAppServerPlusDisp = dispinterface;
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library
- // (NOTE: Here we map each CoClass to its Default Interface)
- // *********************************************************************//
- AppServerPlus = IAppServerPlus;
- // *********************************************************************//
- // Interface: IAppServerPlus
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {E31849A7-4A82-11D3-B9F1-00000100A27B}
- // *********************************************************************//
- IAppServerPlus = interface(IAppServer)
- ['{E31849A7-4A82-11D3-B9F1-00000100A27B}']
- procedure Login(const Name: WideString; const Password: WideString); safecall;
- end;
- // *********************************************************************//
- // DispIntf: IAppServerPlusDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {E31849A7-4A82-11D3-B9F1-00000100A27B}
- // *********************************************************************//
- IAppServerPlusDisp = dispinterface
- ['{E31849A7-4A82-11D3-B9F1-00000100A27B}']
- procedure Login(const Name: WideString; const Password: WideString); dispid 1;
- 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 CoAppServerPlus provides a Create and CreateRemote method to
- // create instances of the default interface IAppServerPlus exposed by
- // the CoClass AppServerPlus. The functions are intended to be used by
- // clients wishing to automate the CoClass objects exposed by the
- // server of this typelibrary.
- // *********************************************************************//
- CoAppServerPlus = class
- class function Create: IAppServerPlus;
- class function CreateRemote(const MachineName: string): IAppServerPlus;
- end;
- implementation
- uses ComObj;
- class function CoAppServerPlus.Create: IAppServerPlus;
- begin
- Result := CreateComObject(CLASS_AppServerPlus) as IAppServerPlus;
- end;
- class function CoAppServerPlus.CreateRemote(const MachineName: string): IAppServerPlus;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_AppServerPlus) as IAppServerPlus;
- end;
- end.