Update WaitForModule definition

This commit is contained in:
2025-10-20 09:43:50 +02:00
parent 33914c53b4
commit 7903b04694

View File

@@ -1,5 +1,6 @@
#pragma once #pragma once
#include <windows.h>
#include <psapi.h>
#include <spdlog/spdlog.h> #include <spdlog/spdlog.h>
#define AUTO_ASSEMBLE_TRAMPOLINE(ADDRESS, TRAMPOLINE_LENGTH, INSTRUCTIONS) \ #define AUTO_ASSEMBLE_TRAMPOLINE(ADDRESS, TRAMPOLINE_LENGTH, INSTRUCTIONS) \
@@ -78,7 +79,7 @@ class Memory
*/ */
static PVOID SetupOrClearHardwareBreakPointForAllThreads(uintptr_t targetAddress, PVOID vehHandle, bool enable, PVECTORED_EXCEPTION_HANDLER pVEH = nullptr, int hwIndex = 0); static PVOID SetupOrClearHardwareBreakPointForAllThreads(uintptr_t targetAddress, PVOID vehHandle, bool enable, PVECTORED_EXCEPTION_HANDLER pVEH = nullptr, int hwIndex = 0);
private: private:
static bool WaitForModule(const std::string& module_name, int timeoutMs, int intervalMs); static MODULEINFO WaitForModule(const std::string& module_name, int timeoutMs = 15000, int intervalMs = 500);
struct PatchInfo { struct PatchInfo {
void* address; void* address;
std::vector<BYTE> originalBytes; std::vector<BYTE> originalBytes;