📄 indymail_tlb.pas
字号:
unit IndyMail_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 2003-5-25 20:58:04 from Type Library described below.
// ************************************************************************ //
// Type Lib: D:\Asp\mail\IndyMail.tlb (1)
// LIBID: {91636E03-5317-4944-8861-B47F14B19FAE}
// LCID: 0
// Helpfile:
// HelpString: IndyMail Library
// 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, 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
IndyMailMajorVersion = 1;
IndyMailMinorVersion = 0;
LIBID_IndyMail: TGUID = '{91636E03-5317-4944-8861-B47F14B19FAE}';
IID_IMailSender: TGUID = '{937FA38F-5908-4904-AF49-484F05F599C4}';
CLASS_MailSender: TGUID = '{EF7223B4-21CD-4ADA-B244-6BCF673B376A}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IMailSender = interface;
IMailSenderDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
MailSender = IMailSender;
// *********************************************************************//
// Interface: IMailSender
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {937FA38F-5908-4904-AF49-484F05F599C4}
// *********************************************************************//
IMailSender = interface(IDispatch)
['{937FA38F-5908-4904-AF49-484F05F599C4}']
procedure SetBody(const Body: WideString); safecall;
procedure SetSubject(const Subject: WideString); safecall;
procedure SetFrom(const From: WideString); safecall;
procedure SetTo(const To_: WideString); safecall;
procedure SetHost(const Host: WideString); safecall;
procedure SetSenderName(const SenderName: WideString); safecall;
procedure SetSenderPW(const Password: WideString); safecall;
procedure SetAuth(Auth: WordBool); safecall;
function Send: WordBool; safecall;
end;
// *********************************************************************//
// DispIntf: IMailSenderDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {937FA38F-5908-4904-AF49-484F05F599C4}
// *********************************************************************//
IMailSenderDisp = dispinterface
['{937FA38F-5908-4904-AF49-484F05F599C4}']
procedure SetBody(const Body: WideString); dispid 201;
procedure SetSubject(const Subject: WideString); dispid 202;
procedure SetFrom(const From: WideString); dispid 203;
procedure SetTo(const To_: WideString); dispid 204;
procedure SetHost(const Host: WideString); dispid 205;
procedure SetSenderName(const SenderName: WideString); dispid 206;
procedure SetSenderPW(const Password: WideString); dispid 207;
procedure SetAuth(Auth: WordBool); dispid 208;
function Send: WordBool; dispid 209;
end;
// *********************************************************************//
// The Class CoMailSender provides a Create and CreateRemote method to
// create instances of the default interface IMailSender exposed by
// the CoClass MailSender. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoMailSender = class
class function Create: IMailSender;
class function CreateRemote(const MachineName: string): IMailSender;
end;
implementation
uses ComObj;
class function CoMailSender.Create: IMailSender;
begin
Result := CreateComObject(CLASS_MailSender) as IMailSender;
end;
class function CoMailSender.CreateRemote(const MachineName: string): IMailSender;
begin
Result := CreateRemoteComObject(MachineName, CLASS_MailSender) as IMailSender;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -