Win32 API 日本語リファレンス
ホームSystem.SideShow › ISideShowNotification

ISideShowNotification

COM
IID03c93300-8ab2-41c5-9b79-46127a30e148継承元IUnknown自前メソッド開始 vtbl3

メソッド 10

vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。

vtbl 3 HRESULT get_NotificationId(DWORD* out_pNotificationId)
out_pNotificationIdDWORD*out通知の識別子を受け取るポインタである。
vtbl 4 HRESULT put_NotificationId(DWORD in_notificationId)
in_notificationIdDWORDin通知に設定する識別子を指定する。
vtbl 5 HRESULT get_Title(LPWSTR* out_ppwszTitle)
out_ppwszTitleLPWSTR*out通知のタイトル文字列を受け取るポインタである。
vtbl 6 HRESULT put_Title(LPWSTR in_pwszTitle)
in_pwszTitleLPWSTRin通知に設定するタイトル文字列を指定する。
vtbl 7 HRESULT get_Message(LPWSTR* out_ppwszMessage)
out_ppwszMessageLPWSTR*out通知の本文メッセージ文字列を受け取るポインタである。
vtbl 8 HRESULT put_Message(LPWSTR in_pwszMessage)
in_pwszMessageLPWSTRin通知に設定する本文メッセージ文字列を指定する。
vtbl 9 HRESULT get_Image(HICON* out_phIcon)
out_phIconHICON*out通知に関連付けられたアイコンのハンドルを受け取るポインタである。
vtbl 10 HRESULT put_Image(HICON in_hIcon)
in_hIconHICONin通知に設定するアイコンのハンドルを指定する。
vtbl 11 HRESULT get_ExpirationTime(SYSTEMTIME* out_pTime)
out_pTimeSYSTEMTIME*out通知の有効期限を示す SYSTEMTIME を受け取るポインタである。
vtbl 12 HRESULT put_ExpirationTime(SYSTEMTIME* in_pTime)
in_pTimeSYSTEMTIME*inoptional通知に設定する有効期限を示す SYSTEMTIME へのポインタである。

HSP用 COM定義

#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"

出力引数:
#define global IID_ISideShowNotification "{03C93300-8AB2-41C5-9B79-46127A30E148}"
#usecom global ISideShowNotification IID_ISideShowNotification "{0CE3E86F-D5CD-4525-A766-1ABAB1A752F5}"
#comfunc global ISideShowNotification_get_NotificationId  3 var
#comfunc global ISideShowNotification_put_NotificationId  4 int
#comfunc global ISideShowNotification_get_Title           5 var
#comfunc global ISideShowNotification_put_Title           6 wstr
#comfunc global ISideShowNotification_get_Message         7 var
#comfunc global ISideShowNotification_put_Message         8 wstr
#comfunc global ISideShowNotification_get_Image           9 sptr
#comfunc global ISideShowNotification_put_Image           10 sptr
#comfunc global ISideShowNotification_get_ExpirationTime  11 var
#comfunc global ISideShowNotification_put_ExpirationTime  12 var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※#usecom 末尾は CoCreateInstance 用のクラスID(コクラスCLSID, SDKから自動取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。