4 * Copyright 2009 Andrew Hill <ash77 at domain reactos.org>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 WINE_DEFAULT_DEBUG_CHANNEL(browseui
);
25 class CBrowseUIModule
: public CComModule
31 BEGIN_OBJECT_MAP(ObjectMap
)
32 OBJECT_ENTRY(CLSID_ACLMulti
, CACLMulti
)
33 OBJECT_ENTRY(CLSID_SH_AddressBand
, CAddressBand
)
34 OBJECT_ENTRY(CLSID_AddressEditBox
, CAddressEditBox
)
35 OBJECT_ENTRY(CLSID_BandProxy
, CBandProxy
)
36 OBJECT_ENTRY(CLSID_RebarBandSite
, CBandSite
)
37 OBJECT_ENTRY(CLSID_BandSiteMenu
, CBandSiteMenu
)
38 OBJECT_ENTRY(CLSID_BrandBand
, CBrandBand
)
39 OBJECT_ENTRY(CLSID_InternetToolbar
, CInternetToolbar
)
42 CBrowseUIModule gModule
;
43 CAtlWinModule gWinModule
;
45 void *operator new (size_t, void *buf
)
50 /*************************************************************************
53 STDAPI_(BOOL
) DllMain(HINSTANCE hInstance
, DWORD dwReason
, LPVOID fImpLoad
)
55 TRACE("%p 0x%x %p\n", hInstance
, dwReason
, fImpLoad
);
57 /* HACK - the global constructors don't run, so I placement new them here */
58 new (&gModule
) CBrowseUIModule
;
59 new (&gWinModule
) CAtlWinModule
;
60 new (&_AtlBaseModule
) CAtlBaseModule
;
61 new (&_AtlComModule
) CAtlComModule
;
63 if (dwReason
== DLL_PROCESS_ATTACH
)
65 gModule
.Init(ObjectMap
, hInstance
, NULL
);
66 DisableThreadLibraryCalls (hInstance
);
68 else if (dwReason
== DLL_PROCESS_DETACH
)
75 /***********************************************************************
76 * DllCanUnloadNow (BROWSEUI.@)
78 STDAPI
DllCanUnloadNow()
80 return gModule
.DllCanUnloadNow();
83 /***********************************************************************
84 * DllGetClassObject (BROWSEUI.@)
86 STDAPI
DllGetClassObject(REFCLSID rclsid
, REFIID riid
, LPVOID
*ppv
)
88 return gModule
.DllGetClassObject(rclsid
, riid
, ppv
);
91 /***********************************************************************
92 * DllRegisterServer (BROWSEUI.@)
94 STDAPI
DllRegisterServer()
96 return gModule
.DllRegisterServer(FALSE
);
99 /***********************************************************************
100 * DllUnregisterServer (BROWSEUI.@)
102 STDAPI
DllUnregisterServer()
104 return gModule
.DllUnregisterServer(FALSE
);
107 /***********************************************************************
108 * DllGetVersion (BROWSEUI.@)
110 HRESULT WINAPI
DllGetVersion(DLLVERSIONINFO
*info
)
112 if (info
->cbSize
!= sizeof(DLLVERSIONINFO
)) FIXME("support DLLVERSIONINFO2\n");
114 /* this is what IE6 on Windows 98 reports */
115 info
->dwMajorVersion
= 6;
116 info
->dwMinorVersion
= 0;
117 info
->dwBuildNumber
= 2600;
118 info
->dwPlatformID
= DLLVER_PLATFORM_WINDOWS
;