Back to index

lightning-sunbird  0.9+nobinonly
control_kicker.h
Go to the documentation of this file.
00001 
00002 #ifde
00003 
00004 // Used to determine whether the DLL can be unloaded by OLE
00005 
00006 STDAPI DllCanUnloadNow(void)
00007 {
00008        return (_Module.GetLockCount()==0) ? S_OK : S_FALSE;
00009 }
00010 
00012 // Returns a class factory to create an object of the requested type
00013 
00014 STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
00015 {
00016        return _Module.GetClassObject(rclsid, riid, ppv);
00017 }
00018 
00020 // DllRegisterServer - Adds entries to the system registry
00021 
00022 STDAPI DllRegisterServer(void)
00023 {
00024        // registers object, typelib and all interfaces in typelib
00025        return _Module.RegisterServer(TRUE);
00026 }
00027 
00029 // DllUnregisterServer - Removes entries from the system registry
00030 
00031 STDAPI DllUnregisterServer(void)
00032 {
00033        _Module.UnregisterServer();
00034        return S_OK;
00035 }