Originally Posted by
R3DDOT
I'm assuming from what you said that "client.dll" is a module that is loaded by hl2.exe. Depends if you wanna use external / internal procedures:
External:
- You need to include <tlhelp32.h> in order to use Tool Help Library;
- Get your process's ID by taking a snapshot of all running processes and comparing the name of that process entry to "hl2.exe";
- Take a snapshot of that process's modules and and loop through the module entries.
Internal:
- Use GetModuleHandle to retrieve the handle to the module, which is equal to the module base.