Created dummy implementation of InternetSetOption function.

This commit is contained in:
Andriy Palamarchuk 2002-03-11 01:09:25 +00:00 committed by Alexandre Julliard
parent f730157ce6
commit b8805b6bf0
2 changed files with 60 additions and 2 deletions

View File

@ -961,6 +961,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.@)
*

View File

@ -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