ISearchFolderItemFactory::SetScope 方法 (shobjidl_core.h)

設定搜尋範圍,如指定。

語法

HRESULT SetScope(
  [in] IShellItemArray *psiaScope
);

參數

[in] psiaScope

類型: IShellItemArray*

要搜尋之位置清單的指標。 搜尋將會包含此位置及其所有子容器。 預設值為 FOLDERID_Profile

傳回值

類型: HRESULT

如果成功,則傳回成功值,否則傳回錯誤值。

規格需求

需求
最低支援的用戶端 Windows Vista [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 [僅限傳統型應用程式]
目標平台 Windows
標頭 shobjidl_core.h (包含 Shobjidl.h)