IAgentCommand::GetVoice

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

HRESULT GetVoice(
   BSTR * pbszVoice  // address of Voice setting for Command
);

擷取Command語音文字屬性值。

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

pbszVoice

接收Command語音文字屬性的 BSTR 位址。

將其Voice屬性設定為 Command,且其 Enabled屬性設定為True將會可供語音存取。 如果其 Caption 屬性也設定為出現在 [語音命令] 視窗中。 如果 Visible 屬性設定為 True,則會出現在字元的快顯功能表中。

另請參閱

IAgentCommand::SetVoiceIAgentCommands::AddIAgentCommands::Insert