Back to index

lightning-sunbird  0.9+nobinonly
Functions
nsDllMain.cpp File Reference
#include <windows.h>
#include "nsToolkit.h"

Go to the source code of this file.

Functions

BOOL APIENTRY DllMain (HINSTANCE hModule, DWORD reason, LPVOID lpReserved)

Function Documentation

BOOL APIENTRY DllMain ( HINSTANCE  hModule,
DWORD  reason,
LPVOID  lpReserved 
)

Definition at line 48 of file nsDllMain.cpp.

{
    switch( reason ) {
        case DLL_PROCESS_ATTACH:
            nsToolkit::Startup(hModule);
            break;

        case DLL_THREAD_ATTACH:
            break;
    
        case DLL_THREAD_DETACH:
            break;
    
        case DLL_PROCESS_DETACH:
            nsToolkit::Shutdown();
            break;

    }

    return TRUE;
}

Here is the call graph for this function: