INapSoHProcessor::FindNextAttribute 方法
注意
从Windows 10开始,网络访问保护平台不可用
INapSoHProcessor::FindNextAttribute 方法查找 SoHAttributeType 所指示类型的下一个属性的位置 (索引) 。
语法
HRESULT FindNextAttribute(
[in] UINT16 fromLocation,
[in] SoHAttributeType type,
[out] UINT16 *attributeLocation
);
parameters
-
fromLocation [in]
-
运行状况声明 (SoH) 数据包中的起始位置 (索引) 开始属性搜索。 此值必须在 0 到 numAttrib - 1) (范围内,其中 numAttrib 是使用 INapSoHProcessor::GetNumberOfAttributes 检索的。
注意
SoH 数据包使用从 0 开始的属性索引。
-
type [in]
-
包含要查找的属性类型的 SoHAttributeType 结构。
-
attributeLocation [out]
-
包含索引 fromLocation 中 SoHAttributeType 类型第一个属性的 SoH 数据包中的位置 (索引) 的指针。
返回值
也可能返回其他特定于 COM 的错误代码。
返回代码 | 说明 |
---|---|
|
操作成功。 |
|
权限错误,访问被拒绝。 |
|
系统资源限制,无法执行该操作。 |
|
找不到属性。 |
备注
FindNextAttribute 方法从 fromLocation 和更高位置指定的索引中搜索 SoHAttributeType 类型的属性,直到找到匹配项。 如果未找到匹配项,则返回 ERROR_FILE_NOT_FOUND 。
要求
要求 | 值 |
---|---|
最低受支持的客户端 |
Windows Vista [仅限桌面应用] |
最低受支持的服务器 |
Windows Server 2008 [仅限桌面应用] |
标头 |
|
IDL |
|
DLL |
|