Share via


IAgentCommand::GetCaption

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

HRESULT GetCaption(
   BSTR * pbszCaption  // address of Caption for Command
);

擷取命令標題

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

pbszCaption

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

另請參閱

IAgentCommand::SetCaptionIAgentCommand::SetEnabledIAgentCommand::SetVisibleIAgentCommand::SetVoiceIAgentCommands::AddIAgentCommands::Insert