共用方式為


IAgentSpeechInputProperties::GetHotKey

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

HRESULT GetHotKey(
BSTR * pbszHotCharKey  // address of variable for listening key 
);                        

擷取語音輸入接聽鍵的目前鍵盤指派。

  • 傳回S_OK,表示作業成功。

pbszHotCharKey

BSTR 的位址,接收用來開啟語音輸入音訊通道的目前熱鍵設定。

如果 GetEnabled 傳回 false ,則查詢此設定會產生錯誤。

另請參閱

IAgentSpeechInputProperties::GetEnabled