Changeset 9567d4b in nscp for modules/SysTray
- Timestamp:
- 06/15/08 19:18:21 (5 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- 739db5a
- Parents:
- 367bf20
- Location:
- modules/SysTray
- Files:
-
- 2 edited
-
SysTray.cpp (modified) (1 diff)
-
SysTray.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
modules/SysTray/SysTray.cpp
r7f596ce r9567d4b 35 35 SysTray::SysTray() : icon(_T("SysTray")) {} 36 36 SysTray::~SysTray() {} 37 bool SysTray::loadModule() { 38 try { 39 if ((serviceControll::GetServiceType(SZSERVICENAME)&SERVICE_INTERACTIVE_PROCESS)!=SERVICE_INTERACTIVE_PROCESS) { 37 bool SysTray::loadModule(NSCAPI::moduleLoadMode mode) { 38 if (mode == NSCAPI::normalStart) { 39 try { 40 if ((serviceControll::GetServiceType(SZSERVICENAME)&SERVICE_INTERACTIVE_PROCESS)!=SERVICE_INTERACTIVE_PROCESS) { 41 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.")); 42 return true; 43 } 44 } catch (serviceControll::SCException e) { 40 45 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.")); 41 46 return true; 42 47 } 43 } catch (serviceControll::SCException e) { 44 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.")); 45 return true; 48 icon.createThread(); 46 49 } 47 icon.createThread();48 50 return true; 49 51 } -
modules/SysTray/SysTray.h
rb5ef837 r9567d4b 53 53 virtual ~SysTray(); 54 54 // Module calls 55 bool loadModule( );55 bool loadModule(NSCAPI::moduleLoadMode mode); 56 56 bool unloadModule(); 57 57 void setLogWindow(HWND hWnd);
Note: See TracChangeset
for help on using the changeset viewer.








