IAgentUserInput::GetItemConfidence
[从 Windows 7 开始,Microsoft代理已弃用,在后续版本的 Windows 中可能不可用。
HRESULT GetItemConfidence(
long dwItemIndex, // index of Command alternative
long * plConfidence // address of confidence value for Command
);
检索传递给 IAgentNotifySink::Command 回调的 Command 置信度值。
- 返回S_OK以指示作成功。
-
dwItemIndex
-
传递给 IAgentNotifySink::Command 回调的 Command 替代项的索引。
-
plConfidence
-
接收传递给 IAgentNotifySink::Command 回调的 Command 替代项的置信度分数的变量的地址。
例如,如果用户从字符的弹出菜单中选择命令,则Microsoft代理服务器将最佳匹配的置信度值返回为 100,所有其他替代项的置信度值为零(0)。
另请参阅
IAgentUserInput::GetItemID、IAgentUserInput::GetAllItemData、IAgentUserInput::GetItemText