IAgentCommand::GetEnabled

[Microsoft Agent is deprecated as of Windows 7, and may be unavailable in subsequent versions of Windows.]

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

Retrieves the value of the Enabled property for a Command.

  • Returns S_OK to indicate the operation was successful.

pbEnabled

The address of a variable that receives True if the Command is enabled, or False if it is disabled. A disabled Command cannot be selected.

See Also

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