MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / OnEnableAutorun

Method OnEnableAutorun

Ext2Mgr/Ext2MgrDlg.cpp:1976–1993  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1974}
1975
1976void CExt2MgrDlg::OnEnableAutorun()
1977{
1978 Ext2SetAppAutorun(TRUE);
1979 // Ext2SetManagerAsService(FALSE);
1980
1981 CMenu* pMenu = AfxGetMainWnd()->GetMenu();
1982 CMenu* pSubFile = pMenu->GetSubMenu(0);
1983 if (pSubFile) {
1984 if (Ext2RunMgrForCurrentUser()) {
1985 pSubFile->EnableMenuItem(ID_ENABLE_AUTOSTART, MF_BYCOMMAND|MF_GRAYED|MF_DISABLED);
1986 pSubFile->EnableMenuItem(ID_DISABLE_AUTOSTART, MF_BYCOMMAND|MF_ENABLED);
1987 } else {
1988 pSubFile->EnableMenuItem(ID_ENABLE_AUTOSTART, MF_BYCOMMAND|MF_ENABLED);
1989 pSubFile->EnableMenuItem(ID_DISABLE_AUTOSTART, MF_BYCOMMAND|MF_GRAYED|MF_DISABLED);
1990 }
1991 }
1992
1993}
1994
1995void CExt2MgrDlg::OnDisableAutorun()
1996{

Callers

nothing calls this directly

Calls 2

Ext2SetAppAutorunFunction · 0.85
Ext2RunMgrForCurrentUserFunction · 0.85

Tested by

no test coverage detected