Ignore:
Timestamp:
02/20/11 15:43:50 (2 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2
Children:
4c18192
Parents:
c760fc9
Message:

Syncronized streams so all new 0.3.9 features are now in 0.4.x as well

File:
1 moved

Legend:

Unmodified
Added
Removed
  • modules/CheckTaskSched2/stdafx.h

    r497b779 r1f24a1c  
    1919*   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             * 
    2020***************************************************************************/ 
    21 NSC_WRAPPERS_MAIN(); 
    2221 
    23 #include <settings/macros.h> 
    24 #include <strEx.h> 
    25 #include <utils.h> 
    26 #include <checkHelpers.hpp> 
     22#pragma once 
    2723 
    2824 
    29 class CheckEventLog { 
    30 private: 
    31   bool debug_; 
    32   std::wstring syntax_; 
    33   DWORD buffer_length_; 
    34   bool lookup_names_; 
     25#define WIN32_LEAN_AND_MEAN   // Exclude rarely-used stuff from Windows headers 
     26// Windows Header Files: 
     27//#include <windows.h> 
    3528 
    36 public: 
    37   CheckEventLog(); 
    38   virtual ~CheckEventLog(); 
    39   // Module calls 
    40   bool loadModule(NSCAPI::moduleLoadMode mode); 
    41   bool unloadModule(); 
     29#include <string> 
     30#include <functional> 
    4231 
    43   std::wstring getModuleName() { 
    44     return _T("Event log Checker."); 
    45   } 
    46   NSCModuleWrapper::module_version getModuleVersion() { 
    47     NSCModuleWrapper::module_version version = {0, 0, 1 }; 
    48     return version; 
    49   } 
    50   std::wstring getModuleDescription() { 
    51     return _T("Check for errors and warnings in the event log.\nThis is only supported through NRPE so if you plan to use only NSClient this wont help you at all."); 
    52   } 
     32#define _WIN32_DCOM 
     33#include <objbase.h> 
    5334 
    54   void parse(std::wstring expr); 
     35#include <NSCAPI.h> 
     36#include <nscapi/plugin.hpp> 
     37#include <nscapi/nscapi_plugin_wrapper.hpp> 
     38#include <checkHelpers.hpp> 
     39#include <filter_framework.hpp> 
    5540 
    56   bool hasCommandHandler(); 
    57   bool hasMessageHandler(); 
    58   NSCAPI::nagiosReturn handleCommand(const strEx::blindstr command, const unsigned int argLen, TCHAR **char_args, std::wstring &message, std::wstring &perf); 
    59 }; 
     41#include <atlbase.h> 
     42//#include <atlcom.h> 
     43//#include <atlstr.h> 
     44#include <atlsafe.h> 
     45 
     46#ifdef MEMCHECK 
     47#include <vld.h> 
     48#endif 
Note: See TracChangeset for help on using the changeset viewer.