ホーム › UI.Accessibility › IUIAutomation5
IUIAutomation5
COMメソッド 2
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 68 HRESULT AddNotificationEventHandler(IUIAutomationElement* element, TreeScope scope, IUIAutomationCacheRequest* cacheRequest, IUIAutomationNotificationEventHandler* handler)
| element | IUIAutomationElement* | in | イベント購読の起点とする要素を指定する。 |
| scope | TreeScope | in | イベントを購読する範囲を指定する。 |
| cacheRequest | IUIAutomationCacheRequest* | in | イベント発生時にキャッシュするプロパティやパターンを指定する要求である。NULL も指定できる。 |
| handler | IUIAutomationNotificationEventHandler* | in | 通知イベントを受け取るハンドラーを指定する。 |
vtbl 69 HRESULT RemoveNotificationEventHandler(IUIAutomationElement* element, IUIAutomationNotificationEventHandler* handler)
| element | IUIAutomationElement* | in | ハンドラー登録時に指定した要素を指定する。 |
| handler | IUIAutomationNotificationEventHandler* | 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 指定が可能。