Commits

Billy O'Neal committed 993e611

Started using precompiled headers.

Comments (0)

Files changed (38)

pevFind/pevFind.vcxproj

     <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(Platform)\$(Configuration)\</IntDir>
     <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
     <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(Platform)\$(Configuration)\</IntDir>
+    <LibraryPath Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">C:\Dev\cryptopp561\$(PlatformToolset)\$(Platform)\$(Configuration);C:\Dev\boost_1_47_0\stage\lib32;$(LibraryPath)</LibraryPath>
   </PropertyGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
     <ClCompile>
+#include "pch.hpp"
 #include <string>
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>

pevLib/clsidCompressor.cpp

 //          http://www.boost.org/LICENSE_1_0.txt)
 //
 // clsidCompressor.cpp -- Implements the clsid compressor/decompressor.
-
+#include "pch.hpp"
 #include <exception>
 #include <vector>
 #include <windows.h>

pevLib/consoleParser.cpp

 // processing pevFind's commandline. Implements the recursive
 // descent parser.
 
+#include "pch.hpp"
 #include <stdexcept>
 #ifndef NDEBUG
 #include <iostream> //These are used to print debugging info to disk.
 //
 // dosdev.cpp -- Implements the "ddev" sub program.
 
+#include "pch.hpp"
 #include <string>
 #include <stdexcept>
 #include <iterator>
 //
 // exec.cpp -- Implements the exec subprogram
 
+#include "pch.hpp"
 #include <stdexcept>
 #include <string>
 #include <windows.h>
 //
 // fileData.cpp -- Implements functions for the fileData record type.
 
+#include "pch.hpp"
 #include <sstream>
 #include <iomanip>
 #include <iostream>
 	DWORD c = oldChk;
 	while (len)
 	{
-		int l = min(len, 0x4000);
+		int l = std::min<int>(len, 0x4000);
 		len -= l;
 		for (int j=0; j<l; ++j)
 		{

pevLib/filesScanner.cpp

 //
 // filesScanner.cpp -- Implements the scanner used if one specifies
 // the  --files directive.
+#include "pch.hpp"
 #include <list>
 #include <vector>
 #include <string>
+#include "pch.hpp"
 #include "fpattern.h"
 
 /******************************************************************************

pevLib/globalOptions.cpp

 //
 // globalOptions::cpp -- Gives the global data structure an
 // implementation file to use.
+#include "pch.hpp"
 #include <vector>
 #include <string>
 #include <limits>
 //
 // moveEx.cpp -- Implements the move on reboot sub program.
 
+#include "pch.hpp"
 #include <stdexcept>
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>

pevLib/linkResolve.cpp

 //
 // linkResolve.h -- Implements the linkResolve subprogram and library function.
 
+#include "pch.hpp"
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #include <Objbase.h>
 //          http://www.boost.org/LICENSE_1_0.txt)
 //
 // logger.cpp -- Implements character conversions and file handling.
+#include "pch.hpp"
 #include <string>
 #include <windows.h>
 #include "logger.h"

pevLib/mainScanner.cpp

 // mainScanner.cpp -- Implements the scanner by default.
 // Recurses into subdirectories.
 
+#include "pch.hpp"
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #include "logger.h"
 //
 // moveEx.cpp -- Implements the move on reboot sub program.
 
+#include "pch.hpp"
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #include "moveex.h"
+#include "pch.hpp"
 #include <string>
 #include <boost/algorithm/string/replace.hpp>
 #include "opstruct.h"
+#include "pch.hpp"
+#include <memory>
+#include <vector>
+#include <string>
+#include <sstream>
+#include <iomanip>
+#include <iostream>
+#include <algorithm>
+#define NOMINMAX
+#include <windows.h>
+#include <shlwapi.h>
+#include <Wincrypt.h>
+#include <Mscat.h>
+#include <softpub.h>
+#include <Sfc.h>
+
+#include <boost/lexical_cast.hpp>
+#include <boost/algorithm/string.hpp>
+#include <boost/xpressive/xpressive_static.hpp>
+#include <boost/xpressive/xpressive_dynamic.hpp>

pevLib/pevLib.vcxproj

       <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
       <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
       <RuntimeTypeInfo>false</RuntimeTypeInfo>
-      <PrecompiledHeader>
-      </PrecompiledHeader>
+      <PrecompiledHeader>Use</PrecompiledHeader>
       <WarningLevel>Level3</WarningLevel>
       <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
+      <PrecompiledHeaderFile>pch.hpp</PrecompiledHeaderFile>
     </ClCompile>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
     <ClCompile Include="mainScanner.cpp" />
     <ClCompile Include="moveex.cpp" />
     <ClCompile Include="opstruct.cpp" />
+    <ClCompile Include="pch.cpp">
+      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
+      <PrecompiledHeaderFile Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">pch.hpp</PrecompiledHeaderFile>
+    </ClCompile>
     <ClCompile Include="processScanner.cpp" />
     <ClCompile Include="procListers.cpp" />
     <ClCompile Include="procManager.cpp" />
     <ClInclude Include="mainScanner.h" />
     <ClInclude Include="moveex.h" />
     <ClInclude Include="OPSTRUCT.h" />
+    <ClInclude Include="pch.hpp" />
     <ClInclude Include="processManager.h" />
     <ClInclude Include="processScanner.h" />
     <ClInclude Include="procListers.h" />

pevLib/pevLib.vcxproj.filters

       <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
       <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
     </Filter>
+    <Filter Include="Header Files\Precompiled">
+      <UniqueIdentifier>{acfae925-f9d1-4de3-87af-065a49f63d99}</UniqueIdentifier>
+    </Filter>
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="clsidCompressor.cpp">
     <ClCompile Include="zipIt.cpp">
       <Filter>Source Files</Filter>
     </ClCompile>
+    <ClCompile Include="pch.cpp">
+      <Filter>Header Files\Precompiled</Filter>
+    </ClCompile>
   </ItemGroup>
   <ItemGroup>
     <ClInclude Include="clsidCompressor.h">
     <ClInclude Include="wait.hpp">
       <Filter>Header Files</Filter>
     </ClInclude>
+    <ClInclude Include="pch.hpp">
+      <Filter>Header Files\Precompiled</Filter>
+    </ClInclude>
   </ItemGroup>
 </Project>

pevLib/procListers.cpp

 //
 // Provides plist and clist subprograms
 
+#include "pch.hpp"
 #include <vector>
 #include <stdexcept>
 #include <iostream>

pevLib/procManager.cpp

 //
 // Provides classes for managing processes
 
+#include "pch.hpp"
 #include <string>
 #include <vector>
 #define WIN32_LEAN_AND_MEAN

pevLib/processScanner.cpp

 //          http://www.boost.org/LICENSE_1_0.txt)
 //
 // processScanner.cpp -- Implements process kill mode
+#include "pch.hpp"
 #include <vector>
 #include <list>
 #include "processManager.h"
 //          http://www.boost.org/LICENSE_1_0.txt)
 //
 // regImport.cpp -- Implements the "rimport" subprogram.
+#include "pch.hpp"
 #include <vector>
 #include <iostream>
 #include <boost/algorithm/string/predicate.hpp>
 //
 // regex.cpp -- Implements some functions for pevFind's
 //               vfind regex node.
+#include "pch.hpp"
 #include <string>
 #include <algorithm>
 #include <boost/algorithm/string/predicate.hpp>
-#include <string>
+#include "pch.hpp"
+#include <string>
 #include <windows.h>
 #include "registry.h"
 

pevLib/regscriptCompiler.cpp

+#include "pch.hpp"
 #include <cassert>
 #include <vector>
 #include <string>
 //
 // rexport.cpp - Implements the registry export sub program.
 
+#include "pch.hpp"
 #include <iostream>
 #include <stdexcept>
 #define WIN32_LEAN_AND_MEAN

pevLib/serviceControl.cpp

 //
 // sc.cpp -- Implements the sc sub program
 
+#include "pch.hpp"
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #include <boost/algorithm/string/predicate.hpp>

pevLib/timeoutThread.cpp

 //          http://www.boost.org/LICENSE_1_0.txt)
 //
 // timeoutThread.cpp -- Implements the timeout thread function.
+
+#include "pch.hpp"
 #include <cstdlib>
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 //          http://www.boost.org/LICENSE_1_0.txt)
 //
 // times.cpp -- Implements the time subprogram.
+#include "pch.hpp"
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #include <boost/algorithm/string/predicate.hpp>
 //
 // uZip.cpp -- Implements the uZip subprogram.
 
+#include "pch.hpp"
 #include <string>
 #include "unzip.h"
 #include "logger.h"
+#include "pch.hpp"
 #include <string>
 #include <tchar.h>
 #include "unzip.h"
 //
 // utility.cpp -- Provides a bunch of utility functions and classes.
 
+#include "pch.hpp"
 #include <iomanip>
 #include <string>
 #include <vector>
 //
 // vFind.cpp -- Implements the main entry point for pevFind.
 
+#include "pch.hpp"
 #include <iostream>
 #include <boost/lexical_cast.hpp>
 #include <boost/algorithm/string/predicate.hpp>

pevLib/volumeEnumerate.cpp

 // volumeEnumerate.cpp -- Implements the volume enumeration
 // sub program.
 
+#include "pch.hpp"
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 #include "volumeEnumerate.h"
+#include "pch.hpp"
 #include "zip.h"
 #include <tchar.h>
 // THIS FILE is almost entirely based upon code by info-zip.
 //          http://www.boost.org/LICENSE_1_0.txt)
 //
 // zipIt.cpp -- Zips results of scan
+#include "pch.hpp"
 #include <string>
 #include <vector>
 #include <list>