_EXPCMDSTATE enumeration (shobjidl_core.h)

EXPCMDSTATE values represent the command state of a Shell item.

Syntax

typedef enum _EXPCMDSTATE {
  ECS_ENABLED = 0,
  ECS_DISABLED = 0x1,
  ECS_HIDDEN = 0x2,
  ECS_CHECKBOX = 0x4,
  ECS_CHECKED = 0x8,
  ECS_RADIOCHECK = 0x10
} ;

Constants

 
ECS_ENABLED
Value: 0
The item is enabled.
ECS_DISABLED
Value: 0x1
The item is unavailable. It might be displayed to the user as a dimmed, inaccessible item.
ECS_HIDDEN
Value: 0x2
The item is hidden.
ECS_CHECKBOX
Value: 0x4
The item is displayed with a check box and that check box is not checked.
ECS_CHECKED
Value: 0x8
The item is displayed with a check box and that check box is checked. ECS_CHECKED is always returned with ECS_CHECKBOX.
ECS_RADIOCHECK
Value: 0x10
Windows 7 and later. The item is one of a group of mutually exclusive options selected through a radio button. ECS_RADIOCHECK does not imply that the item is the selected option, though it might be.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header shobjidl_core.h (include Shobjidl.h)

See also

Button Types

IExplorerCommand::GetState

IExplorerCommandState::GetState