#include "precomp.h"
-WINE_DEFAULT_DEBUG_CHANNEL(browseui);
-
class CBrowseUIModule : public CComModule
{
public:
OBJECT_ENTRY(CLSID_RebarBandSite, CBandSite)
OBJECT_ENTRY(CLSID_BandSiteMenu, CBandSiteMenu)
OBJECT_ENTRY(CLSID_BrandBand, CBrandBand)
+OBJECT_ENTRY(CLSID_CCommonBrowser, CCommonBrowser)
+OBJECT_ENTRY(CLSID_GlobalFolderSettings, CGlobalFolderSettings)
OBJECT_ENTRY(CLSID_InternetToolbar, CInternetToolbar)
+OBJECT_ENTRY(CLSID_CRegTreeOptions, CRegTreeOptions)
END_OBJECT_MAP()
-CBrowseUIModule gModule;
-CAtlWinModule gWinModule;
+CBrowseUIModule gModule;
+CAtlWinModule gWinModule;
void *operator new (size_t, void *buf)
{
- return buf;
+ return buf;
}
/*************************************************************************
STDAPI_(BOOL) DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID fImpLoad)
{
TRACE("%p 0x%x %p\n", hInstance, dwReason, fImpLoad);
-
- /* HACK - the global constructors don't run, so I placement new them here */
- new (&gModule) CBrowseUIModule;
- new (&gWinModule) CAtlWinModule;
- new (&_AtlBaseModule) CAtlBaseModule;
- new (&_AtlComModule) CAtlComModule;
-
- if (dwReason == DLL_PROCESS_ATTACH)
- {
- gModule.Init(ObjectMap, hInstance, NULL);
- DisableThreadLibraryCalls (hInstance);
- }
- else if (dwReason == DLL_PROCESS_DETACH)
- {
- gModule.Term();
- }
- return TRUE;
+
+ if (dwReason == DLL_PROCESS_ATTACH)
+ {
+ /* HACK - the global constructors don't run, so I placement new them here */
+ new (&gModule) CBrowseUIModule;
+ new (&gWinModule) CAtlWinModule;
+ new (&_AtlBaseModule) CAtlBaseModule;
+ new (&_AtlComModule) CAtlComModule;
+
+ gModule.Init(ObjectMap, hInstance, NULL);
+ DisableThreadLibraryCalls (hInstance);
+ }
+ else if (dwReason == DLL_PROCESS_DETACH)
+ {
+ gModule.Term();
+ }
+ return TRUE;
}
/***********************************************************************
*/
STDAPI DllCanUnloadNow()
{
- return gModule.DllCanUnloadNow();
+ return gModule.DllCanUnloadNow();
}
/***********************************************************************
*/
STDAPI DllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID *ppv)
{
- return gModule.DllGetClassObject(rclsid, riid, ppv);
+ return gModule.DllGetClassObject(rclsid, riid, ppv);
}
/***********************************************************************
*/
STDAPI DllRegisterServer()
{
- return gModule.DllRegisterServer(FALSE);
+ return gModule.DllRegisterServer(FALSE);
}
/***********************************************************************
*/
STDAPI DllUnregisterServer()
{
- return gModule.DllUnregisterServer(FALSE);
+ return gModule.DllUnregisterServer(FALSE);
}
/***********************************************************************
* DllGetVersion (BROWSEUI.@)
*/
-HRESULT WINAPI DllGetVersion(DLLVERSIONINFO *info)
+STDAPI DllGetVersion(DLLVERSIONINFO *info)
{
if (info->cbSize != sizeof(DLLVERSIONINFO)) FIXME("support DLLVERSIONINFO2\n");