Back to index

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

Go to the source code of this file.

Functions

BOOL WINAPI DllMain (HINSTANCE hInstance, DWORD dwReason, LPVOID)
STDAPI DllCanUnloadNow (void)
STDAPI DllGetClassObject (REFCLSID rclsid, REFIID riid, LPVOID *ppv)
STDAPI DllRegisterServer (void)
STDAPI DllUnregisterServer (void)

Variables

CComModule _Module

Function Documentation

STDAPI DllCanUnloadNow ( void  )

Definition at line 86 of file MozillaControl.cpp.

{
    return (_Module.GetLockCount()==0) ? S_OK : S_FALSE;
}
STDAPI DllGetClassObject ( REFCLSID  rclsid,
REFIID  riid,
LPVOID ppv 
)

Definition at line 94 of file MozillaControl.cpp.

{
    return _Module.GetClassObject(rclsid, riid, ppv);
}
BOOL WINAPI DllMain ( HINSTANCE  hInstance,
DWORD  dwReason,
LPVOID   
)

Definition at line 64 of file MozillaControl.cpp.

{
    NG_TRACE_METHOD(DllMain);

    if (dwReason == DLL_PROCESS_ATTACH)
    {
        NG_TRACE(_T("Mozilla ActiveX - DLL_PROCESS_ATTACH\n"));
        _Module.Init(ObjectMap, hInstance);
        DisableThreadLibraryCalls(hInstance);
    }
    else if (dwReason == DLL_PROCESS_DETACH)
    {
        NG_TRACE(_T("Mozilla ActiveX - DLL_PROCESS_DETACH\n"));
        _Module.Term();
    }

    return TRUE;    // ok
}
STDAPI DllRegisterServer ( void  )

Definition at line 102 of file MozillaControl.cpp.

{
    // registers object, typelib and all interfaces in typelib
    return _Module.RegisterServer(TRUE);
}
STDAPI DllUnregisterServer ( void  )

Definition at line 111 of file MozillaControl.cpp.

{
    _Module.UnregisterServer();
    return S_OK;
}

Variable Documentation

CComModule _Module

Definition at line 54 of file MozillaControl.cpp.