Win32 API 日本語リファレンス
ホームUI.Accessibility › IUIAutomation5

IUIAutomation5

COM
IID25f700c8-d816-4057-a9dc-3cbdee77e256継承元IUIAutomation4自前メソッド開始 vtbl68

メソッド 2

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

vtbl 68 HRESULT AddNotificationEventHandler(IUIAutomationElement* element, TreeScope scope, IUIAutomationCacheRequest* cacheRequest, IUIAutomationNotificationEventHandler* handler)
elementIUIAutomationElement*inイベント購読の起点とする要素を指定する。
scopeTreeScopeinイベントを購読する範囲を指定する。
cacheRequestIUIAutomationCacheRequest*inイベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。
handlerIUIAutomationNotificationEventHandler*in通知イベントを受け取るハンドラーを指定する。
vtbl 69 HRESULT RemoveNotificationEventHandler(IUIAutomationElement* element, IUIAutomationNotificationEventHandler* handler)
elementIUIAutomationElement*inハンドラー登録時に指定した要素を指定する。
handlerIUIAutomationNotificationEventHandler*in登録解除するハンドラーを指定する。

HSP用 COM定義

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

#define global IID_IUIAutomation5 "{25F700C8-D816-4057-A9DC-3CBDEE77E256}"
#usecom global IUIAutomation5 IID_IUIAutomation5 "{}"
#comfunc global IUIAutomation5_AddNotificationEventHandler     68 sptr,int,sptr,sptr
#comfunc global IUIAutomation5_RemoveNotificationEventHandler  69 sptr,sptr
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。