共用方式為


IAgentCommand::GetCaption

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

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

擷取 命令Caption

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

pbszCaption

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

另請參閱

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