mirror of
https://github.com/reactos/reactos.git
synced 2024-11-02 21:09:15 +00:00
65ce146169
svn path=/branches/ros-csrss/; revision=57561
31 lines
764 B
C
31 lines
764 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS Winsock 2 SPI
|
|
* FILE: lib/mswsock/lib/init.c
|
|
* PURPOSE: DLL Initialization
|
|
*/
|
|
|
|
/* INCLUDES ******************************************************************/
|
|
#include "precomp.h"
|
|
|
|
/* DATA **********************************************************************/
|
|
|
|
/* FUNCTIONS *****************************************************************/
|
|
|
|
BOOLEAN
|
|
WINAPI
|
|
DllMain(HINSTANCE Instance,
|
|
DWORD Reason,
|
|
LPVOID Reserved)
|
|
{
|
|
/* Check if we're being attached */
|
|
if (Reason == DLL_PROCESS_ATTACH)
|
|
{
|
|
/* Let's disable TLC calls as an optimization */
|
|
DisableThreadLibraryCalls(Instance);
|
|
}
|
|
|
|
/* We're done */
|
|
return TRUE;
|
|
}
|