Today I was in a discussion involving that libraries dont have an entry point.Generally the executable loads the libraries and the entry point is the main in the executable itself.
Are there execeptions wherein the libraries themselves can have an entry point ??
Update:
@sgr91 explained that DllMain is the entry point in Windows! What about linux ? Or is it just a feature of Windows ?
DllMain
is the entry point of the DLL. If you want to do some initial work on DLL load, you can create the function, else you can skip it. – DenudateDLL_PROCESS_ATTACH
/DLL_PROCESS_DETACH
forDllMain
. – Bennettbenni