:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / psapi / misc / dllmain.c
1 /* $Id$
2 */
3 /*
4  * COPYRIGHT:   None
5  * LICENSE:     Public domain
6  * PROJECT:     ReactOS system libraries
7  * FILE:        reactos/lib/psapi/misc/malloc.c
8  * PURPOSE:     PSAPI.DLL main procedure
9  * PROGRAMMER:  KJK::Hyperion <noog@libero.it>
10  * UPDATE HISTORY:
11  *              28/11/2001: Created (Emanuele Aliberti <eal@users.sf.net>)
12  *              30/08/2002: Minimal tweak (KJK::Hyperion <noog@libero.it>)
13  */
14 #include <windows.h>
15 #include <ntdll/ldr.h>
16
17 BOOLEAN STDCALL DllMain
18 (
19  PVOID hinstDll,
20  ULONG dwReason,
21  PVOID reserved
22 )
23 {
24  if(dwReason == DLL_PROCESS_ATTACH)
25   /* don't bother calling the entry point on thread startup - PSAPI.DLL doesn't
26      store any per-thread data */
27   LdrDisableThreadCalloutsForDll(hinstDll);
28
29  return (TRUE);
30 }
31
32 /* EOF */