From 080f57d623e5329341437634ac8a64b21a3d786a Mon Sep 17 00:00:00 2001 From: xplanthris Date: Sun, 24 Dec 2023 13:27:05 +0300 Subject: [PATCH] Remove precompiled headers and frameworks as we don't need them at all --- Payload/Payload.vcxproj | 12 +----------- Payload/Payload.vcxproj.filters | 11 ----------- Payload/dllmain.cpp | 5 +++-- Payload/framework.h | 5 ----- Payload/pch.cpp | 5 ----- Payload/pch.h | 13 ------------- Unhide/Unhide.vcxproj | 12 +----------- Unhide/Unhide.vcxproj.filters | 11 ----------- Unhide/dllmain.cpp | 5 +++-- Unhide/framework.h | 5 ----- Unhide/pch.cpp | 5 ----- Unhide/pch.h | 13 ------------- 12 files changed, 8 insertions(+), 94 deletions(-) delete mode 100644 Payload/framework.h delete mode 100644 Payload/pch.cpp delete mode 100644 Payload/pch.h delete mode 100644 Unhide/framework.h delete mode 100644 Unhide/pch.cpp delete mode 100644 Unhide/pch.h diff --git a/Payload/Payload.vcxproj b/Payload/Payload.vcxproj index ad5e913..eebbd71 100644 --- a/Payload/Payload.vcxproj +++ b/Payload/Payload.vcxproj @@ -134,7 +134,7 @@ true _DEBUG;PAYLOAD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true - Use + NotUsing pch.h @@ -163,18 +163,8 @@ false - - - - - - Create - Create - Create - Create - diff --git a/Payload/Payload.vcxproj.filters b/Payload/Payload.vcxproj.filters index f99bb48..4dd0cd7 100644 --- a/Payload/Payload.vcxproj.filters +++ b/Payload/Payload.vcxproj.filters @@ -14,20 +14,9 @@ rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - Header Files - - - Header Files - - Source Files - - Source Files - \ No newline at end of file diff --git a/Payload/dllmain.cpp b/Payload/dllmain.cpp index 6ff01be..f1b43ee 100644 --- a/Payload/dllmain.cpp +++ b/Payload/dllmain.cpp @@ -1,5 +1,6 @@ -// dllmain.cpp : Defines the entry point for the DLL application. -#include "pch.h" +#define WIN32_LEAN_AND_MEAN + +#include "Windows.h" void setDAForWindows() { HWND windowHandle = NULL; diff --git a/Payload/framework.h b/Payload/framework.h deleted file mode 100644 index a9744f8..0000000 --- a/Payload/framework.h +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers -// Windows Header Files -#include diff --git a/Payload/pch.cpp b/Payload/pch.cpp deleted file mode 100644 index 91c22df..0000000 --- a/Payload/pch.cpp +++ /dev/null @@ -1,5 +0,0 @@ -// pch.cpp: source file corresponding to the pre-compiled header - -#include "pch.h" - -// When you are using pre-compiled headers, this source file is necessary for compilation to succeed. diff --git a/Payload/pch.h b/Payload/pch.h deleted file mode 100644 index 04ff4c2..0000000 --- a/Payload/pch.h +++ /dev/null @@ -1,13 +0,0 @@ -// pch.h: This is a precompiled header file. -// Files listed below are compiled only once, improving build performance for future builds. -// This also affects IntelliSense performance, including code completion and many code browsing features. -// However, files listed here are ALL re-compiled if any one of them is updated between builds. -// Do not add files here that you will be updating frequently as this negates the performance advantage. - -#ifndef PCH_H -#define PCH_H - -// add headers that you want to pre-compile here -#include "framework.h" - -#endif //PCH_H diff --git a/Unhide/Unhide.vcxproj b/Unhide/Unhide.vcxproj index f4c3e9a..075a2ff 100644 --- a/Unhide/Unhide.vcxproj +++ b/Unhide/Unhide.vcxproj @@ -135,7 +135,7 @@ true _DEBUG;UNHIDE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true - Use + NotUsing pch.h stdcpp17 @@ -166,18 +166,8 @@ false - - - - - - Create - Create - Create - Create - diff --git a/Unhide/Unhide.vcxproj.filters b/Unhide/Unhide.vcxproj.filters index f99bb48..4dd0cd7 100644 --- a/Unhide/Unhide.vcxproj.filters +++ b/Unhide/Unhide.vcxproj.filters @@ -14,20 +14,9 @@ rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - Header Files - - - Header Files - - Source Files - - Source Files - \ No newline at end of file diff --git a/Unhide/dllmain.cpp b/Unhide/dllmain.cpp index 41c91b7..5f262d3 100644 --- a/Unhide/dllmain.cpp +++ b/Unhide/dllmain.cpp @@ -1,5 +1,6 @@ -// dllmain.cpp : Defines the entry point for the DLL application. -#include "pch.h" +#define WIN32_LEAN_AND_MEAN + +#include "Windows.h" void setDAForWindows() { HWND windowHandle = NULL; diff --git a/Unhide/framework.h b/Unhide/framework.h deleted file mode 100644 index a9744f8..0000000 --- a/Unhide/framework.h +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers -// Windows Header Files -#include diff --git a/Unhide/pch.cpp b/Unhide/pch.cpp deleted file mode 100644 index 91c22df..0000000 --- a/Unhide/pch.cpp +++ /dev/null @@ -1,5 +0,0 @@ -// pch.cpp: source file corresponding to the pre-compiled header - -#include "pch.h" - -// When you are using pre-compiled headers, this source file is necessary for compilation to succeed. diff --git a/Unhide/pch.h b/Unhide/pch.h deleted file mode 100644 index 04ff4c2..0000000 --- a/Unhide/pch.h +++ /dev/null @@ -1,13 +0,0 @@ -// pch.h: This is a precompiled header file. -// Files listed below are compiled only once, improving build performance for future builds. -// This also affects IntelliSense performance, including code completion and many code browsing features. -// However, files listed here are ALL re-compiled if any one of them is updated between builds. -// Do not add files here that you will be updating frequently as this negates the performance advantage. - -#ifndef PCH_H -#define PCH_H - -// add headers that you want to pre-compile here -#include "framework.h" - -#endif //PCH_H