共用方式為


IFunctionInstanceCollection::Item 方法 (functiondiscoveryapi.h)

[函式探索可用於需求一節中指定的作業系統。 後續版本可能會變更或無法使用。]

依索引取得指定的函式實例。

語法

HRESULT Item(
  [in]  DWORD             dwIndex,
  [out] IFunctionInstance **ppIFunctionInstance
);

參數

[in] dwIndex

要擷取之函式實例之以零起始的索引。

[out] ppIFunctionInstance

接收函式實例之 IFunctionInstance 介面指標的指標。

傳回值

可能的傳回值包括但不限於下列各項。

傳回碼 描述
S_OK
已成功完成命令。
E_INVALIDARG
ppFunctionInstance 參數為 NULLdwIndex 超出範圍。

備註

GetCountItem 方法可讓您使用簡單 forwhile 循環列舉集合中包含的所有函式實例。

規格需求

需求
最低支援的用戶端 Windows Vista [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 [僅限傳統型應用程式]
目標平台 Windows
標頭 functiondiscoveryapi.h
Dll FunDisc.dll

另請參閱

IFunctionInstanceCollection