Changeset d48c31a in nscp for modules/CheckSystem
- Timestamp:
- 12/02/06 20:06:22 (6 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- 2603350
- Parents:
- 0687108
- Location:
- modules/CheckSystem
- Files:
-
- 5 edited
-
CheckSystem.cpp (modified) (2 diffs)
-
CheckSystem.h (modified) (1 diff)
-
CheckSystem.vcproj (modified) (6 diffs)
-
PDHCollector.cpp (modified) (1 diff)
-
stdafx.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
modules/CheckSystem/CheckSystem.cpp
r0687108 rd48c31a 8 8 #include <EnumNtSrv.h> 9 9 #include <EnumProcess.h> 10 #include <sysinfo.h>11 10 #include <checkHelpers.hpp> 12 11 #include <map> 12 #include <sysinfo.h> 13 13 14 14 CheckSystem gCheckSystem; … … 79 79 } 80 80 } 81 81 82 return true; 82 83 } -
modules/CheckSystem/CheckSystem.h
rf42280d rd48c31a 1 1 #pragma once 2 2 3 #include "PDHCollector.h" 3 4 #include <CheckMemory.h> -
modules/CheckSystem/CheckSystem.vcproj
r9ce8b01 rd48c31a 123 123 Name="VCCLCompilerTool" 124 124 AdditionalIncludeDirectories="../../include" 125 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS "126 RuntimeLibrary=" 2"125 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS; _CRT_SECURE_NO_DEPRECATE" 126 RuntimeLibrary="0" 127 127 UsePrecompiledHeader="2" 128 128 WarningLevel="3" … … 145 145 LinkIncremental="1" 146 146 ModuleDefinitionFile="CheckSystem.def" 147 GenerateDebugInformation=" true"147 GenerateDebugInformation="false" 148 148 SubSystem="2" 149 149 OptimizeReferences="2" … … 257 257 /> 258 258 </Configuration> 259 <Configuration 260 Name="Nightly|Win32" 261 OutputDirectory="$(ConfigurationName)" 262 IntermediateDirectory="$(ConfigurationName)" 263 ConfigurationType="2" 264 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" 265 CharacterSet="2" 266 > 267 <Tool 268 Name="VCPreBuildEventTool" 269 /> 270 <Tool 271 Name="VCCustomBuildTool" 272 /> 273 <Tool 274 Name="VCXMLDataGeneratorTool" 275 /> 276 <Tool 277 Name="VCWebServiceProxyGeneratorTool" 278 /> 279 <Tool 280 Name="VCMIDLTool" 281 /> 282 <Tool 283 Name="VCCLCompilerTool" 284 AdditionalIncludeDirectories="../../include" 285 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS" 286 RuntimeLibrary="0" 287 UsePrecompiledHeader="2" 288 WarningLevel="3" 289 Detect64BitPortabilityProblems="true" 290 DebugInformationFormat="3" 291 /> 292 <Tool 293 Name="VCManagedResourceCompilerTool" 294 /> 295 <Tool 296 Name="VCResourceCompilerTool" 297 /> 298 <Tool 299 Name="VCPreLinkEventTool" 300 /> 301 <Tool 302 Name="VCLinkerTool" 303 AdditionalDependencies="Pdh.lib" 304 OutputFile="../../Dist/modules/$(ProjectName).dll" 305 LinkIncremental="1" 306 ModuleDefinitionFile="CheckSystem.def" 307 GenerateDebugInformation="true" 308 SubSystem="2" 309 OptimizeReferences="2" 310 EnableCOMDATFolding="2" 311 ImportLibrary="$(OutDir)/CheckSystem.lib" 312 TargetMachine="1" 313 /> 314 <Tool 315 Name="VCALinkTool" 316 /> 317 <Tool 318 Name="VCManifestTool" 319 /> 320 <Tool 321 Name="VCXDCMakeTool" 322 /> 323 <Tool 324 Name="VCBscMakeTool" 325 /> 326 <Tool 327 Name="VCFxCopTool" 328 /> 329 <Tool 330 Name="VCAppVerifierTool" 331 /> 332 <Tool 333 Name="VCWebDeploymentTool" 334 /> 335 <Tool 336 Name="VCPostBuildEventTool" 337 /> 338 </Configuration> 259 339 </Configurations> 260 340 <References> … … 325 405 /> 326 406 </FileConfiguration> 407 <FileConfiguration 408 Name="Nightly|Win32" 409 > 410 <Tool 411 Name="VCCLCompilerTool" 412 UsePrecompiledHeader="1" 413 /> 414 </FileConfiguration> 327 415 </File> 328 416 <File 329 417 RelativePath="..\..\include\sysinfo.cpp" 330 418 > 419 </File> 420 <File 421 RelativePath="..\..\include\utils.cpp" 422 > 331 423 <FileConfiguration 332 424 Name="Debug|Win32" … … 353 445 /> 354 446 </FileConfiguration> 355 </File> 356 <File 357 RelativePath="..\..\include\utils.cpp" 358 > 359 <FileConfiguration 360 Name="Debug|Win32" 361 > 362 <Tool 363 Name="VCCLCompilerTool" 364 UsePrecompiledHeader="0" 365 /> 366 </FileConfiguration> 367 <FileConfiguration 368 Name="Release|Win32" 369 > 370 <Tool 371 Name="VCCLCompilerTool" 372 UsePrecompiledHeader="0" 373 /> 374 </FileConfiguration> 375 <FileConfiguration 376 Name="Distribution|Win32" 447 <FileConfiguration 448 Name="Nightly|Win32" 377 449 > 378 450 <Tool … … 421 493 </File> 422 494 <File 495 RelativePath="..\..\include\sysinfo.h" 496 > 497 </File> 498 <File 423 499 RelativePath="..\..\include\utils.h" 424 500 > -
modules/CheckSystem/PDHCollector.cpp
r0687108 rd48c31a 100 100 } 101 101 NSC_DEBUG_MSG_STD("Detected language: " + settings.getString(section, "Description", "Not found") + " (" + section + ")"); 102 } catch ( systemInfo::SystemInfoExceptione) {103 NSC_LOG_ERROR_STD("System detection failed, PDH will be disabled: " + e.error_);102 } catch (const systemInfo::SystemInfoException &e) { 103 //NSC_LOG_ERROR_STD("System detection failed, PDH will be disabled: " + e.getError()); 104 104 NSC_LOG_ERROR_STD("To manual set performance counters you need to first set " C_SYSTEM_AUTODETECT_PDH "=0 in the config file, and then you also need to configure the various counter."); 105 105 return -1; -
modules/CheckSystem/stdafx.h
rcea178b rd48c31a 9 9 // Windows Header Files: 10 10 #include <windows.h> 11 12 #define COMPILE_NEWAPIS_STUBS 13 #define WANT_GETLONGPATHNAME_WRAPPER 14 #include <NewAPIs.h> 15 11 16 #include <iostream> 12 17 #include <tchar.h>
Note: See TracChangeset
for help on using the changeset viewer.








