INapSystemHealthAgentRequest::GetSoHResponse 方法

注意

从Windows 10开始,网络访问保护平台不可用

NapAgent 调用 INapSystemHealthAgentCallback::P rocessSoHSoHResponse 时,运行状况代理使用 INapSystemHealthAgentRequest::GetSoHResponse 方法检索其 SoHResponse Blob。

语法

HRESULT GetSoHResponse(
  [out] SoHResponse **sohResponse,
  [out] UINT8       *flags
);

参数

sohResponse [out]

指向 SoHResponse 数据包的指针的指针。

flags [out]

指向标志的指针,如果设置了 shaFixup 位,则启用 SHA 修复,否则将禁用修复。

可能的值 含义
shaFixup
SHA 应根据响应执行修复。 如果未设置此标志,则 SHA 不应执行修复,即使 SoHResponse 指示它运行不正常。

返回值

也可能返回其他特定于 COM 的错误代码。

返回代码 说明
S_OK
操作成功。
E_ACCESSDENIED
权限错误,访问被拒绝。
E_OUTOFMEMORY
系统资源限制,无法执行该操作。

要求

要求
最低受支持的客户端
Windows Vista [仅限桌面应用]
最低受支持的服务器
Windows Server 2008 [仅限桌面应用]
标头
NapSystemHealthAgent.h
IDL
NapSystemHealthAgent.idl
DLL
Qagentrt.dll

另请参阅

INapSystemHealthAgentRequest