DLL -- What is the exe?

Windows specific forum
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

DLL -- What is the exe?

Post by jassing »

In a dll; is there a way to tell what the exe is that loaded it?
Thorium
Addict
Addict
Posts: 1308
Joined: Sat Aug 15, 2009 6:59 pm

Re: DLL -- What is the exe?

Post by Thorium »

GetModulFileName API.
Set hModul to 0 to get the .exe name.
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Re: DLL -- What is the exe?

Post by jassing »

Nice! Thank you.
Post Reply