Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
MozActiveX.cpp File Reference
#include "stdafx.h"
#include "resource.h"
#include "initguid.h"

Go to the source code of this file.

Functions

BOOL WINAPI DllMain (HINSTANCE hInstance, DWORD dwReason, LPVOID)

Variables

CComModule _Module

Function Documentation

BOOL WINAPI DllMain ( HINSTANCE  hInstance,
DWORD  dwReason,
LPVOID   
)

Definition at line 55 of file MozActiveX.cpp.

{
    if (dwReason == DLL_PROCESS_ATTACH)
       {
              _Module.Init(ObjectMap, hInstance, &LIBID_ATLLib);
              DisableThreadLibraryCalls(hInstance);
       }
       else if (dwReason == DLL_PROCESS_DETACH)
       {
              _Module.Term();
       }
       return TRUE;    // ok
}

Variable Documentation

CComModule _Module

Definition at line 49 of file MozActiveX.cpp.