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

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

構文

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

パラメーター

[in] scope

検索範囲を指定する値の組み合わせ。

[in] condition

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

traversalOptions

ツリー ナビゲーション順序を指定する列挙値。

[in, optional] root

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

[out, retval] found

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

戻り値

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

必要条件

要件 価値
サポートされる最小クライアント Windows 10 バージョン 1703 [デスクトップ アプリのみ]
サポートされる最小サーバー Windows Server 2016 [デスクトップ アプリのみ]
ターゲット プラットフォーム の ウィンドウズ
ヘッダー uiautomationclient.h (UIAutomation.h を含む)
DLL UIAutomationCore.dll

関連項目

IUIAutomationElement7