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
4155136e
Commit
4155136e
authored
Sep 19, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Sep 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Added CoInternetIsFeatureZoneElevationEnabled implementation.
parent
da55a13c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
0 deletions
+51
-0
internet.c
dlls/urlmon/internet.c
+50
-0
urlmon.spec
dlls/urlmon/urlmon.spec
+1
-0
No files found.
dlls/urlmon/internet.c
View file @
4155136e
...
...
@@ -742,3 +742,53 @@ HRESULT WINAPI CoInternetIsFeatureEnabledForUrl(INTERNETFEATURELIST FeatureEntry
}
}
}
/***********************************************************************
* CoInternetIsFeatureZoneElevationEnabled (URLMON.@)
*/
HRESULT
WINAPI
CoInternetIsFeatureZoneElevationEnabled
(
LPCWSTR
szFromURL
,
LPCWSTR
szToURL
,
IInternetSecurityManager
*
pSecMgr
,
DWORD
dwFlags
)
{
HRESULT
hres
;
TRACE
(
"(%s %s %p %x)
\n
"
,
debugstr_w
(
szFromURL
),
debugstr_w
(
szToURL
),
pSecMgr
,
dwFlags
);
if
(
!
pSecMgr
||
!
szToURL
)
return
CoInternetIsFeatureEnabled
(
FEATURE_ZONE_ELEVATION
,
dwFlags
);
switch
(
dwFlags
)
{
case
GET_FEATURE_FROM_THREAD
:
case
GET_FEATURE_FROM_THREAD_LOCALMACHINE
:
case
GET_FEATURE_FROM_THREAD_INTRANET
:
case
GET_FEATURE_FROM_THREAD_TRUSTED
:
case
GET_FEATURE_FROM_THREAD_INTERNET
:
case
GET_FEATURE_FROM_THREAD_RESTRICTED
:
FIXME
(
"unsupported flags %x
\n
"
,
dwFlags
);
return
E_NOTIMPL
;
case
GET_FEATURE_FROM_PROCESS
:
hres
=
CoInternetIsFeatureEnabled
(
FEATURE_ZONE_ELEVATION
,
dwFlags
);
if
(
hres
!=
S_OK
)
return
hres
;
/* fall through */
default:
{
DWORD
policy
=
URLPOLICY_DISALLOW
;
hres
=
IInternetSecurityManager_ProcessUrlAction
(
pSecMgr
,
szToURL
,
URLACTION_FEATURE_ZONE_ELEVATION
,
(
BYTE
*
)
&
policy
,
sizeof
(
DWORD
),
NULL
,
0
,
PUAF_NOUI
,
0
);
if
(
FAILED
(
hres
))
return
S_OK
;
switch
(
policy
)
{
case
URLPOLICY_ALLOW
:
return
S_FALSE
;
case
URLPOLICY_QUERY
:
FIXME
(
"Ask user dialog not implemented
\n
"
);
default:
return
S_OK
;
}
}
}
}
dlls/urlmon/urlmon.spec
View file @
4155136e
...
...
@@ -22,6 +22,7 @@
@ stdcall CoInternetGetSession(long ptr long)
@ stdcall CoInternetIsFeatureEnabled(long long)
@ stdcall CoInternetIsFeatureEnabledForUrl(long long wstr ptr)
@ stdcall CoInternetIsFeatureZoneElevationEnabled(wstr wstr ptr long)
@ stdcall CoInternetParseUrl(wstr long long wstr long ptr long)
@ stdcall CoInternetParseIUri(ptr long long wstr long ptr long)
@ stdcall CoInternetQueryInfo(ptr long long ptr long ptr long)
...
...
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