1 /*
2  * dllEntryPoint.c --
3  *
4  *	This file implements the Dll entry point as needed by Windows.
5  */
6 
7 #define WIN32_LEAN_AND_MEAN
8 #include <windows.h>
9 #if defined(_MSC_VER)
10     /* Only do this when MSVC++ is compiling us. */
11 #   define DllEntryPoint DllMain
12 #   if defined(USE_TCL_STUBS) && (!defined(_MT) || !defined(_DLL) || defined(_DEBUG))
13 	/*
14 	 * This fixes a bug with how the Stubs library was compiled.
15 	 * The requirement for msvcrt.lib from tclstubXX.lib should
16 	 * be removed.
17 	 */
18 #	pragma comment(linker, "-nodefaultlib:msvcrt.lib")
19 #   endif
20 #endif
21 
22 /*
23  *----------------------------------------------------------------------
24  *
25  * DllEntryPoint --
26  *
27  *	This wrapper function is used by Windows to invoke the
28  *	initialization code for the DLL.  If we are compiling
29  *	with Visual C++, this routine will be renamed to DllMain.
30  *
31  * Results:
32  *	Returns TRUE;
33  *
34  * Side effects:
35  *	None.
36  *
37  *----------------------------------------------------------------------
38  */
39 
40 BOOL APIENTRY
DllEntryPoint(hInst,reason,reserved)41 DllEntryPoint(hInst, reason, reserved)
42     HINSTANCE hInst;		/* Library instance handle. */
43     DWORD reason;		/* Reason this function is being called. */
44     LPVOID reserved;		/* Not used. */
45 {
46     return TRUE;
47 }
48