共用方式為


IAgentCommands::GetCaption

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

HRESULT GetCaption(
   BSTR * pbszCaption  // address of Caption text for Commands collection
);

擷取 命令 集合的 Caption

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

pbszCaption

BSTR 的位址,接收 Caption 文字設定的值,該設定會針對 Commands 集合顯示。

另請參閱

IAgentCommands::SetCaptionIAgentCommands::GetVisibleIAgentCommands::GetVoice