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
31c9b824
Commit
31c9b824
authored
May 11, 2003
by
Mike McCormack
Committed by
Alexandre Julliard
May 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented InternetSetOptionExA/W.
parent
07eda428
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
7 deletions
+76
-7
internet.c
dlls/wininet/internet.c
+73
-4
wininet.spec
dlls/wininet/wininet.spec
+3
-3
No files found.
dlls/wininet/internet.c
View file @
31c9b824
...
...
@@ -1530,10 +1530,79 @@ BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
BOOL
WINAPI
InternetSetOptionA
(
HINTERNET
hInternet
,
DWORD
dwOption
,
LPVOID
lpBuffer
,
DWORD
dwBufferLength
)
{
/* FIXME!!! implement if lpBuffer is a string, dwBufferLength is
in TCHARs */
return
InternetSetOptionW
(
hInternet
,
dwOption
,
lpBuffer
,
dwBufferLength
);
LPVOID
wbuffer
;
DWORD
wlen
;
BOOL
r
;
switch
(
dwOption
)
{
case
INTERNET_OPTION_PROXY
:
{
LPINTERNET_PROXY_INFOA
pi
=
(
LPINTERNET_PROXY_INFOA
)
lpBuffer
;
LPINTERNET_PROXY_INFOW
piw
;
DWORD
proxlen
,
prbylen
;
LPWSTR
prox
,
prby
;
proxlen
=
MultiByteToWideChar
(
CP_ACP
,
0
,
pi
->
lpszProxy
,
-
1
,
NULL
,
0
);
prbylen
=
MultiByteToWideChar
(
CP_ACP
,
0
,
pi
->
lpszProxyBypass
,
-
1
,
NULL
,
0
);
wlen
=
sizeof
*
piw
+
proxlen
+
prbylen
;
wbuffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
wlen
);
piw
=
(
LPINTERNET_PROXY_INFOW
)
wbuffer
;
piw
->
dwAccessType
=
pi
->
dwAccessType
;
prox
=
(
LPWSTR
)
&
piw
[
1
];
prby
=
&
prox
[
proxlen
+
1
];
MultiByteToWideChar
(
CP_ACP
,
0
,
pi
->
lpszProxy
,
-
1
,
prox
,
proxlen
);
MultiByteToWideChar
(
CP_ACP
,
0
,
pi
->
lpszProxyBypass
,
-
1
,
prby
,
prbylen
);
piw
->
lpszProxy
=
prox
;
piw
->
lpszProxyBypass
=
prby
;
}
break
;
case
INTERNET_OPTION_USER_AGENT
:
case
INTERNET_OPTION_USERNAME
:
case
INTERNET_OPTION_PASSWORD
:
wlen
=
MultiByteToWideChar
(
CP_ACP
,
0
,
lpBuffer
,
dwBufferLength
,
NULL
,
0
);
wbuffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
wlen
);
MultiByteToWideChar
(
CP_ACP
,
0
,
lpBuffer
,
dwBufferLength
,
wbuffer
,
wlen
);
break
;
default:
wbuffer
=
lpBuffer
;
wlen
=
dwBufferLength
;
}
r
=
InternetSetOptionW
(
hInternet
,
dwOption
,
wbuffer
,
wlen
);
if
(
lpBuffer
!=
wbuffer
)
HeapFree
(
GetProcessHeap
(),
0
,
wbuffer
);
return
r
;
}
/***********************************************************************
* InternetSetOptionExA (WININET.@)
*/
BOOL
WINAPI
InternetSetOptionExA
(
HINTERNET
hInternet
,
DWORD
dwOption
,
LPVOID
lpBuffer
,
DWORD
dwBufferLength
,
DWORD
dwFlags
)
{
FIXME
(
"Flags %08lx ignored
\n
"
,
dwFlags
);
return
InternetSetOptionA
(
hInternet
,
dwOption
,
lpBuffer
,
dwBufferLength
);
}
/***********************************************************************
* InternetSetOptionExW (WININET.@)
*/
BOOL
WINAPI
InternetSetOptionExW
(
HINTERNET
hInternet
,
DWORD
dwOption
,
LPVOID
lpBuffer
,
DWORD
dwBufferLength
,
DWORD
dwFlags
)
{
FIXME
(
"Flags %08lx ignored
\n
"
,
dwFlags
);
if
(
dwFlags
&
~
ISO_VALID_FLAGS
)
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
return
InternetSetOptionW
(
hInternet
,
dwOption
,
lpBuffer
,
dwBufferLength
);
}
...
...
dlls/wininet/wininet.spec
View file @
31c9b824
...
...
@@ -11,7 +11,7 @@
@ stub DeleteUrlCacheContainerA
@ stub DeleteUrlCacheContainerW
@ stdcall DeleteUrlCacheEntry(str)
@ stdcall DeleteUrlCacheGroup(double long ptr)
DeleteUrlCacheGroup
@ stdcall DeleteUrlCacheGroup(double long ptr)
@ stdcall DetectAutoProxyUrl(str long long)
@ stdcall DllInstall(long ptr) WININET_DllInstall
@ stub FindCloseUrlCache
...
...
@@ -131,8 +131,8 @@
@ stub InternetSetFilePointer
@ stdcall InternetSetOptionA(ptr long ptr long)
@ stdcall InternetSetOptionW(ptr long ptr long)
@ st
ub InternetSetOptionExA
@ st
ub InternetSetOptionExW
@ st
dcall InternetSetOptionExA(ptr long ptr long long)
@ st
dcall InternetSetOptionExW(ptr long ptr long long)
@ stdcall InternetSetStatusCallback(ptr ptr) InternetSetStatusCallbackA
@ stdcall InternetSetStatusCallbackA(ptr ptr)
@ stub InternetSetStatusCallbackW
...
...
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