C
cnzzlp
Unregistered / Unconfirmed
GUEST, unregistred user!
导入一个dll,此组件是测服务器端和客户端之间的带宽.com方面不熟,请大家帮助应该如果使用,分不够再加.谢谢了.
unit CBandWidthLib_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 : 1.2
// File generated on 2006-7-17 17:15:52 from Type Library described below.
// ************************************************************************ //
// Type Lib: D:/NetTest/CBandWidth.dll (1)
// LIBID: {D1C11CCF-35C4-4227-BA72-4E4D96B018DF}
// LCID: 0
// Helpfile:
// HelpString: CBandWidth 1.0 类型库
// DepndLst:
// (1) v2.0 stdole, (C:/WINDOWS/system32/STDOLE2.TLB)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface
uses Windows, ActiveX, Classes, Graphics, OleServer, StdVCL, Variants;
// *********************************************************************//
// 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
CBandWidthLibMajorVersion = 1;
CBandWidthLibMinorVersion = 0;
LIBID_CBandWidthLib: TGUID = '{D1C11CCF-35C4-4227-BA72-4E4D96B018DF}';
DIID__IBandTestEvents: TGUID = '{2ADC5FC3-CD4F-47EC-A629-7A6A5A1F636B}';
IID_IBandTest: TGUID = '{DFAEAAE1-3A8D-4903-80A6-4028A791C830}';
CLASS_BandTest: TGUID = '{470A7DA3-6DFA-4021-8344-19B40E94BD58}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
_IBandTestEvents = dispinterface;
IBandTest = interface;
IBandTestDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
BandTest = IBandTest;
// *********************************************************************//
// DispIntf: _IBandTestEvents
// Flags: (4096) Dispatchable
// GUID: {2ADC5FC3-CD4F-47EC-A629-7A6A5A1F636B}
// *********************************************************************//
_IBandTestEvents = dispinterface
['{2ADC5FC3-CD4F-47EC-A629-7A6A5A1F636B}']
procedure OnGetValve(lstart: Integer;
lstop: Integer;
const sBandWidth: WideString);
dispid 1;
end;
// *********************************************************************//
// Interface: IBandTest
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {DFAEAAE1-3A8D-4903-80A6-4028A791C830}
// *********************************************************************//
IBandTest = interface(IDispatch)
['{DFAEAAE1-3A8D-4903-80A6-4028A791C830}']
procedure StartTest;
safecall;
procedure setOption(const sType: WideString;
const sValue: WideString);
safecall;
end;
// *********************************************************************//
// DispIntf: IBandTestDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {DFAEAAE1-3A8D-4903-80A6-4028A791C830}
// *********************************************************************//
IBandTestDisp = dispinterface
['{DFAEAAE1-3A8D-4903-80A6-4028A791C830}']
procedure StartTest;
dispid 1;
procedure setOption(const sType: WideString;
const sValue: WideString);
dispid 2;
end;
// *********************************************************************//
// The Class CoBandTest provides a Create and CreateRemote method to
// create instances of the default interface IBandTest exposed by
// the CoClass BandTest. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoBandTest = class
class function Create: IBandTest;
class function CreateRemote(const MachineName: string): IBandTest;
end;
implementation
uses ComObj;
class function CoBandTest.Create: IBandTest;
begin
Result := CreateComObject(CLASS_BandTest) as IBandTest;
end;
class function CoBandTest.CreateRemote(const MachineName: string): IBandTest;
begin
Result := CreateRemoteComObject(MachineName, CLASS_BandTest) as IBandTest;
end;
end.
unit CBandWidthLib_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 : 1.2
// File generated on 2006-7-17 17:15:52 from Type Library described below.
// ************************************************************************ //
// Type Lib: D:/NetTest/CBandWidth.dll (1)
// LIBID: {D1C11CCF-35C4-4227-BA72-4E4D96B018DF}
// LCID: 0
// Helpfile:
// HelpString: CBandWidth 1.0 类型库
// DepndLst:
// (1) v2.0 stdole, (C:/WINDOWS/system32/STDOLE2.TLB)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface
uses Windows, ActiveX, Classes, Graphics, OleServer, StdVCL, Variants;
// *********************************************************************//
// 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
CBandWidthLibMajorVersion = 1;
CBandWidthLibMinorVersion = 0;
LIBID_CBandWidthLib: TGUID = '{D1C11CCF-35C4-4227-BA72-4E4D96B018DF}';
DIID__IBandTestEvents: TGUID = '{2ADC5FC3-CD4F-47EC-A629-7A6A5A1F636B}';
IID_IBandTest: TGUID = '{DFAEAAE1-3A8D-4903-80A6-4028A791C830}';
CLASS_BandTest: TGUID = '{470A7DA3-6DFA-4021-8344-19B40E94BD58}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
_IBandTestEvents = dispinterface;
IBandTest = interface;
IBandTestDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
BandTest = IBandTest;
// *********************************************************************//
// DispIntf: _IBandTestEvents
// Flags: (4096) Dispatchable
// GUID: {2ADC5FC3-CD4F-47EC-A629-7A6A5A1F636B}
// *********************************************************************//
_IBandTestEvents = dispinterface
['{2ADC5FC3-CD4F-47EC-A629-7A6A5A1F636B}']
procedure OnGetValve(lstart: Integer;
lstop: Integer;
const sBandWidth: WideString);
dispid 1;
end;
// *********************************************************************//
// Interface: IBandTest
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {DFAEAAE1-3A8D-4903-80A6-4028A791C830}
// *********************************************************************//
IBandTest = interface(IDispatch)
['{DFAEAAE1-3A8D-4903-80A6-4028A791C830}']
procedure StartTest;
safecall;
procedure setOption(const sType: WideString;
const sValue: WideString);
safecall;
end;
// *********************************************************************//
// DispIntf: IBandTestDisp
// Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
// GUID: {DFAEAAE1-3A8D-4903-80A6-4028A791C830}
// *********************************************************************//
IBandTestDisp = dispinterface
['{DFAEAAE1-3A8D-4903-80A6-4028A791C830}']
procedure StartTest;
dispid 1;
procedure setOption(const sType: WideString;
const sValue: WideString);
dispid 2;
end;
// *********************************************************************//
// The Class CoBandTest provides a Create and CreateRemote method to
// create instances of the default interface IBandTest exposed by
// the CoClass BandTest. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoBandTest = class
class function Create: IBandTest;
class function CreateRemote(const MachineName: string): IBandTest;
end;
implementation
uses ComObj;
class function CoBandTest.Create: IBandTest;
begin
Result := CreateComObject(CLASS_BandTest) as IBandTest;
end;
class function CoBandTest.CreateRemote(const MachineName: string): IBandTest;
begin
Result := CreateRemoteComObject(MachineName, CLASS_BandTest) as IBandTest;
end;
end.