1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #include "mozilla/Assertions.h"
9 #include "mozilla/WindowsVersion.h"
12 // If DllMain gets name mangled, it won't be seen.
16 BOOL APIENTRY
DllMain(HINSTANCE hModule
, DWORD reason
, LPVOID lpReserved
) {
18 case DLL_PROCESS_ATTACH
:
19 nsToolkit::Startup((HINSTANCE
)hModule
);
22 case DLL_THREAD_ATTACH
:
25 case DLL_THREAD_DETACH
:
28 case DLL_PROCESS_DETACH
:
29 nsToolkit::Shutdown();