summaryrefslogtreecommitdiffstats
path: root/private/crt32/startup/dllmain.c
blob: 8fd0ea70606bebf543d51b3d540c6085380b0c8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/***
*dllmain.c - Dummy DllMain for user DLLs that have no notification handler
*
*	Copyright (c) 1993, Microsoft Corporation. All rights reserved.
*
*Purpose:
*	This object goes into LIBC.LIB and LIBCMT.LIB and MSVCRT.LIB for use
*	when linking a DLL with one of the three models of C run-time library.
*	If the user does not provide a DllMain notification routine, this
*	dummy handler will be linked in.  It always returns TRUE (success).
*
*Revision History:
*	04-14-93  SKS	Initial version
*
******************************************************************************/

#include <oscalls.h>

/***
*DllMain - dummy version DLLs linked with all 3 C Run-Time Library models
*
*Purpose:
*	The routine DllMain is always called by _DllMainCrtStartup.  If
*	the user does not provide a routine named DllMain, this one will
*	get linked in so that _DllMainCRTStartup has something to call.
*
*Entry:
*
*Exit:
*
*Exceptions:
*
******************************************************************************/

BOOL WINAPI DllMain(
	HANDLE	hDllHandle,
	DWORD	dwReason,
	LPVOID	lpreserved
	)
{
	return TRUE ;
}