From 357a4ea6cd84eb6228ddea2b10dd33da00bcec76 Mon Sep 17 00:00:00 2001 From: H3XploR <73852348+H3XploR@users.noreply.github.com> Date: Thu, 21 May 2026 02:19:04 +0200 Subject: [PATCH] first commit --- .gitignore | 55 +++++++++++++ GameAnalyzer.cpp | 42 ++++++++++ GameAnalyzer.slnx | 7 ++ GameAnalyzer.vcxproj | 147 +++++++++++++++++++++++++++++++++++ GameAnalyzer.vcxproj.filters | 22 ++++++ 5 files changed, 273 insertions(+) create mode 100644 .gitignore create mode 100644 GameAnalyzer.cpp create mode 100644 GameAnalyzer.slnx create mode 100644 GameAnalyzer.vcxproj create mode 100644 GameAnalyzer.vcxproj.filters diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e3a47aa --- /dev/null +++ b/.gitignore @@ -0,0 +1,55 @@ +# Visual Studio +.vs/ +*.user +*.suo +*.userosscache +*.sln.docstates + +# Build outputs +Debug/ +Release/ +x64/ +x86/ +ARM/ +ARM64/ +bin/ +obj/ +out/ +build/ + +# C/C++ compiled files +*.obj +*.o +*.lib +*.a +*.dll +*.exe +*.pdb +*.ilk +*.idb +*.ipdb +*.iobj +*.exp +*.lastbuildstate +*.log +*.tlog +*.pch +*.res + +# Visual Studio generated folders +*.VC.db +*.VC.VC.opendb +ipch/ + +# NuGet +packages/ +*.nupkg +project.lock.json +project.assets.json + +# OS/editor files +.DS_Store +Thumbs.db +*.swp +*.tmp +*.bak diff --git a/GameAnalyzer.cpp b/GameAnalyzer.cpp new file mode 100644 index 0000000..eb43fa7 --- /dev/null +++ b/GameAnalyzer.cpp @@ -0,0 +1,42 @@ +// GameAnalyzer.cpp : Ce fichier contient la fonction 'main'. L'exécution du programme commence et se termine à cet endroit. +// +#include +#include +#include + +const bool affiche_process_handle = 0; +int main() +{ + std::cout << "Hello World!\n"; + DWORD lpidProcess[99999], lpcbNeeded; + BOOL ret_enum_process = EnumProcesses(lpidProcess, + sizeof(lpidProcess), + &lpcbNeeded); + + for (unsigned int i = 0; i < 99999; i++) { + HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, TRUE, lpidProcess[i]); + if (hProcess != NULL) { + std::cout << i << ": " << "pid: " << lpidProcess[i]; + if (affiche_process_handle == 1) + std::cout << "-->" << hProcess; + LPSTR lpImageFileName = new char[256]; + DWORD nSize = 256; + DWORD lenght_buffer = GetProcessImageFileNameA(hProcess, lpImageFileName, nSize); + if (lenght_buffer != 0) + std::cout << "--->" << lpImageFileName << std::endl; + CloseHandle(hProcess); + delete[] lpImageFileName; + } + } +} + +// Exécuter le programme : Ctrl+F5 ou menu Déboguer > Exécuter sans débogage +// Déboguer le programme : F5 ou menu Déboguer > Démarrer le débogage + +// Astuces pour bien démarrer : +// 1. Utilisez la fenêtre Explorateur de solutions pour ajouter des fichiers et les gérer. +// 2. Utilisez la fenêtre Team Explorer pour vous connecter au contrôle de code source. +// 3. Utilisez la fenêtre Sortie pour voir la sortie de la génération et d'autres messages. +// 4. Utilisez la fenêtre Liste d'erreurs pour voir les erreurs. +// 5. Accédez à Projet > Ajouter un nouvel élément pour créer des fichiers de code, ou à Projet > Ajouter un élément existant pour ajouter des fichiers de code existants au projet. +// 6. Pour rouvrir ce projet plus tard, accédez à Fichier > Ouvrir > Projet et sélectionnez le fichier .sln. diff --git a/GameAnalyzer.slnx b/GameAnalyzer.slnx new file mode 100644 index 0000000..68578c8 --- /dev/null +++ b/GameAnalyzer.slnx @@ -0,0 +1,7 @@ + + + + + + + diff --git a/GameAnalyzer.vcxproj b/GameAnalyzer.vcxproj new file mode 100644 index 0000000..4c339cc --- /dev/null +++ b/GameAnalyzer.vcxproj @@ -0,0 +1,147 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 18.0 + Win32Proj + {3cdd9e73-df6e-4aa9-9856-e23c13bd2dc6} + GameAnalyzer + 10.0 + + + + Application + true + v145 + Unicode + + + Application + false + v145 + true + Unicode + + + Application + true + v145 + Unicode + + + Application + false + v145 + true + Unicode + + + + + + + + + + + + + + + + + + + + + + Level3 + true + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + stdcpp20 + + + Console + true + + + true + + + + + Level3 + true + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + stdcpp20 + + + Console + true + + + true + + + + + Level3 + true + _DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + stdcpp20 + + + Console + true + + + true + + + + + Level3 + true + true + true + NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + stdcpp20 + + + Console + true + + + true + + + + + + + + + \ No newline at end of file diff --git a/GameAnalyzer.vcxproj.filters b/GameAnalyzer.vcxproj.filters new file mode 100644 index 0000000..9fb38e2 --- /dev/null +++ b/GameAnalyzer.vcxproj.filters @@ -0,0 +1,22 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Fichiers sources + + + \ No newline at end of file