共用方式為


IAgentCommandEx::GetVoiceCaption

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

HRESULT GetVoiceCaption(
   BSTR * pbszVoiceCaption  // address of command's voice caption text
);

擷取命令VoiceCaption

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

pbszVoiceCaption

BSTR 的位址,接收命令所顯示之 Caption文字的值。

VoiceCaption是當用戶端應用程式為輸入作用中時,[語音命令視窗] 中Command物件所顯示的文字。

另請參閱

IAgentCommandEx::SetVoiceCaptionIAgentCommand::SetEnabledIAgentCommand::SetVisibleIAgentCommand::SetVoiceIAgentCommandsEx::AddExIAgentCommandsEx::InsertExIAgentCommands::AddIAgentCommands::Insert