SvrObj_Orders_TLB.pas
资源名称:__DCOM.rar [点击查看]
上传用户:etonglee
上传日期:2014-03-01
资源大小:698k
文件大小:7k
源码类别:
Internet/IE编程
开发平台:
Delphi
- unit SvrObj_Orders_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 2005-11-19 21:31:21 from Type Library described below.
- // ************************************************************************ //
- // Type Lib: E:ʵսCOM+DemoServerSvrObj_Orders.tlb (1)
- // LIBID: {ED33E15C-8864-4B83-B2EA-59A9D1E7889E}
- // LCID: 0
- // Helpfile:
- // HelpString: SvrObj_Orders Library
- // DepndLst:
- // (1) v1.0 Midas, (C:WINNTsystem32midas.dll)
- // (2) v2.0 stdole, (C:WINNTSystem32stdole2.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, Midas, 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
- SvrObj_OrdersMajorVersion = 1;
- SvrObj_OrdersMinorVersion = 0;
- LIBID_SvrObj_Orders: TGUID = '{ED33E15C-8864-4B83-B2EA-59A9D1E7889E}';
- IID_IOrders: TGUID = '{29277AE5-33EA-4768-B0D4-C497AF55C1DA}';
- CLASS_Orders: TGUID = '{821B5C18-4076-431D-8290-0DD86F1D7363}';
- type
- // *********************************************************************//
- // Forward declaration of types defined in TypeLibrary
- // *********************************************************************//
- IOrders = interface;
- IOrdersDisp = dispinterface;
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library
- // (NOTE: Here we map each CoClass to its Default Interface)
- // *********************************************************************//
- Orders = IOrders;
- // *********************************************************************//
- // Interface: IOrders
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {29277AE5-33EA-4768-B0D4-C497AF55C1DA}
- // *********************************************************************//
- IOrders = interface(IAppServer)
- ['{29277AE5-33EA-4768-B0D4-C497AF55C1DA}']
- procedure GetOrders(BeginDate: TDateTime; EndDate: TDateTime; var RetData: OleVariant); safecall;
- procedure GetOrder(OrderID: Integer; var RetData: OleVariant); safecall;
- procedure GetOrderDetail(OrderID: Integer; var RetData: OleVariant); safecall;
- procedure GetOtherData(var RetData: OleVariant); safecall;
- procedure UpdateOrder(OrderID: Integer; OrderDelta: OleVariant; OrderDetailDelta: OleVariant;
- var IsOk: WordBool; var ErrorMsg: WideString); safecall;
- end;
- // *********************************************************************//
- // DispIntf: IOrdersDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {29277AE5-33EA-4768-B0D4-C497AF55C1DA}
- // *********************************************************************//
- IOrdersDisp = dispinterface
- ['{29277AE5-33EA-4768-B0D4-C497AF55C1DA}']
- procedure GetOrders(BeginDate: TDateTime; EndDate: TDateTime; var RetData: OleVariant); dispid 301;
- procedure GetOrder(OrderID: Integer; var RetData: OleVariant); dispid 302;
- procedure GetOrderDetail(OrderID: Integer; var RetData: OleVariant); dispid 303;
- procedure GetOtherData(var RetData: OleVariant); dispid 304;
- procedure UpdateOrder(OrderID: Integer; OrderDelta: OleVariant; OrderDetailDelta: OleVariant;
- var IsOk: WordBool; var ErrorMsg: WideString); dispid 305;
- 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 CoOrders provides a Create and CreateRemote method to
- // create instances of the default interface IOrders exposed by
- // the CoClass Orders. The functions are intended to be used by
- // clients wishing to automate the CoClass objects exposed by the
- // server of this typelibrary.
- // *********************************************************************//
- CoOrders = class
- class function Create: IOrders;
- class function CreateRemote(const MachineName: string): IOrders;
- end;
- implementation
- uses ComObj;
- class function CoOrders.Create: IOrders;
- begin
- Result := CreateComObject(CLASS_Orders) as IOrders;
- end;
- class function CoOrders.CreateRemote(const MachineName: string): IOrders;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_Orders) as IOrders;
- end;
- end.