[函数发现可用于“要求”部分中指定的操作系统。 它在后续版本中可能已更改或不可用。]
从集合中获取指定的函数实例及其索引。
语法
HRESULT Get(
[in] const WCHAR *pszInstanceIdentity,
[out] DWORD *pdwIndex,
[out] IFunctionInstance **ppIFunctionInstance
);
参数
[in] pszInstanceIdentity
要检索的函数实例的标识符 (请参阅 GetID) 。
[out] pdwIndex
索引号。
[out] ppIFunctionInstance
指向接收函数实例的 IFunctionInstance 接口指针的指针。
返回值
可能的返回值包括但不限于以下值。
| 返回代码 | 说明 |
|---|---|
|
该方法已成功完成。 |
|
由 pInstanceIdentity 标识的函数实例不存在于函数实例集合中。 |
|
pdwIndex 或 pInstanceIdentity 的值无效。 |
|
方法无法分配执行此操作所需的内存。 |
要求
| 最低受支持的客户端 | Windows Vista [仅限桌面应用] |
| 最低受支持的服务器 | Windows Server 2008 [仅限桌面应用] |
| 目标平台 | Windows |
| 标头 | functiondiscoveryapi.h |
| DLL | FunDisc.dll |