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

Method OnDisableAutorun

Ext2Mgr/Ext2MgrDlg.cpp:1995–2010  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1993}
1994
1995void CExt2MgrDlg::OnDisableAutorun()
1996{
1997 Ext2SetAppAutorun(FALSE);
1998
1999 CMenu* pMenu = AfxGetMainWnd()->GetMenu();
2000 CMenu* pSubFile = pMenu->GetSubMenu(0);
2001 if (pSubFile) {
2002 if (Ext2RunMgrForCurrentUser()) {
2003 pSubFile->EnableMenuItem(ID_ENABLE_AUTOSTART, MF_BYCOMMAND|MF_GRAYED|MF_DISABLED);
2004 pSubFile->EnableMenuItem(ID_DISABLE_AUTOSTART, MF_BYCOMMAND|MF_ENABLED);
2005 } else {
2006 pSubFile->EnableMenuItem(ID_ENABLE_AUTOSTART, MF_BYCOMMAND|MF_ENABLED);
2007 pSubFile->EnableMenuItem(ID_DISABLE_AUTOSTART, MF_BYCOMMAND|MF_GRAYED|MF_DISABLED);
2008 }
2009 }
2010}
2011
2012void CExt2MgrDlg::OnPerfStat()
2013{

Callers

nothing calls this directly

Calls 2

Ext2SetAppAutorunFunction · 0.85
Ext2RunMgrForCurrentUserFunction · 0.85

Tested by

no test coverage detected