Changeset bc97cd8 in nscp for modules/SysTray/SysTray.cpp
- Timestamp:
- 09/06/08 20:51:13 (5 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- dc59b0e
- Parents:
- c0522cd
- File:
-
- 1 edited
-
modules/SysTray/SysTray.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
modules/SysTray/SysTray.cpp
rc0522cd rbc97cd8 43 43 } 44 44 bool SysTray::loadModule() { 45 if (systemInfo::isBelowXP(systemInfo::getOSVersion())) { 46 try { 47 if ((serviceControll::GetServiceType(SZSERVICENAME)&SERVICE_INTERACTIVE_PROCESS)!=SERVICE_INTERACTIVE_PROCESS) { 48 NSC_LOG_ERROR(_T("SysTray is not installed (or it cannot interact with the desktop) SysTray won't be loaded. Run ") SZAPPNAME _T(" SysTray install to change this.")); 49 return true; 50 } 51 } catch (serviceControll::SCException e) { 45 if (NSCModuleHelper::getSettingsInt(MAIN_SECTION_TITLE, MAIN_SHARED_SESSION, MAIN_SHARED_SESSION_DEFAULT) == 1) { 46 NSC_LOG_ERROR(_T("You have enabled shared session, systray module will not load...")); 47 return true; 48 } 49 try { 50 if ((serviceControll::GetServiceType(SZSERVICENAME)&SERVICE_INTERACTIVE_PROCESS)!=SERVICE_INTERACTIVE_PROCESS) { 52 51 NSC_LOG_ERROR(_T("SysTray is not installed (or it cannot interact with the desktop) SysTray won't be loaded. Run ") SZAPPNAME _T(" SysTray install to change this.")); 53 52 return true; 54 53 } 55 show();56 } else {57 NSC_LOG_ERROR(_T("SysTray module is not used on windows XP and above (so you can remove it)."));54 } catch (serviceControll::SCException e) { 55 NSC_LOG_ERROR(_T("SysTray is not installed (or it cannot interact with the desktop) SysTray won't be loaded. Run ") SZAPPNAME _T(" SysTray install to change this.")); 56 return true; 58 57 } 58 show(); 59 59 return true; 60 60 }
Note: See TracChangeset
for help on using the changeset viewer.








