Update contrib.
1 // Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32\euser\epoc\win32\uc_dll.cpp
15 // This file contains the DLL entrypoint
29 struct SDestructorEntry;
30 extern SDestructorEntry* DEListHead;
32 TBool InitCWRuntime();
33 TBool CleanupCWRuntime();
35 #define WIN32_LEAN_AND_MEAN
40 BOOL WINAPI _Win32DllMain(HINSTANCE, DWORD fdwReason, LPVOID)
42 if (fdwReason == DLL_PROCESS_DETACH)
44 DEListHead = NULL; // prevent destruction of static data after process has died
45 return CleanupCWRuntime();
53 // include the static data definitions
56 // include compiler helpers
60 EXPORT_C TInt _E32Dll(TInt aReason)
62 if (aReason==KModuleEntryReasonProcessAttach)
71 if (aReason==KModuleEntryReasonProcessDetach)