IEmailAction
COMIDispatch (デュアル)✅ IDispatch を実装(デュアルインターフェース)。HSP では comobj 経由でメソッド名による遅延バインド呼び出しができます(vtableインデックス不要)。
IID10f62c64-7e16-4314-a0c2-0c3683f99d40継承元IAction呼び出し名前(IDispatch) または vtbl自前メソッド開始 vtbl10
メソッド 20
vtbl = vtable インデックス(0始まり)。IDispatch 実装のため HSP ではメソッド名でも呼べます(上記)。低レベルの index 呼び出し用に vtbl も掲載。0〜2 は IUnknown。
| pServer | LPWSTR* | inout | メール送信に使用する SMTP サーバー名を受け取る出力ポインタである。SysFreeString で解放する。 |
| server | LPWSTR | in | メール送信に使用する SMTP サーバー名を指定する。 |
| pSubject | LPWSTR* | inout | メールの件名を受け取る出力ポインタである。SysFreeString で解放する。 |
| pTo | LPWSTR* | inout | メールの宛先 (To) アドレスを受け取る出力ポインタである。SysFreeString で解放する。 |
| to | LPWSTR | in | メールの宛先 (To) アドレスを指定する。 |
| pCc | LPWSTR* | inout | メールの CC アドレスを受け取る出力ポインタである。SysFreeString で解放する。 |
| pBcc | LPWSTR* | inout | メールの BCC アドレスを受け取る出力ポインタである。SysFreeString で解放する。 |
| bcc | LPWSTR | in | メールの BCC アドレスを指定する。 |
| pReplyTo | LPWSTR* | inout | メールの返信先 (Reply-To) アドレスを受け取る出力ポインタである。SysFreeString で解放する。 |
| replyTo | LPWSTR | in | メールの返信先 (Reply-To) アドレスを指定する。 |
| pFrom | LPWSTR* | inout | メールの送信元 (From) アドレスを受け取る出力ポインタである。SysFreeString で解放する。 |
| from | LPWSTR | in | メールの送信元 (From) アドレスを指定する。 |
| pBody | LPWSTR* | inout | メールの本文を受け取る出力ポインタである。SysFreeString で解放する。 |
| pAttachements | SAFEARRAY** | inout | メールに添付するファイル名の配列を格納した SAFEARRAY を受け取る出力ポインタである。 |
| pAttachements | SAFEARRAY* | inout | メールに添付するファイル名の配列を格納した SAFEARRAY へのポインタである。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IEmailAction "{10F62C64-7E16-4314-A0C2-0C3683F99D40}"
#usecom global IEmailAction IID_IEmailAction "{}"
#comfunc global IEmailAction_get_Server 10 var
#comfunc global IEmailAction_put_Server 11 wstr
#comfunc global IEmailAction_get_Subject 12 var
#comfunc global IEmailAction_put_Subject 13 wstr
#comfunc global IEmailAction_get_To 14 var
#comfunc global IEmailAction_put_To 15 wstr
#comfunc global IEmailAction_get_Cc 16 var
#comfunc global IEmailAction_put_Cc 17 wstr
#comfunc global IEmailAction_get_Bcc 18 var
#comfunc global IEmailAction_put_Bcc 19 wstr
#comfunc global IEmailAction_get_ReplyTo 20 var
#comfunc global IEmailAction_put_ReplyTo 21 wstr
#comfunc global IEmailAction_get_From 22 var
#comfunc global IEmailAction_put_From 23 wstr
#comfunc global IEmailAction_get_HeaderFields 24 sptr
#comfunc global IEmailAction_put_HeaderFields 25 sptr
#comfunc global IEmailAction_get_Body 26 var
#comfunc global IEmailAction_put_Body 27 wstr
#comfunc global IEmailAction_get_Attachments 28 var
#comfunc global IEmailAction_put_Attachments 29 var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。#define global IID_IEmailAction "{10F62C64-7E16-4314-A0C2-0C3683F99D40}"
#usecom global IEmailAction IID_IEmailAction "{}"
#comfunc global IEmailAction_get_Server 10 sptr
#comfunc global IEmailAction_put_Server 11 wstr
#comfunc global IEmailAction_get_Subject 12 sptr
#comfunc global IEmailAction_put_Subject 13 wstr
#comfunc global IEmailAction_get_To 14 sptr
#comfunc global IEmailAction_put_To 15 wstr
#comfunc global IEmailAction_get_Cc 16 sptr
#comfunc global IEmailAction_put_Cc 17 wstr
#comfunc global IEmailAction_get_Bcc 18 sptr
#comfunc global IEmailAction_put_Bcc 19 wstr
#comfunc global IEmailAction_get_ReplyTo 20 sptr
#comfunc global IEmailAction_put_ReplyTo 21 wstr
#comfunc global IEmailAction_get_From 22 sptr
#comfunc global IEmailAction_put_From 23 wstr
#comfunc global IEmailAction_get_HeaderFields 24 sptr
#comfunc global IEmailAction_put_HeaderFields 25 sptr
#comfunc global IEmailAction_get_Body 26 sptr
#comfunc global IEmailAction_put_Body 27 wstr
#comfunc global IEmailAction_get_Attachments 28 sptr
#comfunc global IEmailAction_put_Attachments 29 sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。
; ※IDispatch 実装。HSP では comobj 経由でメソッド名による呼び出しも可能(vtbl 不要)。