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 class CBrowseUIModule
: public CComModule
29 BEGIN_OBJECT_MAP(ObjectMap
)
30 OBJECT_ENTRY(CLSID_AutoComplete
, CAutoComplete
)
31 OBJECT_ENTRY(CLSID_ACLMulti
, CACLMulti
)
32 OBJECT_ENTRY(CLSID_ACListISF
, CACListISF
)
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_CCommonBrowser
, CCommonBrowser
)
40 OBJECT_ENTRY(CLSID_GlobalFolderSettings
, CGlobalFolderSettings
)
41 OBJECT_ENTRY(CLSID_InternetToolbar
, CInternetToolbar
)
42 OBJECT_ENTRY(CLSID_CRegTreeOptions
, CRegTreeOptions
)
43 OBJECT_ENTRY(CLSID_ExplorerBand
, CExplorerBand
)
44 OBJECT_ENTRY(CLSID_ProgressDialog
, CProgressDialog
)
47 CBrowseUIModule gModule
;
48 CAtlWinModule gWinModule
;
50 void *operator new (size_t, void *buf
)
55 /*************************************************************************
58 STDAPI_(BOOL
) DllMain(HINSTANCE hInstance
, DWORD dwReason
, LPVOID fImpLoad
)
60 TRACE("%p 0x%x %p\n", hInstance
, dwReason
, fImpLoad
);
62 if (dwReason
== DLL_PROCESS_ATTACH
)
64 gModule
.Init(ObjectMap
, hInstance
, NULL
);
65 DisableThreadLibraryCalls (hInstance
);
67 else if (dwReason
== DLL_PROCESS_DETACH
)
74 /***********************************************************************
75 * DllCanUnloadNow (BROWSEUI.@)
77 STDAPI
DllCanUnloadNow()
79 return gModule
.DllCanUnloadNow();
82 /***********************************************************************
83 * DllGetClassObject (BROWSEUI.@)
85 STDAPI
DllGetClassObject(REFCLSID rclsid
, REFIID riid
, LPVOID
*ppv
)
87 return gModule
.DllGetClassObject(rclsid
, riid
, ppv
);
90 /***********************************************************************
91 * DllRegisterServer (BROWSEUI.@)
93 STDAPI
DllRegisterServer()
95 return gModule
.DllRegisterServer(FALSE
);
98 /***********************************************************************
99 * DllUnregisterServer (BROWSEUI.@)
101 STDAPI
DllUnregisterServer()
103 return gModule
.DllUnregisterServer(FALSE
);
106 /***********************************************************************
107 * DllGetVersion (BROWSEUI.@)
109 STDAPI
DllGetVersion(DLLVERSIONINFO
*info
)
111 if (info
->cbSize
!= sizeof(DLLVERSIONINFO
)) FIXME("support DLLVERSIONINFO2\n");
113 /* this is what IE6 on Windows 98 reports */
114 info
->dwMajorVersion
= 6;
115 info
->dwMinorVersion
= 0;
116 info
->dwBuildNumber
= 2600;
117 info
->dwPlatformID
= DLLVER_PLATFORM_WINDOWS
;