Changeset d48c31a in nscp for modules/CheckSystem


Ignore:
Timestamp:
12/02/06 20:06:22 (6 years ago)
Author:
Michael Medin <michael@…>
Branches:
master, 0.4.0, 0.4.1, 0.4.2, stable
Children:
2603350
Parents:
0687108
Message:

New build enviornment (static) to work with NT4 and w2k3 and hopefully everything else.
Also fixed the "broken password" issue..

Location:
modules/CheckSystem
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • modules/CheckSystem/CheckSystem.cpp

    r0687108 rd48c31a  
    88#include <EnumNtSrv.h> 
    99#include <EnumProcess.h> 
    10 #include <sysinfo.h> 
    1110#include <checkHelpers.hpp> 
    1211#include <map> 
     12#include <sysinfo.h> 
    1313 
    1414CheckSystem gCheckSystem; 
     
    7979    } 
    8080  } 
     81   
    8182  return true; 
    8283} 
  • modules/CheckSystem/CheckSystem.h

    rf42280d rd48c31a  
    11#pragma once 
     2 
    23#include "PDHCollector.h" 
    34#include <CheckMemory.h> 
  • modules/CheckSystem/CheckSystem.vcproj

    r9ce8b01 rd48c31a  
    123123        Name="VCCLCompilerTool" 
    124124        AdditionalIncludeDirectories="../../include" 
    125         PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS" 
    126         RuntimeLibrary="2" 
     125        PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS; _CRT_SECURE_NO_DEPRECATE" 
     126        RuntimeLibrary="0" 
    127127        UsePrecompiledHeader="2" 
    128128        WarningLevel="3" 
     
    145145        LinkIncremental="1" 
    146146        ModuleDefinitionFile="CheckSystem.def" 
    147         GenerateDebugInformation="true" 
     147        GenerateDebugInformation="false" 
    148148        SubSystem="2" 
    149149        OptimizeReferences="2" 
     
    257257      /> 
    258258    </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> 
    259339  </Configurations> 
    260340  <References> 
     
    325405          /> 
    326406        </FileConfiguration> 
     407        <FileConfiguration 
     408          Name="Nightly|Win32" 
     409          > 
     410          <Tool 
     411            Name="VCCLCompilerTool" 
     412            UsePrecompiledHeader="1" 
     413          /> 
     414        </FileConfiguration> 
    327415      </File> 
    328416      <File 
    329417        RelativePath="..\..\include\sysinfo.cpp" 
    330418        > 
     419      </File> 
     420      <File 
     421        RelativePath="..\..\include\utils.cpp" 
     422        > 
    331423        <FileConfiguration 
    332424          Name="Debug|Win32" 
     
    353445          /> 
    354446        </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" 
    377449          > 
    378450          <Tool 
     
    421493      </File> 
    422494      <File 
     495        RelativePath="..\..\include\sysinfo.h" 
     496        > 
     497      </File> 
     498      <File 
    423499        RelativePath="..\..\include\utils.h" 
    424500        > 
  • modules/CheckSystem/PDHCollector.cpp

    r0687108 rd48c31a  
    100100      } 
    101101      NSC_DEBUG_MSG_STD("Detected language: " + settings.getString(section, "Description", "Not found") + " (" + section + ")"); 
    102     } catch (systemInfo::SystemInfoException e) { 
    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()); 
    104104      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."); 
    105105      return -1; 
  • modules/CheckSystem/stdafx.h

    rcea178b rd48c31a  
    99// Windows Header Files: 
    1010#include <windows.h> 
     11 
     12#define COMPILE_NEWAPIS_STUBS 
     13#define WANT_GETLONGPATHNAME_WRAPPER 
     14#include <NewAPIs.h> 
     15 
    1116#include <iostream> 
    1217#include <tchar.h> 
Note: See TracChangeset for help on using the changeset viewer.