1 krisbash 1.1 //*****************************************************************************
2 // Copyright (C) 2007 Microsoft Corporation
3 // All rights reserved.
4 //*****************************************************************************
5 #include "../base/Globals.h"
6
7 #ifdef _MSC_VER
8 #include <main.tmh>
9
10 BOOL WINAPI DllMain(_In_ HINSTANCE instance, _In_ DWORD reason, PVOID)
11 {
12 switch( reason )
13 {
14 case DLL_PROCESS_ATTACH:
15 //
16 // Next, we disable all thread attach and detach messages to minimize our working set
17 //
18 if ( !DisableThreadLibraryCalls ( instance ) )
19 {
20 return FALSE;
21 }
22 krisbash 1.1
23 WPP_INIT_TRACING(NITS_TRACING_LOCATION);
24 break;
25 case DLL_PROCESS_DETACH:
26 WPP_CLEANUP();
27 break;
28 }
29
30 return TRUE;
31 }
32 #endif
|