home *** CD-ROM | disk | FTP | other *** search
- unit Publisher_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 1/10/2000 7:29:20 PM 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: C:\My Documents\DelphiMag\Feb00\Events\Publisher.dll (1)
- // IID\LCID: {AA2DE465-7760-4952-BB63-D2970577299E}\0
- // Helpfile:
- // DepndLst:
- // (1) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
- // Parent TypeLibrary:
- // (0) v1.0 Subscriber, (C:\My Documents\DelphiMag\Feb00\Events\Subscriber.tlb)
- // ************************************************************************ //
- {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
- interface
-
- uses Windows, ActiveX, Classes, Graphics, OleServer, OleCtrls, StdVCL;
-
- // *********************************************************************//
- // 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
- PublisherMajorVersion = 1;
- PublisherMinorVersion = 0;
-
- LIBID_Publisher: TGUID = '{AA2DE465-7760-4952-BB63-D2970577299E}';
-
- IID_IEventObj: TGUID = '{AAC2C890-9CF2-4B45-9163-8A536E103982}';
- CLASS_EventObj: TGUID = '{3463A43E-6205-46C6-94D2-B029E6D02809}';
- type
-
- // *********************************************************************//
- // Forward declaration of types defined in TypeLibrary
- // *********************************************************************//
- IEventObj = interface;
- IEventObjDisp = dispinterface;
-
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library
- // (NOTE: Here we map each CoClass to its Default Interface)
- // *********************************************************************//
- EventObj = IEventObj;
-
-
- // *********************************************************************//
- // Interface: IEventObj
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {AAC2C890-9CF2-4B45-9163-8A536E103982}
- // *********************************************************************//
- IEventObj = interface(IDispatch)
- ['{AAC2C890-9CF2-4B45-9163-8A536E103982}']
- function MyEvent(const EventParam: WideString): HResult; safecall;
- end;
-
- // *********************************************************************//
- // DispIntf: IEventObjDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {AAC2C890-9CF2-4B45-9163-8A536E103982}
- // *********************************************************************//
- IEventObjDisp = dispinterface
- ['{AAC2C890-9CF2-4B45-9163-8A536E103982}']
- function MyEvent(const EventParam: WideString): HResult; dispid 1;
- end;
-
- // *********************************************************************//
- // The Class CoEventObj provides a Create and CreateRemote method to
- // create instances of the default interface IEventObj exposed by
- // the CoClass EventObj. The functions are intended to be used by
- // clients wishing to automate the CoClass objects exposed by the
- // server of this typelibrary.
- // *********************************************************************//
- CoEventObj = class
- class function Create: IEventObj;
- class function CreateRemote(const MachineName: string): IEventObj;
- end;
-
- implementation
-
- uses ComObj;
-
- class function CoEventObj.Create: IEventObj;
- begin
- Result := CreateComObject(CLASS_EventObj) as IEventObj;
- end;
-
- class function CoEventObj.CreateRemote(const MachineName: string): IEventObj;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_EventObj) as IEventObj;
- end;
-
- end.
-