Commit b8805b6b authored by Andriy Palamarchuk's avatar Andriy Palamarchuk Committed by Alexandre Julliard

Created dummy implementation of InternetSetOption function.

parent f730157c
......@@ -962,6 +962,64 @@ BOOL WINAPI InternetQueryOptionA(HINTERNET hInternet, DWORD dwOption,
/***********************************************************************
* InternetQueryOptionW (WININET.@)
*
* Sets an options on the specified handle
*
* RETURNS
* TRUE on success
* FALSE on failure
*
*/
BOOLAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption,
LPVOID lpBuffer, DWORD dwBufferLength)
{
LPWININETHANDLEHEADER lpwhh;
BOOL bSuccess = FALSE;
TRACE("0x%08lx\n", dwOption);
if (NULL == hInternet)
{
INTERNET_SetLastError(ERROR_INTERNET_INCORRECT_HANDLE_TYPE);
return FALSE;
}
lpwhh = (LPWININETHANDLEHEADER) hInternet;
switch (dwOption)
{
default:
INTERNET_SetLastError(ERROR_INVALID_PARAMETER);
FIXME("Stub!\n");
break;
}
return bSuccess;
}
/***********************************************************************
* InternetQueryOptionA (WININET.@)
*
* Sets an options on the specified handle.
*
* RETURNS
* TRUE on success
* FALSE on failure
*
*/
BOOLAPI 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);
}
/***********************************************************************
* InternetGetCookieA (WININET.@)
*
* Retrieve cookie from the specified url
......
......@@ -137,10 +137,10 @@ debug_channels (wininet)
@ stub InternetSetCookieW
@ stub InternetSetDialState
@ stub InternetSetFilePointer
@ stub InternetSetOptionA
@ stdcall InternetSetOptionA(ptr long ptr long) InternetSetOptionA
@ stdcall InternetSetOptionW(ptr long ptr long) InternetSetOptionW
@ stub InternetSetOptionExA
@ stub InternetSetOptionExW
@ stub InternetSetOptionW
@ stdcall InternetSetStatusCallback(ptr ptr) InternetSetStatusCallback
@ stub InternetShowSecurityInfoByURL
@ stub InternetTimeFromSystemTime
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment