Partager via


SetEnabled method

Enables or disables the Accelerator.

 

Syntax

HRESULT retVal = object.SetEnabled(fEnable);

Parameters

  • fEnable [in]
    Type: BOOL

    TRUE to enable the Accelerator; FALSE to disable the Accelerator.

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.

See also

Reference

IOpenService::SetDefault

IOpenServiceManager::UninstallService