共用方式為


IAgentNotifySink::Command

[Microsoft代理程式從 Windows 7 開始已被取代,而且可能無法在後續版本的 Windows 中使用。]

HRESULT Command(
   long dwCommandID,         // Command ID of the best match
   IUnknown * punkUserInput  // address of IAgentUserInput object 
);                          

通知用戶端應用程式用戶已選取 命令

  • 沒有傳回值。

dwCommandID

最符合命令替代項目的識別碼。

punkUserInput

IAgentUserInput 物件的 IUnknown 介面位址。

使用 QueryInterface 來擷取 IAgentUserInput 介面。

當使用者透過語音選擇命令,或從字元的彈出視窗中選取命令,伺服器會通知輸入作用中用戶端。 即使用戶選取其中一個伺服器的命令,也會發生此事件。 在此情況下,伺服器會傳回 Null 命令標識碼、信賴分數,以及語音引擎針對該專案傳回的語音文字。

另請參閱

IAgentUserInput