Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
pluginhostctrl.cpp File Reference
#include "stdafx.h"
#include "resource.h"
#include <initguid.h>
#include "pluginhostctrl.h"
#include "pluginhostctrl_i.c"
#include "nsPluginHostCtrl.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 79 of file pluginhostctrl.cpp.

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

Definition at line 87 of file pluginhostctrl.cpp.

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

Definition at line 64 of file pluginhostctrl.cpp.

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

Definition at line 95 of file pluginhostctrl.cpp.

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

Definition at line 104 of file pluginhostctrl.cpp.

{
    return _Module.UnregisterServer(TRUE);
}

Variable Documentation

* CComModule _Module

Definition at line 54 of file pluginhostctrl.cpp.