Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
XPCIDispatchTest.cpp File Reference
#include "stdafx.h"
#include "resource.h"
#include <initguid.h>
#include "XPCIDispatchTest.h"
#include "XPCIDispatchTest_i.c"
#include "nsXPCDispTestMethods.h"
#include "nsXPCDispSimple.h"
#include "nsXPCDispTestNoIDispatch.h"
#include "nsXPCDispTestProperties.h"
#include "nsXPCDispTestArrays.h"
#include "nsXPCDispTestScriptOn.h"
#include "nsXPCDispTestScriptOff.h"
#include "nsXPCDispTestWrappedJS.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 55 of file XPCIDispatchTest.cpp.

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

Definition at line 63 of file XPCIDispatchTest.cpp.

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

Definition at line 40 of file XPCIDispatchTest.cpp.

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

Definition at line 71 of file XPCIDispatchTest.cpp.

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

Definition at line 80 of file XPCIDispatchTest.cpp.

{
    return _Module.UnregisterServer(TRUE);
}

Variable Documentation

CComModule _Module

Definition at line 23 of file XPCIDispatchTest.cpp.