Changeset 9567d4b in nscp for modules/SysTray


Ignore:
Timestamp:
06/15/08 19:18:21 (5 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
739db5a
Parents:
367bf20
Message:

2008-05-?? MickeM

  • BREAKING CHANGE! -- THe API function NSCLoadPlugin has been changed to take an integer to define the load-status

2008-06-?? MickeM

  • BREAKING CHANGE! -- New settings API as well as new WEBConfiguration UI (nothing is finnished yet but I wanted to check things into the SVN since it is a lot of changes now :)

2008-05-14 MickeM

  • Fixed memoryleak in the service checker.

I am really sorry I usualy write better code then this.

2008-05-11 MickeM

  • BREAKING CHANGE! -- Changed PDH options to a more uniform design:

auto_detect_pdh and dont_use_pdh_index has been removed and instead there is a new method option that takes various values.

Location:
modules/SysTray
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/SysTray/SysTray.cpp

    r7f596ce r9567d4b  
    3535SysTray::SysTray() : icon(_T("SysTray")) {} 
    3636SysTray::~SysTray() {} 
    37 bool SysTray::loadModule() { 
    38   try { 
    39     if ((serviceControll::GetServiceType(SZSERVICENAME)&SERVICE_INTERACTIVE_PROCESS)!=SERVICE_INTERACTIVE_PROCESS) { 
     37bool 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) { 
    4045      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.")); 
    4146      return true; 
    4247    } 
    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(); 
    4649  } 
    47   icon.createThread(); 
    4850  return true; 
    4951} 
  • modules/SysTray/SysTray.h

    rb5ef837 r9567d4b  
    5353  virtual ~SysTray(); 
    5454  // Module calls 
    55   bool loadModule(); 
     55  bool loadModule(NSCAPI::moduleLoadMode mode); 
    5656  bool unloadModule(); 
    5757  void setLogWindow(HWND hWnd); 
Note: See TracChangeset for help on using the changeset viewer.