1 /* 2 * COPYRIGHT: See COPYING in the top level directory 3 * PROJECT: ReactOS Winsock 2 SPI 4 * FILE: lib/mswsock/lib/init.c 5 * PURPOSE: DLL Initialization 6 */ 7 8 #include "precomp.h" 9 10 /* FUNCTIONS *****************************************************************/ 11 12 BOOLEAN 13 WINAPI 14 DllMain(HINSTANCE Instance, 15 DWORD Reason, 16 LPVOID Reserved) 17 { 18 /* Check if we're being attached */ 19 if (Reason == DLL_PROCESS_ATTACH) 20 { 21 /* Let's disable TLC calls as an optimization */ 22 DisableThreadLibraryCalls(Instance); 23 } 24 25 /* We're done */ 26 return TRUE; 27 } 28