?? conmanserver_tlb.pas
字號:
unit ConManServer_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.130 $
// File generated on 8/17/2001 3:01:45 PM from Type Library described below.
// ************************************************************************ //
// Type Lib: D:\CPDD\Samples\Chap10\VCL\ConMan\Server\ConManServer.tlb (1)
// LIBID: {8FFD6B5B-31BD-4CBD-9F41-58333BFD1A3B}
// LCID: 0
// Helpfile:
// DepndLst:
// (1) v1.0 Midas, (C:\WINNT\System32\midas.dll)
// (2) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
// (3) v4.0 StdVCL, (C:\WINNT\System32\stdvcl40.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
ConManServerMajorVersion = 1;
ConManServerMinorVersion = 0;
LIBID_ConManServer: TGUID = '{8FFD6B5B-31BD-4CBD-9F41-58333BFD1A3B}';
IID_IConManDataServer: TGUID = '{4B4C3C21-DB4D-4F6C-B1B9-ABBF0FBD270E}';
CLASS_ConManDataServer: TGUID = '{694B8A11-BD2B-44DA-92A4-5E8E20E05F33}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IConManDataServer = interface;
IConManDataServerDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
ConManDataServer = IConManDataServer;
// *********************************************************************//
// Interface: IConManDataServer
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {4B4C3C21-DB4D-4F6C-B1B9-ABBF0FBD270E}
// *********************************************************************//
IConManDataServer = interface(IAppServer)
['{4B4C3C21-DB4D-4F6C-B1B9-ABBF0FBD270E}']
end;
// *********************************************************************//
// DispIntf: IConManDataServerDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {4B4C3C21-DB4D-4F6C-B1B9-ABBF0FBD270E}
// *********************************************************************//
IConManDataServerDisp = dispinterface
['{4B4C3C21-DB4D-4F6C-B1B9-ABBF0FBD270E}']
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 CoConManDataServer provides a Create and CreateRemote method to
// create instances of the default interface IConManDataServer exposed by
// the CoClass ConManDataServer. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoConManDataServer = class
class function Create: IConManDataServer;
class function CreateRemote(const MachineName: string): IConManDataServer;
end;
implementation
uses ComObj;
class function CoConManDataServer.Create: IConManDataServer;
begin
Result := CreateComObject(CLASS_ConManDataServer) as IConManDataServer;
end;
class function CoConManDataServer.CreateRemote(const MachineName: string): IConManDataServer;
begin
Result := CreateRemoteComObject(MachineName, CLASS_ConManDataServer) as IConManDataServer;
end;
end.
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -