IsEnabled method
Determines whether the Accelerator is enabled.
Syntax
HRESULT retVal = object.IsEnabled(pfIsEnabled);
Parameters
pfIsEnabled [out]
Type: BOOLTRUE if the Accelerator is enabled; otherwise, FALSE.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Disabled Accelerators are not included on shortcut menus in Windows Internet Explorer or in any enumerations.