Dela via


IAgentCommand::GetCaption

[Microsoft Agent är inaktuell från och med Windows 7 och kan vara otillgänglig i efterföljande versioner av Windows.]

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

Hämtar Caption för ett -kommando.

  • Returnerar S_OK för att indikera att åtgärden lyckades.

pbszCaption

Adressen till en BSTR som tar emot värdet för texten Caption som visas för ett -kommando.

Se även

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