diff --git a/AnalyzeProcessHandle.cpp b/AnalyzeProcessHandle.cpp new file mode 100644 index 0000000..5bbf6f7 --- /dev/null +++ b/AnalyzeProcessHandle.cpp @@ -0,0 +1,5 @@ +#include "Header.h" + +bool analyze_process_handle(HANDLE hProcess) { + +} \ No newline at end of file diff --git a/GameAnalyzer.cpp b/GameAnalyzer.cpp index 78bdfe3..c8b086d 100644 --- a/GameAnalyzer.cpp +++ b/GameAnalyzer.cpp @@ -1,13 +1,19 @@ // GameAnalyzer.cpp : Ce fichier contient la fonction 'main'. L'exécution du programme commence et se termine à cet endroit. // -#include -#include -#include -#include -#include -#include -#include -#include + +#include "Header.h" + +// If compiling as 64-bit +#ifdef _M_X64 +#pragma comment (lib, "detoursx64.lib") +#endif // _M_X64 + + +// If compiling as 32-bit +#ifdef _M_IX86 +#pragma comment (lib, "detoursx86.lib") +#endif // _M_IX86 + const bool affiche_process_handle = 1; const bool affiche_pid = 1; @@ -31,6 +37,8 @@ bool ContainsIgnoreCase(const std::string& text, const std::string& search) return ToLower(text).find(ToLower(search)) != std::string::npos; } + + int main(int argc, char** argv) { if (argc > 2) { @@ -69,6 +77,7 @@ int main(int argc, char** argv) if (affiche_process_handle || affiche_pid) output << "--->"; output << imageFileName << std::endl; + bool ret_analyze_process_handle = analyze_process_handle(hProcess); } CloseHandle(hProcess); } diff --git a/GameAnalyzer.vcxproj b/GameAnalyzer.vcxproj index 4c339cc..7a1824d 100644 --- a/GameAnalyzer.vcxproj +++ b/GameAnalyzer.vcxproj @@ -1,4 +1,4 @@ - + @@ -139,8 +139,12 @@ + + + + diff --git a/Header.h b/Header.h new file mode 100644 index 0000000..c686378 --- /dev/null +++ b/Header.h @@ -0,0 +1,22 @@ +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include + +#include +// If compiling as 64-bit +#ifdef _M_X64 +#pragma comment (lib, "detoursx64.lib") +#endif // _M_X64 + +// If compiling as 32-bit +#ifdef _M_IX86 +#pragma comment (lib, "detoursx86.lib") +#endif // _M_IX86 + +bool analyze_process_handle(HANDLE hProcess); \ No newline at end of file