2 * Internet Security and Zone Manager
4 * Copyright (c) 2004 Huw D M Davies
5 * Copyright 2004 Jacek Caban
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
31 #include "wine/debug.h"
33 #include "wine/unicode.h"
35 #include "urlmon_main.h"
37 WINE_DEFAULT_DEBUG_CHANNEL(urlmon);
39 /***********************************************************************
40 * InternetSecurityManager implementation
44 const IInternetSecurityManagerVtbl* lpInternetSecurityManagerVtbl;
48 IInternetSecurityMgrSite *mgrsite;
49 IInternetSecurityManager *custom_manager;
52 #define SECMGR_THIS(iface) DEFINE_THIS(SecManagerImpl, InternetSecurityManager, iface)
54 static HRESULT map_url_to_zone(LPCWSTR url, DWORD *zone)
61 static const WCHAR wszZoneMapProtocolKey[] =
62 {'S','o','f','t','w','a','r','e','\\',
63 'M','i','c','r','o','s','o','f','t','\\',
64 'W','i','n','d','o','w','s','\\',
65 'C','u','r','r','e','n','t','V','e','r','s','i','o','n','\\',
66 'I','n','t','e','r','n','e','t',' ','S','e','t','t','i','n','g','s','\\',
67 'Z','o','n','e','M','a','p','\\',
68 'P','r','o','t','o','c','o','l','D','e','f','a','u','l','t','s',0};
69 static const WCHAR wszFile[] = {'f','i','l','e',0};
73 hres = CoInternetParseUrl(url, PARSE_SCHEMA, 0, schema, sizeof(schema)/sizeof(WCHAR), &size, 0);
79 /* file protocol is a special case */
80 if(!strcmpW(schema, wszFile)) {
83 hres = CoInternetParseUrl(url, PARSE_PATH_FROM_URL, 0, path,
84 sizeof(path)/sizeof(WCHAR), &size, 0);
86 if(SUCCEEDED(hres) && strchrW(path, '\\')) {
92 WARN("domains are not yet implemented\n");
94 res = RegOpenKeyW(HKEY_CURRENT_USER, wszZoneMapProtocolKey, &hkey);
95 if(res != ERROR_SUCCESS) {
96 ERR("Could not open key %s\n", debugstr_w(wszZoneMapProtocolKey));
100 size = sizeof(DWORD);
101 res = RegQueryValueExW(hkey, schema, NULL, NULL, (PBYTE)zone, &size);
103 if(res == ERROR_SUCCESS)
106 res = RegOpenKeyW(HKEY_LOCAL_MACHINE, wszZoneMapProtocolKey, &hkey);
107 if(res != ERROR_SUCCESS) {
108 ERR("Could not open key %s\n", debugstr_w(wszZoneMapProtocolKey));
112 size = sizeof(DWORD);
113 res = RegQueryValueExW(hkey, schema, NULL, NULL, (PBYTE)zone, &size);
115 if(res == ERROR_SUCCESS)
122 static HRESULT WINAPI SecManagerImpl_QueryInterface(IInternetSecurityManager* iface,REFIID riid,void** ppvObject)
124 SecManagerImpl *This = SECMGR_THIS(iface);
126 TRACE("(%p)->(%s,%p)\n",This,debugstr_guid(riid),ppvObject);
128 /* Perform a sanity check on the parameters.*/
129 if ( (This==0) || (ppvObject==0) )
132 /* Initialize the return parameter */
135 /* Compare the riid with the interface IDs implemented by this object.*/
136 if (IsEqualIID(&IID_IUnknown, riid) ||
137 IsEqualIID(&IID_IInternetSecurityManager, riid))
140 /* Check that we obtained an interface.*/
142 WARN("not supported interface %s\n", debugstr_guid(riid));
143 return E_NOINTERFACE;
146 /* Query Interface always increases the reference count by one when it is successful */
147 IInternetSecurityManager_AddRef(iface);
152 static ULONG WINAPI SecManagerImpl_AddRef(IInternetSecurityManager* iface)
154 SecManagerImpl *This = SECMGR_THIS(iface);
155 ULONG refCount = InterlockedIncrement(&This->ref);
157 TRACE("(%p) ref=%u\n", This, refCount);
162 static ULONG WINAPI SecManagerImpl_Release(IInternetSecurityManager* iface)
164 SecManagerImpl *This = SECMGR_THIS(iface);
165 ULONG refCount = InterlockedDecrement(&This->ref);
167 TRACE("(%p) ref=%u\n", This, refCount);
169 /* destroy the object if there's no more reference on it */
172 IInternetSecurityMgrSite_Release(This->mgrsite);
173 if(This->custom_manager)
174 IInternetSecurityManager_Release(This->custom_manager);
176 HeapFree(GetProcessHeap(),0,This);
178 URLMON_UnlockModule();
184 static HRESULT WINAPI SecManagerImpl_SetSecuritySite(IInternetSecurityManager *iface,
185 IInternetSecurityMgrSite *pSite)
187 SecManagerImpl *This = SECMGR_THIS(iface);
189 TRACE("(%p)->(%p)\n", This, pSite);
192 IInternetSecurityMgrSite_Release(This->mgrsite);
194 if(This->custom_manager) {
195 IInternetSecurityManager_Release(This->custom_manager);
196 This->custom_manager = NULL;
199 This->mgrsite = pSite;
202 IServiceProvider *servprov;
205 IInternetSecurityMgrSite_AddRef(pSite);
207 hres = IInternetSecurityMgrSite_QueryInterface(pSite, &IID_IServiceProvider,
209 if(SUCCEEDED(hres)) {
210 IServiceProvider_QueryService(servprov, &SID_SInternetSecurityManager,
211 &IID_IInternetSecurityManager, (void**)&This->custom_manager);
212 IServiceProvider_Release(servprov);
219 static HRESULT WINAPI SecManagerImpl_GetSecuritySite(IInternetSecurityManager *iface,
220 IInternetSecurityMgrSite **ppSite)
222 SecManagerImpl *This = SECMGR_THIS(iface);
224 TRACE("(%p)->(%p)\n", This, ppSite);
230 IInternetSecurityMgrSite_AddRef(This->mgrsite);
232 *ppSite = This->mgrsite;
236 static HRESULT WINAPI SecManagerImpl_MapUrlToZone(IInternetSecurityManager *iface,
237 LPCWSTR pwszUrl, DWORD *pdwZone,
240 SecManagerImpl *This = SECMGR_THIS(iface);
245 TRACE("(%p)->(%s %p %08x)\n", iface, debugstr_w(pwszUrl), pdwZone, dwFlags);
247 if(This->custom_manager) {
248 hres = IInternetSecurityManager_MapUrlToZone(This->custom_manager,
249 pwszUrl, pdwZone, dwFlags);
250 if(hres != INET_E_DEFAULT_ACTION)
260 FIXME("not supported flags: %08x\n", dwFlags);
262 size = (strlenW(pwszUrl)+16) * sizeof(WCHAR);
263 url = HeapAlloc(GetProcessHeap(), 0, size);
265 hres = CoInternetParseUrl(pwszUrl, PARSE_SECURITY_URL, 0, url, size/sizeof(WCHAR), &size, 0);
267 memcpy(url, pwszUrl, size);
269 hres = map_url_to_zone(url, pdwZone);
271 HeapFree(GetProcessHeap(), 0, url);
276 static HRESULT WINAPI SecManagerImpl_GetSecurityId(IInternetSecurityManager *iface,
277 LPCWSTR pwszUrl, BYTE *pbSecurityId, DWORD *pcbSecurityId, DWORD_PTR dwReserved)
279 SecManagerImpl *This = SECMGR_THIS(iface);
280 LPWSTR buf, ptr, ptr2;
281 DWORD size, zone, len;
284 static const WCHAR wszFile[] = {'f','i','l','e',':'};
286 TRACE("(%p)->(%s %p %p %08lx)\n", iface, debugstr_w(pwszUrl), pbSecurityId,
287 pcbSecurityId, dwReserved);
289 if(This->custom_manager) {
290 hres = IInternetSecurityManager_GetSecurityId(This->custom_manager,
291 pwszUrl, pbSecurityId, pcbSecurityId, dwReserved);
292 if(hres != INET_E_DEFAULT_ACTION)
296 if(!pwszUrl || !pbSecurityId || !pcbSecurityId)
300 FIXME("dwReserved is not supported\n");
302 len = strlenW(pwszUrl)+1;
303 buf = HeapAlloc(GetProcessHeap(), 0, (len+16)*sizeof(WCHAR));
305 hres = CoInternetParseUrl(pwszUrl, PARSE_SECURITY_URL, 0, buf, len, &size, 0);
307 memcpy(buf, pwszUrl, len*sizeof(WCHAR));
309 hres = map_url_to_zone(buf, &zone);
311 HeapFree(GetProcessHeap(), 0, buf);
312 return hres == 0x80041001 ? E_INVALIDARG : hres;
315 /* file protocol is a special case */
316 if(strlenW(pwszUrl) >= sizeof(wszFile)/sizeof(WCHAR)
317 && !memcmp(buf, wszFile, sizeof(wszFile))) {
319 static const BYTE secidFile[] = {'f','i','l','e',':'};
321 if(*pcbSecurityId < sizeof(secidFile)+sizeof(zone))
322 return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER);
324 memcpy(pbSecurityId, secidFile, sizeof(secidFile));
325 *(DWORD*)(pbSecurityId+sizeof(secidFile)) = zone;
327 *pcbSecurityId = sizeof(secidFile)+sizeof(zone);
331 ptr = strchrW(buf, ':');
336 memmove(ptr, ptr2, (strlenW(ptr2)+1)*sizeof(WCHAR));
338 ptr = strchrW(ptr, '/');
342 len = WideCharToMultiByte(CP_ACP, 0, buf, -1, NULL, 0, NULL, NULL)-1;
344 if(len+sizeof(DWORD) > *pcbSecurityId)
345 return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER);
347 WideCharToMultiByte(CP_ACP, 0, buf, -1, (LPSTR)pbSecurityId, -1, NULL, NULL);
348 HeapFree(GetProcessHeap(), 0, buf);
350 *(DWORD*)(pbSecurityId+len) = zone;
352 *pcbSecurityId = len+sizeof(DWORD);
358 static HRESULT WINAPI SecManagerImpl_ProcessUrlAction(IInternetSecurityManager *iface,
359 LPCWSTR pwszUrl, DWORD dwAction,
360 BYTE *pPolicy, DWORD cbPolicy,
361 BYTE *pContext, DWORD cbContext,
362 DWORD dwFlags, DWORD dwReserved)
364 SecManagerImpl *This = SECMGR_THIS(iface);
367 TRACE("(%p)->(%s %08x %p %08x %p %08x %08x %08x)\n", iface, debugstr_w(pwszUrl), dwAction,
368 pPolicy, cbPolicy, pContext, cbContext, dwFlags, dwReserved);
370 if(This->custom_manager) {
371 hres = IInternetSecurityManager_ProcessUrlAction(This->custom_manager, pwszUrl, dwAction,
372 pPolicy, cbPolicy, pContext, cbContext, dwFlags, dwReserved);
373 if(hres != INET_E_DEFAULT_ACTION)
377 FIXME("Default action is not implemented\n");
382 static HRESULT WINAPI SecManagerImpl_QueryCustomPolicy(IInternetSecurityManager *iface,
383 LPCWSTR pwszUrl, REFGUID guidKey,
384 BYTE **ppPolicy, DWORD *pcbPolicy,
385 BYTE *pContext, DWORD cbContext,
388 SecManagerImpl *This = SECMGR_THIS(iface);
391 TRACE("(%p)->(%s %s %p %p %p %08x %08x )\n", iface, debugstr_w(pwszUrl), debugstr_guid(guidKey),
392 ppPolicy, pcbPolicy, pContext, cbContext, dwReserved);
394 if(This->custom_manager) {
395 hres = IInternetSecurityManager_QueryCustomPolicy(This->custom_manager, pwszUrl, guidKey,
396 ppPolicy, pcbPolicy, pContext, cbContext, dwReserved);
397 if(hres != INET_E_DEFAULT_ACTION)
401 FIXME("Default action is not implemented\n");
405 static HRESULT WINAPI SecManagerImpl_SetZoneMapping(IInternetSecurityManager *iface,
406 DWORD dwZone, LPCWSTR pwszPattern, DWORD dwFlags)
408 SecManagerImpl *This = SECMGR_THIS(iface);
411 TRACE("(%p)->(%08x %s %08x)\n", iface, dwZone, debugstr_w(pwszPattern),dwFlags);
413 if(This->custom_manager) {
414 hres = IInternetSecurityManager_SetZoneMapping(This->custom_manager, dwZone,
415 pwszPattern, dwFlags);
416 if(hres != INET_E_DEFAULT_ACTION)
420 FIXME("Default action is not implemented\n");
424 static HRESULT WINAPI SecManagerImpl_GetZoneMappings(IInternetSecurityManager *iface,
425 DWORD dwZone, IEnumString **ppenumString, DWORD dwFlags)
427 SecManagerImpl *This = SECMGR_THIS(iface);
430 TRACE("(%p)->(%08x %p %08x)\n", iface, dwZone, ppenumString,dwFlags);
432 if(This->custom_manager) {
433 hres = IInternetSecurityManager_GetZoneMappings(This->custom_manager, dwZone,
434 ppenumString, dwFlags);
435 if(hres != INET_E_DEFAULT_ACTION)
439 FIXME("Default action is not implemented\n");
443 static const IInternetSecurityManagerVtbl VT_SecManagerImpl =
445 SecManagerImpl_QueryInterface,
446 SecManagerImpl_AddRef,
447 SecManagerImpl_Release,
448 SecManagerImpl_SetSecuritySite,
449 SecManagerImpl_GetSecuritySite,
450 SecManagerImpl_MapUrlToZone,
451 SecManagerImpl_GetSecurityId,
452 SecManagerImpl_ProcessUrlAction,
453 SecManagerImpl_QueryCustomPolicy,
454 SecManagerImpl_SetZoneMapping,
455 SecManagerImpl_GetZoneMappings
458 HRESULT SecManagerImpl_Construct(IUnknown *pUnkOuter, LPVOID *ppobj)
460 SecManagerImpl *This;
462 TRACE("(%p,%p)\n",pUnkOuter,ppobj);
463 This = HeapAlloc(GetProcessHeap(), 0, sizeof(*This));
465 /* Initialize the virtual function table. */
466 This->lpInternetSecurityManagerVtbl = &VT_SecManagerImpl;
469 This->mgrsite = NULL;
470 This->custom_manager = NULL;
479 /***********************************************************************
480 * InternetZoneManager implementation
484 const IInternetZoneManagerVtbl* lpVtbl;
488 static HRESULT open_zone_key(DWORD zone, HKEY *hkey, URLZONEREG zone_reg)
490 static const WCHAR wszZonesKey[] =
491 {'S','o','f','t','w','a','r','e','\\',
492 'M','i','c','r','o','s','o','f','t','\\',
493 'W','i','n','d','o','w','s','\\',
494 'C','u','r','r','e','n','t','V','e','r','s','i','o','n','\\',
495 'I','n','t','e','r','n','e','t',' ','S','e','t','t','i','n','g','s','\\',
496 'Z','o','n','e','s','\\',0};
497 static const WCHAR wszFormat[] = {'%','s','%','l','d',0};
499 WCHAR key_name[sizeof(wszZonesKey)/sizeof(WCHAR)+8];
504 case URLZONEREG_DEFAULT: /* FIXME: TEST */
505 case URLZONEREG_HKCU:
506 parent_key = HKEY_CURRENT_USER;
508 case URLZONEREG_HKLM:
509 parent_key = HKEY_LOCAL_MACHINE;
512 WARN("Unknown URLZONEREG: %d\n", zone_reg);
516 wsprintfW(key_name, wszFormat, wszZonesKey, zone);
518 res = RegOpenKeyW(parent_key, key_name, hkey);
520 if(res != ERROR_SUCCESS) {
521 WARN("RegOpenKey failed\n");
528 /********************************************************************
529 * IInternetZoneManager_QueryInterface
531 static HRESULT WINAPI ZoneMgrImpl_QueryInterface(IInternetZoneManager* iface, REFIID riid, void** ppvObject)
533 ZoneMgrImpl* This = (ZoneMgrImpl*)iface;
535 TRACE("(%p)->(%s,%p)\n", This, debugstr_guid(riid), ppvObject);
537 if(!This || !ppvObject)
540 if(!IsEqualIID(&IID_IUnknown, riid) && !IsEqualIID(&IID_IInternetZoneManager, riid)) {
541 FIXME("Unknown interface: %s\n", debugstr_guid(riid));
543 return E_NOINTERFACE;
547 IInternetZoneManager_AddRef(iface);
552 /********************************************************************
553 * IInternetZoneManager_AddRef
555 static ULONG WINAPI ZoneMgrImpl_AddRef(IInternetZoneManager* iface)
557 ZoneMgrImpl* This = (ZoneMgrImpl*)iface;
558 ULONG refCount = InterlockedIncrement(&This->ref);
560 TRACE("(%p)->(ref before=%u)\n",This, refCount - 1);
565 /********************************************************************
566 * IInternetZoneManager_Release
568 static ULONG WINAPI ZoneMgrImpl_Release(IInternetZoneManager* iface)
570 ZoneMgrImpl* This = (ZoneMgrImpl*)iface;
571 ULONG refCount = InterlockedDecrement(&This->ref);
573 TRACE("(%p)->(ref before=%u)\n",This, refCount + 1);
576 HeapFree(GetProcessHeap(), 0, This);
577 URLMON_UnlockModule();
583 /********************************************************************
584 * IInternetZoneManager_GetZoneAttributes
586 static HRESULT WINAPI ZoneMgrImpl_GetZoneAttributes(IInternetZoneManager* iface,
588 ZONEATTRIBUTES* pZoneAttributes)
590 FIXME("(%p)->(%d %p) stub\n", iface, dwZone, pZoneAttributes);
594 /********************************************************************
595 * IInternetZoneManager_SetZoneAttributes
597 static HRESULT WINAPI ZoneMgrImpl_SetZoneAttributes(IInternetZoneManager* iface,
599 ZONEATTRIBUTES* pZoneAttributes)
601 FIXME("(%p)->(%08x %p) stub\n", iface, dwZone, pZoneAttributes);
605 /********************************************************************
606 * IInternetZoneManager_GetZoneCustomPolicy
608 static HRESULT WINAPI ZoneMgrImpl_GetZoneCustomPolicy(IInternetZoneManager* iface,
613 URLZONEREG ulrZoneReg)
615 FIXME("(%p)->(%08x %s %p %p %08x) stub\n", iface, dwZone, debugstr_guid(guidKey),
616 ppPolicy, pcbPolicy, ulrZoneReg);
620 /********************************************************************
621 * IInternetZoneManager_SetZoneCustomPolicy
623 static HRESULT WINAPI ZoneMgrImpl_SetZoneCustomPolicy(IInternetZoneManager* iface,
628 URLZONEREG ulrZoneReg)
630 FIXME("(%p)->(%08x %s %p %08x %08x) stub\n", iface, dwZone, debugstr_guid(guidKey),
631 ppPolicy, cbPolicy, ulrZoneReg);
635 /********************************************************************
636 * IInternetZoneManager_GetZoneActionPolicy
638 static HRESULT WINAPI ZoneMgrImpl_GetZoneActionPolicy(IInternetZoneManager* iface,
639 DWORD dwZone, DWORD dwAction, BYTE* pPolicy, DWORD cbPolicy, URLZONEREG urlZoneReg)
644 DWORD size = cbPolicy;
647 static const WCHAR wszFormat[] = {'%','l','X',0};
649 TRACE("(%p)->(%d %08x %p %d %d)\n", iface, dwZone, dwAction, pPolicy,
650 cbPolicy, urlZoneReg);
655 hres = open_zone_key(dwZone, &hkey, urlZoneReg);
659 wsprintfW(action, wszFormat, dwAction);
661 res = RegQueryValueExW(hkey, action, NULL, NULL, pPolicy, &size);
662 if(res == ERROR_MORE_DATA) {
664 }else if(res == ERROR_FILE_NOT_FOUND) {
666 }else if(res != ERROR_SUCCESS) {
667 ERR("RegQueryValue failed: %d\n", res);
676 /********************************************************************
677 * IInternetZoneManager_SetZoneActionPolicy
679 static HRESULT WINAPI ZoneMgrImpl_SetZoneActionPolicy(IInternetZoneManager* iface,
684 URLZONEREG urlZoneReg)
686 FIXME("(%p)->(%08x %08x %p %08x %08x) stub\n", iface, dwZone, dwAction, pPolicy,
687 cbPolicy, urlZoneReg);
691 /********************************************************************
692 * IInternetZoneManager_PromptAction
694 static HRESULT WINAPI ZoneMgrImpl_PromptAction(IInternetZoneManager* iface,
701 FIXME("%p %08x %p %s %s %08x\n", iface, dwAction, hwndParent,
702 debugstr_w(pwszUrl), debugstr_w(pwszText), dwPromptFlags );
706 /********************************************************************
707 * IInternetZoneManager_LogAction
709 static HRESULT WINAPI ZoneMgrImpl_LogAction(IInternetZoneManager* iface,
715 FIXME("(%p)->(%08x %s %s %08x) stub\n", iface, dwAction, debugstr_w(pwszUrl),
716 debugstr_w(pwszText), dwLogFlags);
720 /********************************************************************
721 * IInternetZoneManager_CreateZoneEnumerator
723 static HRESULT WINAPI ZoneMgrImpl_CreateZoneEnumerator(IInternetZoneManager* iface,
728 FIXME("(%p)->(%p %p %08x) stub\n", iface, pdwEnum, pdwCount, dwFlags);
732 /********************************************************************
733 * IInternetZoneManager_GetZoneAt
735 static HRESULT WINAPI ZoneMgrImpl_GetZoneAt(IInternetZoneManager* iface,
740 FIXME("(%p)->(%08x %08x %p) stub\n", iface, dwEnum, dwIndex, pdwZone);
744 /********************************************************************
745 * IInternetZoneManager_DestroyZoneEnumerator
747 static HRESULT WINAPI ZoneMgrImpl_DestroyZoneEnumerator(IInternetZoneManager* iface,
750 FIXME("(%p)->(%08x) stub\n", iface, dwEnum);
754 /********************************************************************
755 * IInternetZoneManager_CopyTemplatePoliciesToZone
757 static HRESULT WINAPI ZoneMgrImpl_CopyTemplatePoliciesToZone(IInternetZoneManager* iface,
762 FIXME("(%p)->(%08x %08x %08x) stub\n", iface, dwTemplate, dwZone, dwReserved);
766 /********************************************************************
767 * IInternetZoneManager_Construct
769 static const IInternetZoneManagerVtbl ZoneMgrImplVtbl = {
770 ZoneMgrImpl_QueryInterface,
773 ZoneMgrImpl_GetZoneAttributes,
774 ZoneMgrImpl_SetZoneAttributes,
775 ZoneMgrImpl_GetZoneCustomPolicy,
776 ZoneMgrImpl_SetZoneCustomPolicy,
777 ZoneMgrImpl_GetZoneActionPolicy,
778 ZoneMgrImpl_SetZoneActionPolicy,
779 ZoneMgrImpl_PromptAction,
780 ZoneMgrImpl_LogAction,
781 ZoneMgrImpl_CreateZoneEnumerator,
782 ZoneMgrImpl_GetZoneAt,
783 ZoneMgrImpl_DestroyZoneEnumerator,
784 ZoneMgrImpl_CopyTemplatePoliciesToZone,
787 HRESULT ZoneMgrImpl_Construct(IUnknown *pUnkOuter, LPVOID *ppobj)
789 ZoneMgrImpl* ret = HeapAlloc(GetProcessHeap(), 0, sizeof(ZoneMgrImpl));
791 TRACE("(%p %p)\n", pUnkOuter, ppobj);
792 ret->lpVtbl = &ZoneMgrImplVtbl;
794 *ppobj = (IInternetZoneManager*)ret;
801 /***********************************************************************
802 * CoInternetCreateSecurityManager (URLMON.@)
805 HRESULT WINAPI CoInternetCreateSecurityManager( IServiceProvider *pSP,
806 IInternetSecurityManager **ppSM, DWORD dwReserved )
808 TRACE("%p %p %d\n", pSP, ppSM, dwReserved );
811 FIXME("pSP not supported\n");
813 return SecManagerImpl_Construct(NULL, (void**) ppSM);
816 /********************************************************************
817 * CoInternetCreateZoneManager (URLMON.@)
819 HRESULT WINAPI CoInternetCreateZoneManager(IServiceProvider* pSP, IInternetZoneManager** ppZM, DWORD dwReserved)
821 TRACE("(%p %p %x)\n", pSP, ppZM, dwReserved);
822 return ZoneMgrImpl_Construct(NULL, (void**)ppZM);