email.idl

来自「网页上mail组件」· IDL 代码 · 共 44 行

IDL
44
字号
// EMail.idl : IDL source for EMail.dll
//

// This file will be processed by the MIDL tool to
// produce the type library (EMail.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(DE3AA0B0-824E-434F-80B1-FC84830DCF50),
		dual,
		helpstring("ISender Interface"),
		pointer_default(unique)
	]
	interface ISender : IDispatch
	{
		[id(1), helpstring("method SetSMTP")] HRESULT SetSMTP([in]BSTR i_bsSmtp);
		[id(2), helpstring("method From")] HRESULT From([in]BSTR i_bsFrom);
		[id(3), helpstring("method To")] HRESULT To([in]BSTR i_bsTo);
		[id(4), helpstring("method Send")] HRESULT Send([in]BSTR i_bsSubject,[in]BSTR i_bsContent);
		[id(5), helpstring("method AddAttachment")] HRESULT AddAttachment([in]BSTR i_bsAttachmentPath);
	};

[
	uuid(F19C32E8-F1BE-4E65-96AD-30233DB473EA),
	version(1.0),
	helpstring("EMail 1.0 Type Library")
]
library EMAILLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(AA2CD536-7EF0-478E-9670-90A14EBF43C6),
		helpstring("Sender Class")
	]
	coclass Sender
	{
		[default] interface ISender;
	};
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?