ホーム › UI.Accessibility › IUIAutomationAnnotationPattern
IUIAutomationAnnotationPattern
COM公式ドキュメント
ドキュメント内の注釈のプロパティへのアクセスを提供します。
メソッド 10
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT get_CurrentAnnotationTypeId(UIA_ANNOTATIONTYPE* retVal)
注釈の種類を識別する値を取得します。
| retVal | UIA_ANNOTATIONTYPE* | out | 注釈の種類を識別する現在の注釈タイプ ID を受け取るポインタである。 |
この注釈の種類のローカライズされた名前を取得します。
| retVal | LPWSTR* | out | 現在の注釈タイプの名前を受け取る文字列ポインタへのポインタである。 |
解説(Remarks)
注釈の種類の名前は、注釈の種類の識別子のいずれか(たとえば AnnotationType_Comment に対する「Comment」)に対応する場合がありますが、必須ではありません。
注釈の作成者の名前を取得します。
| retVal | LPWSTR* | out | 注釈の作成者名を受け取る文字列ポインタへのポインタである。 |
この注釈が作成された日時を取得します。
| retVal | LPWSTR* | out | 注釈が作成された日時を表す文字列を受け取る文字列ポインタへのポインタである。 |
vtbl 7 HRESULT get_CurrentTarget(IUIAutomationElement** retVal)
注釈の対象となっている要素を取得します。
| retVal | IUIAutomationElement** | out | 注釈の対象となっている要素を受け取るインターフェイスポインタへのポインタである。 |
vtbl 8 HRESULT get_CachedAnnotationTypeId(UIA_ANNOTATIONTYPE* retVal)
この注釈の種類を識別するキャッシュされた値を取得します。
| retVal | UIA_ANNOTATIONTYPE* | out | キャッシュされた注釈タイプ ID を受け取るポインタである。 |
この注釈の種類のキャッシュされたローカライズ名を取得します。
| retVal | LPWSTR* | out | キャッシュされた注釈タイプの名前を受け取る文字列ポインタへのポインタである。 |
解説(Remarks)
注釈の種類の名前は、注釈の種類の識別子のいずれか(たとえば AnnotationType_Comment に対する「Comment」)に対応する場合がありますが、必須ではありません。
注釈の作成者のキャッシュされた名前を取得します。
| retVal | LPWSTR* | out | キャッシュされた注釈の作成者名を受け取る文字列ポインタへのポインタである。 |
この注釈が作成されたキャッシュされた日時を取得します。
| retVal | LPWSTR* | out | キャッシュされた注釈の作成日時を表す文字列を受け取る文字列ポインタへのポインタである。 |
vtbl 12 HRESULT get_CachedTarget(IUIAutomationElement** retVal)
注釈の対象となっているキャッシュされた要素を取得します。
| retVal | IUIAutomationElement** | out | キャッシュされた、注釈の対象となっている要素を受け取るインターフェイスポインタへのポインタである。 |
出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IUIAutomationAnnotationPattern "{9A175B21-339E-41B1-8E8B-623F6B681098}" #usecom global IUIAutomationAnnotationPattern IID_IUIAutomationAnnotationPattern "{}" #comfunc global IUIAutomationAnnotationPattern_get_CurrentAnnotationTypeId 3 var #comfunc global IUIAutomationAnnotationPattern_get_CurrentAnnotationTypeName 4 var #comfunc global IUIAutomationAnnotationPattern_get_CurrentAuthor 5 var #comfunc global IUIAutomationAnnotationPattern_get_CurrentDateTime 6 var #comfunc global IUIAutomationAnnotationPattern_get_CurrentTarget 7 sptr #comfunc global IUIAutomationAnnotationPattern_get_CachedAnnotationTypeId 8 var #comfunc global IUIAutomationAnnotationPattern_get_CachedAnnotationTypeName 9 var #comfunc global IUIAutomationAnnotationPattern_get_CachedAuthor 10 var #comfunc global IUIAutomationAnnotationPattern_get_CachedDateTime 11 var #comfunc global IUIAutomationAnnotationPattern_get_CachedTarget 12 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IUIAutomationAnnotationPattern "{9A175B21-339E-41B1-8E8B-623F6B681098}" #usecom global IUIAutomationAnnotationPattern IID_IUIAutomationAnnotationPattern "{}" #comfunc global IUIAutomationAnnotationPattern_get_CurrentAnnotationTypeId 3 sptr #comfunc global IUIAutomationAnnotationPattern_get_CurrentAnnotationTypeName 4 sptr #comfunc global IUIAutomationAnnotationPattern_get_CurrentAuthor 5 sptr #comfunc global IUIAutomationAnnotationPattern_get_CurrentDateTime 6 sptr #comfunc global IUIAutomationAnnotationPattern_get_CurrentTarget 7 sptr #comfunc global IUIAutomationAnnotationPattern_get_CachedAnnotationTypeId 8 sptr #comfunc global IUIAutomationAnnotationPattern_get_CachedAnnotationTypeName 9 sptr #comfunc global IUIAutomationAnnotationPattern_get_CachedAuthor 10 sptr #comfunc global IUIAutomationAnnotationPattern_get_CachedDateTime 11 sptr #comfunc global IUIAutomationAnnotationPattern_get_CachedTarget 12 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。