Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
16e27e4d
Commit
16e27e4d
authored
May 04, 2011
by
Detlef Riekenberg
Committed by
Alexandre Julliard
May 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Implement IInternetZoneManager_SetZoneAttributes.
parent
0ba1bfb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
2 deletions
+36
-2
sec_mgr.c
dlls/urlmon/sec_mgr.c
+36
-2
No files found.
dlls/urlmon/sec_mgr.c
View file @
16e27e4d
...
...
@@ -1220,8 +1220,42 @@ static HRESULT WINAPI ZoneMgrImpl_SetZoneAttributes(IInternetZoneManagerEx2* ifa
DWORD
dwZone
,
ZONEATTRIBUTES
*
pZoneAttributes
)
{
FIXME
(
"(%p)->(%08x %p) stub
\n
"
,
iface
,
dwZone
,
pZoneAttributes
);
return
E_NOTIMPL
;
ZoneMgrImpl
*
This
=
impl_from_IInternetZoneManagerEx2
(
iface
);
HRESULT
hr
;
HKEY
hcu
;
TRACE
(
"(%p)->(%d %p)
\n
"
,
This
,
dwZone
,
pZoneAttributes
);
if
(
!
pZoneAttributes
)
return
E_INVALIDARG
;
hr
=
open_zone_key
(
HKEY_CURRENT_USER
,
dwZone
,
&
hcu
);
if
(
FAILED
(
hr
))
return
S_OK
;
/* IE6 returned E_FAIL here */
/* cbSize is ignored */
RegSetValueExW
(
hcu
,
displaynameW
,
0
,
REG_SZ
,
(
LPBYTE
)
pZoneAttributes
->
szDisplayName
,
(
lstrlenW
(
pZoneAttributes
->
szDisplayName
)
+
1
)
*
sizeof
(
WCHAR
));
RegSetValueExW
(
hcu
,
descriptionW
,
0
,
REG_SZ
,
(
LPBYTE
)
pZoneAttributes
->
szDescription
,
(
lstrlenW
(
pZoneAttributes
->
szDescription
)
+
1
)
*
sizeof
(
WCHAR
));
RegSetValueExW
(
hcu
,
iconW
,
0
,
REG_SZ
,
(
LPBYTE
)
pZoneAttributes
->
szIconPath
,
(
lstrlenW
(
pZoneAttributes
->
szIconPath
)
+
1
)
*
sizeof
(
WCHAR
));
RegSetValueExW
(
hcu
,
minlevelW
,
0
,
REG_DWORD
,
(
const
BYTE
*
)
&
pZoneAttributes
->
dwTemplateMinLevel
,
sizeof
(
DWORD
));
RegSetValueExW
(
hcu
,
currentlevelW
,
0
,
REG_DWORD
,
(
const
BYTE
*
)
&
pZoneAttributes
->
dwTemplateCurrentLevel
,
sizeof
(
DWORD
));
RegSetValueExW
(
hcu
,
recommendedlevelW
,
0
,
REG_DWORD
,
(
const
BYTE
*
)
&
pZoneAttributes
->
dwTemplateRecommended
,
sizeof
(
DWORD
));
RegSetValueExW
(
hcu
,
flagsW
,
0
,
REG_DWORD
,
(
const
BYTE
*
)
&
pZoneAttributes
->
dwFlags
,
sizeof
(
DWORD
));
RegCloseKey
(
hcu
);
return
S_OK
;
}
/********************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment