doing things when dll's are loaded...
i want to do some initializing when a dll is loaded.... this is my dll of course, and what i want to do is actually initialize winsock...
this is my code for DllMain:
where exactly should i put it? (keep in mind i also want to denitialize and cleanup winsock when the dll is unloaded...)
BOOL APIENTRY DllMain (HINSTANCE hInst /* Library instance handle. */ ,
DWORD reason /* Reason this function is being called. */ ,
LPVOID reserved /* Not used. */ )
/* Returns TRUE on success, FALSE on failure */
thanks in advance!