Skip to content

Add a way to specifically target a module. #2

@LiamKarlMitchell

Description

@LiamKarlMitchell
bool signature_scanner::target_module(const char* moduleName) {
HMODULE hModule = GetModuleHandle(moduleName);
if (hModule===NULL) {
  return false; // Module not found?
}

this->BaseAddress = (unsigned long)moduleHandle;
GetModuleInformation(GetCurrentProcess(), moduleHandle, &modinfo, sizeof(MODULEINFO))
this->ModuleSize = modinfo.SizeOfImage;

return true;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions