[Microsoft代理程式從 Windows 7 開始已被取代,而且可能無法在後續版本的 Windows 中使用。]
HRESULT GetEnabled(
long * pbEnabled // address of Enabled setting for Command
);
- 傳回S_OK,表示作業成功。
-
pbEnabled
-
如果已啟用 Command,則為 true 的變數位址,或停用時 False。 無法選取停用 命令。
另請參閱
IAgentCommand::SetCaption、IAgentCommand::SetVisible、IAgentCommand::SetVoice、IAgentCommands::Add、IAgentCommands::Insert