[Microsoft代理程式從 Windows 7 開始已被取代,而且可能無法在後續版本的 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 回呼之 命令 的索引。
-
plConfidence
-
接收傳遞至 IAgentNotifySink::Command 回呼之 Command 信賴分數的變數位址。
例如,如果使用者從字元的彈出視窗中選取命令,則 Microsoft Agent 伺服器會傳回最符合的信賴值 100,而所有其他替代選項的信賴值則為零 (0)。
另請參閱
IAgentUserInput::GetItemID、IAgentUserInput::GetAllItemData、IAgentUserInput::GetItemText