Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Internal Mechanism of Dynamic Loading DLL's in C++ in OS perpective?

Tags:

windows

dll

I am not able to get much information about dynamic loading of DLL files from C++ . I know it does use some functions like LoadLibrary and FreeLibrary with GetProcAddress . But how it works actually internally in the OS perspective like where it actually looks for the DLL file and where it loads like Memory ? can someone help me on that with some diagrams ?

like image 438
ukanth Avatar asked Nov 25 '25 02:11

ukanth


1 Answers

DLL search order is described on the MSDN, and there's an article on DLL loading, and two-part article describing PE format (part two here) (they're slightly old, but I don't think they're outdated). Look through MSDN Magazine and MSJ archives and you'll probably find more.

like image 85
Cat Plus Plus Avatar answered Nov 27 '25 18:11

Cat Plus Plus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!