IAgentCommand::GetCaption

[从 Windows 7 开始,Microsoft代理已弃用,在后续版本的 Windows 中可能不可用。

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

检索 命令的 标题。

  • 返回S_OK以指示作成功。

pbszCaption

接收为 命令显示的 标题 文本值的 BSTR 的地址。

另请参阅

IAgentCommand::SetCaption、IAgentCommand::SetEnabled、IAgentCommand::SetVisible、IAgentCommand::SetVoice、IAgentCommands::Add、IAgentCommands::Insert