IUIAutomationElement7::FindFirstWithOptions メソッド (uiautomationclient.h)

指定した順序で最初に一致する要素を検索します。

構文

HRESULT FindFirstWithOptions(
                 TreeScope              scope,
  [in]           IUIAutomationCondition *condition,
                 TreeTraversalOptions   traversalOptions,
  [in, optional] IUIAutomationElement   *root,
  [out, retval]  IUIAutomationElement   **found
);

パラメーター

scope

[in] condition

一致する条件を表す条件へのポインター。

traversalOptions

[in, optional] root

検索を開始する要素へのポインター。

[out, retval] found

要素へのポインターを受け取ります。 一致する要素が見つからない場合、NULL が返されます。

戻り値

成功した場合はS_OKを返します。それ以外の場合は HRESULT エラー コードを返します。

要件

要件
サポートされている最小のクライアント Windows 10、バージョン 1703 [デスクトップ アプリのみ]
サポートされている最小のサーバー Windows Server 2016 [デスクトップ アプリのみ]
対象プラットフォーム Windows
ヘッダー uiautomationclient.h (UIAutomation.h を含む)
[DLL] UIAutomationCore.dll

こちらもご覧ください

IUIAutomationElement7