Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


GetModuleHandle of mono dll

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Ahmed Jihad
How do I cheat?
Reputation: 0

Joined: 06 Jan 2024
Posts: 9

PostPosted: Fri Jan 12, 2024 5:42 am    Post subject: GetModuleHandle of mono dll Reply with quote

the GetModuleHandle return null always and the process that have model it is runing and model loaded so what is the problem ? ?
Code:
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 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;
Back to top
View user's profile Send private message Send e-mail
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4719

PostPosted: Fri Jan 12, 2024 11:30 am    Post subject: Reply with quote

Is that being called from another process?
GetModuleHandle:
Quote:
Retrieves a module handle for the specified module. The module must have been loaded by the calling process.
EnumProcessModulesEx:
Quote:
The EnumProcessModulesEx function is primarily designed for use by debuggers and similar applications that must extract module information from another process.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites