Changeset 1f24a1c in nscp for modules/CheckTaskSched2/stdafx.h
- Timestamp:
- 02/20/11 15:43:50 (2 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2
- Children:
- 4c18192
- Parents:
- c760fc9
- File:
-
- 1 moved
-
modules/CheckTaskSched2/stdafx.h (moved) (moved from modules/CheckEventLog/CheckEventLog.h.bak) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
modules/CheckTaskSched2/stdafx.h
r497b779 r1f24a1c 19 19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 20 20 ***************************************************************************/ 21 NSC_WRAPPERS_MAIN();22 21 23 #include <settings/macros.h> 24 #include <strEx.h> 25 #include <utils.h> 26 #include <checkHelpers.hpp> 22 #pragma once 27 23 28 24 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> 35 28 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> 42 31 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> 53 34 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> 55 40 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.








