Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
activexml.cpp File Reference
#include "stdafx.h"
#include "resource.h"
#include "activexml_i.c"
#include "XMLDocument.h"
#include "XMLElement.h"
#include "XMLElementCollection.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 46 of file activexml.cpp.

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

Definition at line 54 of file activexml.cpp.

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

Definition at line 31 of file activexml.cpp.

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

Definition at line 62 of file activexml.cpp.

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

Definition at line 71 of file activexml.cpp.

{
    return _Module.UnregisterServer(TRUE);
}

Variable Documentation

CComModule _Module

Definition at line 19 of file activexml.cpp.