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

IUIAutomationWindowPattern

COM
IID0faef453-9208-43ef-bbb2-3b485177864f継承元IUnknown自前メソッド開始 vtbl3

メソッド 15

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

vtbl 3 HRESULT Close()
vtbl 4 HRESULT WaitForInputIdle(INT milliseconds, BOOL* success)
millisecondsINTinウィンドウが入力待ち状態になるのを待機する最大時間をミリ秒単位で指定する。
successBOOL*out指定時間内に入力待ち状態へ移行したかどうかを示す論理値を受け取るポインタである。
vtbl 5 HRESULT SetWindowVisualState(WindowVisualState state)
stateWindowVisualStateinウィンドウに設定する表示状態(最大化・最小化・通常)を示す WindowVisualState 値を指定する。
vtbl 6 HRESULT get_CurrentCanMaximize(BOOL* retVal)
retValBOOL*outウィンドウを最大化できるかどうかを示す論理値を受け取るポインタである。
vtbl 7 HRESULT get_CurrentCanMinimize(BOOL* retVal)
retValBOOL*outウィンドウを最小化できるかどうかを示す論理値を受け取るポインタである。
vtbl 8 HRESULT get_CurrentIsModal(BOOL* retVal)
retValBOOL*outウィンドウがモーダルかどうかを示す論理値を受け取るポインタである。
vtbl 9 HRESULT get_CurrentIsTopmost(BOOL* retVal)
retValBOOL*outウィンドウが最前面(トップモスト)かどうかを示す論理値を受け取るポインタである。
vtbl 10 HRESULT get_CurrentWindowVisualState(WindowVisualState* retVal)
retValWindowVisualState*outウィンドウの現在の表示状態を示す WindowVisualState 値を受け取るポインタである。
vtbl 11 HRESULT get_CurrentWindowInteractionState(WindowInteractionState* retVal)
retValWindowInteractionState*outウィンドウの現在の操作可能状態を示す WindowInteractionState 値を受け取るポインタである。
vtbl 12 HRESULT get_CachedCanMaximize(BOOL* retVal)
retValBOOL*outキャッシュされた、ウィンドウを最大化できるかどうかを示す論理値を受け取るポインタである。
vtbl 13 HRESULT get_CachedCanMinimize(BOOL* retVal)
retValBOOL*outキャッシュされた、ウィンドウを最小化できるかどうかを示す論理値を受け取るポインタである。
vtbl 14 HRESULT get_CachedIsModal(BOOL* retVal)
retValBOOL*outキャッシュされた、ウィンドウがモーダルかどうかを示す論理値を受け取るポインタである。
vtbl 15 HRESULT get_CachedIsTopmost(BOOL* retVal)
retValBOOL*outキャッシュされた、ウィンドウが最前面かどうかを示す論理値を受け取るポインタである。
vtbl 16 HRESULT get_CachedWindowVisualState(WindowVisualState* retVal)
retValWindowVisualState*outキャッシュされた、ウィンドウの表示状態を示す WindowVisualState 値を受け取るポインタである。
vtbl 17 HRESULT get_CachedWindowInteractionState(WindowInteractionState* retVal)
retValWindowInteractionState*outキャッシュされた、ウィンドウの操作可能状態を示す WindowInteractionState 値を受け取るポインタである。

HSP用 COM定義

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

出力引数:
#define global IID_IUIAutomationWindowPattern "{0FAEF453-9208-43EF-BBB2-3B485177864F}"
#usecom global IUIAutomationWindowPattern IID_IUIAutomationWindowPattern "{}"
#comfunc global IUIAutomationWindowPattern_Close                              3
#comfunc global IUIAutomationWindowPattern_WaitForInputIdle                   4 int,var
#comfunc global IUIAutomationWindowPattern_SetWindowVisualState               5 int
#comfunc global IUIAutomationWindowPattern_get_CurrentCanMaximize             6 var
#comfunc global IUIAutomationWindowPattern_get_CurrentCanMinimize             7 var
#comfunc global IUIAutomationWindowPattern_get_CurrentIsModal                 8 var
#comfunc global IUIAutomationWindowPattern_get_CurrentIsTopmost               9 var
#comfunc global IUIAutomationWindowPattern_get_CurrentWindowVisualState       10 var
#comfunc global IUIAutomationWindowPattern_get_CurrentWindowInteractionState  11 var
#comfunc global IUIAutomationWindowPattern_get_CachedCanMaximize              12 var
#comfunc global IUIAutomationWindowPattern_get_CachedCanMinimize              13 var
#comfunc global IUIAutomationWindowPattern_get_CachedIsModal                  14 var
#comfunc global IUIAutomationWindowPattern_get_CachedIsTopmost                15 var
#comfunc global IUIAutomationWindowPattern_get_CachedWindowVisualState        16 var
#comfunc global IUIAutomationWindowPattern_get_CachedWindowInteractionState   17 var
; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。
; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。
; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。