I'm trying to get the name of a module loaded in another process with GetModuleFileNameA
.
I've loaded a symbol using dbgHelp and got its module base address but 2 weird thing happen:
1. Sometimes GetModuleFileNameA
returns system error codes 5: Access denied.
2. It returns the wrong module name. for a function I know to be in module A, I get the name of module B... :/
Can somebody help me?
thanks:)