// Validator.cpp: implementation of the CValidator class. // ////////////////////////////////////////////////////////////////////// //*************************************************************************** // // judyp May 1999 // //*************************************************************************** #include "stdafx.h" #include #include #include #include #include #include using namespace std; #include #include #include #ifdef NONNT5 typedef unsigned long ULONG_PTR; #endif #include #include #include #include #include #include "t_string.h" #include "Persistor.h" #include "Logger.h" #include "TCOData.h" #include "Utilities.h" #include "StructureWrappers.h" #include "StructureWapperHelpers.h" #include "Validator.h" #define DEFAULT_MIN_BUFFERS 2 CValidator::CValidator() { } CValidator::~CValidator() { } bool CValidator::Validate ( TRACEHANDLE *pTraceHandle, LPTSTR lptstrInstanceName, PEVENT_TRACE_PROPERTIES pProps, LPTSTR lptstrValidator ) { bool bReturn = true; if (case_insensitive_compare(lptstrValidator, _T("VALIDATION_1.1.1.10.5"))) { bReturn = pProps->MinimumBuffers == DEFAULT_MIN_BUFFERS; if (bReturn) { t_cout << _T("Validator passed.\n"); } else { t_cout << _T("Validator failed.\n"); } } return bReturn; }