共用方式為


IAgentCommand::GetEnabled

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

HRESULT GetEnabled(
   long * pbEnabled  // address of Enabled setting for Command
);

擷取 CommandEnabled 屬性的值。

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

pbEnabled

如果已啟用 Command,則為 true 的變數位址,或停用時 False。 無法選取停用 命令

另請參閱

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