this artical https://www.unknowncheats.me/forum/unity/603179-hacking-mono-games.html#post3963385 that what i am trying to do, but I faced the following problem the GetModuleHandle return null always and the process that have model it is runing and model loaded so what is the problem ? ?
HMODULE hMono = GetModuleHandle((LPCWSTR)"mono-2.0-bdwgc.dll");
if (hMono == NULL) { printf("Error"); };
and i can get the hModule using OpenProcess Then Use EnumProcessModulesEx to get the handel of the module and i get hModule but i have other question the baseModule is have to be the same of handelModule becouse when i get the handelModule of mono-2.0-bdwgc.dll using EnumProcessModulesEx the handelModule of the dll was the the same of the baseModule ??!
and i try to use GetProcAddress and give it the handelModule and the process name it give me null too, so any help;
so i was want to deals with dll modules in other process so i can not do that directly, i just can deals with dll modules in my current process , so you can use pipeconnection with it you can create communication between two process it like server and client but you have to handel that in you process and the other process that you want to deals with it's dll module so you will make dll moduel for server side of connection and you have two inject it in the other process and the client side of connection that will be in current process that will contact with the server and do what you want with the module in the other process then send it to the client