52#ifndef ERROR_WINHTTP_AUTODETECTION_FAILED
53#define ERROR_WINHTTP_AUTODETECTION_FAILED 12180
68 url =
"http://swupmf.adobe.com/manifest/50/win/AdobeUpdater.upd";
77 "got %lu and %lu with size %lu for '%s' (%Iu)\n",
89 "got %lu and %lu with size %lu for '%s' (%Iu)\n",
100 "got %lu and %lu with size %lu for '%s' (%Iu)\n",
110 ok(!
lstrcmpA(
"file://C:\\Program Files\\Atmel\\AVR Tools\\STK500\\STK500.xml",
buffer),
111 "got %s expected 'file://C:\\Program Files\\Atmel\\AVR Tools\\STK500\\STK500.xml'\n",
buffer);
121 "got %lu and %lu with size %lu for '%s' (%Iu)\n",
127 buffer[urllen + 4] =
'\0';
132 "got %lu and %lu with size %lu for '%s' (%Iu)\n",
136 buffer[urllen + 4] =
'\0';
141 "got %lu and %lu with size %lu for '%s' (%Iu)\n",
145 buffer[urllen + 4] =
'\0';
150 "got %lu and %lu with size %lu for '%s' (%Iu)\n",
156 ok(
res == 1,
"InternetCanonicalizeUrlA failed\n");
157 ok(!
strcmp(
buffer,
"http://www.winehq.org/index.php?x="),
"Trailing space should have been stripped even in ICU_BROWSER_MODE (%s)\n",
buffer);
160 ok(!
res,
"InternetSetOptionA succeeded\n");
162 "InternetSetOptionA failed %lu, expected ERROR_INTERNET_INVALID_OPTION\n",
GetLastError());
173 static const char useragent[] = {
"Wininet Test"};
206 ok((hinet != 0x0),
"InternetOpen Failed\n");
218 ok(
len ==
strlen(useragent)+1,
"Got wrong user agent length %ld instead of %Iu\n",
len,
strlen(useragent));
228 ok(!
strcmp(useragent,
buffer),
"Got wrong user agent string %s instead of %s\n",
buffer,useragent);
229 ok(
len ==
strlen(useragent),
"Got wrong user agent length %ld instead of %Iu\n",
len,
strlen(useragent));
238 ok(
len ==
strlen(useragent) + 1,
"Got wrong user agent length %ld instead of %Iu\n",
len,
strlen(useragent) + 1);
249 ok(
len == 0,
"Got wrong user agent length %ld instead of 0\n",
len);
273 ok((hinet != 0x0),
"InternetOpen Failed\n");
279 ok(
len == 1,
"Got wrong user agent length %ld instead of %d\n",
len,1);
288 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_CONNECT_TIMEOUT) failed (%lu)\n",
GetLastError());
292 ok(
res,
"InternetQueryOptionA(INTERNET_OPTION_CONNECT_TIMEOUT) failed %ld)\n",
GetLastError());
293 ok(
val == 12345,
"val = %ld\n",
val);
299 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_RECEIVE_TIMEOUT) failed (%lu)\n",
GetLastError());
303 ok(
res,
"InternetQueryOptionA(INTERNET_OPTION_RECEIVE_TIMEOUT) failed %ld)\n",
GetLastError());
304 ok(
val == 54321,
"val = %ld\n",
val);
310 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_SEND_TIMEOUT) failed (%lu)\n",
GetLastError());
314 ok(
res,
"InternetQueryOptionA(INTERNET_OPTION_SEND_TIMEOUT) failed %ld)\n",
GetLastError());
315 ok(
val == 12345,
"val = %ld\n",
val);
321 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_RECEIVE_TIMEOUT) failed (%lu)\n",
GetLastError());
325 ok(
res,
"InternetQueryOptionA(INTERNET_OPTION_RECEIVE_TIMEOUT) failed %ld)\n",
GetLastError());
326 ok(
val == 54321,
"val = %ld\n",
val);
332 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_DATA_SEND_TIMEOUT) failed (%lu)\n",
GetLastError());
337 ok(
res,
"InternetQueryOptionA(INTERNET_OPTION_DATA_SEND_TIMEOUT) failed %ld)\n",
GetLastError());
338 ok(
val == 12345,
"val = %ld\n",
val);
342 ok((hinet != 0x0),
"InternetOpen Failed\n");
347 ok(
len == 1,
"Got wrong user agent length %ld instead of %d\n",
len,1);
354 ok(!
res,
"InternetQueryOptionA(INTERNET_OPTION_MAX_CONNS_PER_SERVER) succeeded\n");
360 ok(!
res,
"InternetSetOptionA(INTERNET_OPTION_MAX_CONNS_PER_SERVER) succeeded\n");
365 ok(
res,
"InternetQueryOptionA(INTERNET_OPTION_CONNECT_TIMEOUT) failed %ld)\n",
GetLastError());
366 ok(
val == 12345,
"val = %ld\n",
val);
371 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_CONNECT_TIMEOUT) failed (%lu)\n",
GetLastError());
375 ok(
res,
"InternetQueryOptionA(INTERNET_OPTION_CONNECT_TIMEOUT) failed %ld)\n",
GetLastError());
382 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_RECEIVE_TIMEOUT) failed (%lu)\n",
GetLastError());
386 ok(
res,
"InternetQueryOptionA(INTERNET_OPTION_RECEIVE_TIMEOUT) failed %ld)\n",
GetLastError());
393 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_SEND_TIMEOUT) failed (%lu)\n",
GetLastError());
397 ok(
res,
"InternetQueryOptionA(INTERNET_OPTION_SEND_TIMEOUT) failed %ld)\n",
GetLastError());
404 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_DATA_RECEIVE_TIMEOUT) failed (%lu)\n",
GetLastError());
408 ok(
res,
"InternetQueryOptionA(INTERNET_OPTION_DATA_RECEIVE_TIMEOUT) failed %ld)\n",
GetLastError());
415 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_DATA_SEND_TIMEOUT) failed (%lu)\n",
GetLastError());
419 ok(
res,
"InternetQueryOptionA(INTERNET_OPTION_DATA_SEND_TIMEOUT) failed %ld)\n",
GetLastError());
427 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_CONNECT_TIMEOUT) failed (%lu)\n",
GetLastError());
429 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_SEND_TIMEOUT) failed (%lu)\n",
GetLastError());
431 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_RECEIVE_TIMEOUT) failed (%lu)\n",
GetLastError());
433 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_DATA_SEND_TIMEOUT) failed (%lu)\n",
GetLastError());
435 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_DATA_RECEIVE_TIMEOUT) failed (%lu)\n",
GetLastError());
441 ok(
val == 15000,
"failed to inherit INTERNET_OPTION_CONNECT_TIMEOUT on child connection (found %ld) - Error: %ld)\n",
val,
GetLastError());
445 ok(
val == 15000,
"failed to inherit INTERNET_OPTION_SEND_TIMEOUT on child connection (found %ld) - Error: %ld)\n",
val,
GetLastError());
449 ok(
val == 15000,
"failed to inherit INTERNET_OPTION_RECEIVE_TIMEOUT on child connection (found %ld) - Error: %ld)\n",
val,
GetLastError());
453 ok(
val == 15000,
"failed to inherit INTERNET_OPTION_DATA_SEND_TIMEOUTt on child connection (found %ld) - Error: %ld)\n",
val,
GetLastError());
457 ok(
val == 15000,
"failed to inherit INTERNET_OPTION_DATA_RECEIVE_TIMEOUT on child connection (found %ld) - Error: %ld)\n",
val,
GetLastError());
461 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_CONNECT_TIMEOUT) failed (%lu)\n",
GetLastError());
465 ok(
val == 15000,
"Connection handle inherited value (INTERNET_OPTION_CONNECT_TIMEOUT) as %ld\n",
val);
467 ok(
val == 12345,
"Parent handle set from inherited value (INTERNET_OPTION_CONNECT_TIMEOUT) as %ld\n",
val);
471 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_SEND_TIMEOUT) failed (%lu)\n",
GetLastError());
475 ok(
val == 15000,
"Connection handle inherited value (INTERNET_OPTION_SEND_TIMEOUT) as %ld\n",
val);
477 ok(
val == 12345,
"Parent handle set from inherited value (INTERNET_OPTION_SEND_TIMEOUT) as %ld\n",
val);
481 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_RECEIVE_TIMEOUT) failed (%lu)\n",
GetLastError());
485 ok(
val == 15000,
"Connection handle inherited value (INTERNET_OPTION_RECEIVE_TIMEOUT) as %ld\n",
val);
487 ok(
val == 12345,
"Parent handle set from inherited value (INTERNET_OPTION_RECEIVE_TIMEOUT) as %ld\n",
val);
491 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_DATA_SEND_TIMEOUT) failed (%lu)\n",
GetLastError());
495 ok(
val == 15000,
"Connection handle inherited value (INTERNET_OPTION_DATA_SEND_TIMEOUT) as %ld\n",
val);
497 ok(
val == 12345,
"Parent handle set from inherited value (INTERNET_OPTION_DATA_SEND_TIMEOUT) as %ld\n",
val);
501 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_DATA_RECEIVE_TIMEOUT) failed (%lu)\n",
GetLastError());
505 ok(
val == 15000,
"Connection handle inherited value (INTERNET_OPTION_DATA_RECEIVE_TIMEOUT) as %ld\n",
val);
507 ok(
val == 12345,
"Parent handle set from inherited value (INTERNET_OPTION_DATA_RECEIVE_TIMEOUT) as %ld\n",
val);
521 ok(
res,
"Got wrong return value %x\n",
res);
523 trace(
"INTERNET_OPTION_MAX_CONNS_PER_SERVER: %ld\n",
val);
528 ok(
res,
"Got wrong return value %x\n",
res);
530 trace(
"INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER: %ld\n",
val);
534 ok(
res,
"InternetSetOptionA(INTERNET_OPTION_MAX_CONNS_PER_SERVER) failed: %x\n",
res);
539 ok(
res,
"Got wrong return value %x\n",
res);
546 "InternetSetOptionA(INTERNET_OPTION_MAX_CONNS_PER_SERVER, 0) succeeded\n");
551 ok(!
res,
"InternetSetOptionA(INTERNET_OPTION_MAX_CONNS_PER_SERVER) succeeded\n");
556 ok(!
res,
"InternetSetOptionA(INTERNET_OPTION_MAX_CONNS_PER_SERVER) succeeded\n");
569 "InternetGetCookie should have failed with %s and error %ld\n",
583 static const WCHAR testing_example_comW[] =
584 {
'h',
't',
't',
'p',
':',
'/',
'/',
't',
'e',
's',
't',
'i',
'n',
'g',
'.',
'e',
'x',
'a',
'm',
'p',
'l',
'e',
'.',
'c',
'o',
'm',0};
587 ok(
ret ==
TRUE,
"InternetSetCookie failed\n");
589 ok(
ret ==
TRUE,
"InternetSetCookie failed\n");
593 ok(
ret ==
TRUE,
"InternetSetCookie failed\n");
595 ok(
ret ==
TRUE,
"InternetSetCookie failed\n");
597 ok(
ret ==
TRUE,
"InternetSetCookie failed\n");
599 ok(
ret ==
TRUE,
"InternetSetCookie failed\n");
601 ok(
ret ==
TRUE,
"InternetSetCookie failed\n");
603 ok(
ret ==
TRUE,
"InternetSetCookie failed\n");
607 ok(
ret ==
TRUE,
"InternetGetCookie failed\n");
613 ok(
ret ==
TRUE,
"InternetGetCookie failed\n");
629 "InternetGetCookie returned: %x(%lu), expected ERROR_INSUFFICIENT_BUFFER\n",
ret,
GetLastError());
634 ok(
ret ==
TRUE,
"InternetGetCookieW failed\n");
638 memset(wbuf, 0xac,
sizeof(wbuf));
640 ok(
ret ==
TRUE,
"InternetGetCookieW failed\n");
645 memset(wbuf, 0xac,
sizeof(wbuf));
648 "InternetGetCookieW returned: %x(%lu), expected ERROR_INSUFFICIENT_BUFFER\n",
ret,
GetLastError());
653 ok(
ret ==
TRUE,
"InternetGetCookie failed\n");
665 ok(
ret ==
TRUE,
"InternetGetCookie failed\n");
677 ok(
ret ==
TRUE,
"InternetGetCookie failed\n");
689 ok(
ret ==
TRUE,
"InternetGetCookie failed\n");
701 ok(
ret ==
TRUE,
"InternetGetCookie failed\n");
713 ok(
ret ==
TRUE,
"InternetGetCookie failed\n");
727 ok(
ret ==
TRUE,
"InternetGetCookie failed\n");
741 ok(
len == 29,
"got len %lu.\n",
len);
747 ok(
len == 29,
"got len %lu\n",
len);
756 ok(!
ret,
"InternetSetCookie succeeded\n");
771 win_skip(
"Skipping cookie attributes tests. Too old IE.\n");
821 char long_url[5000] =
"http://long.url.test.com/", *
p;
827 static const WCHAR about_blankW[] = {
'a',
'b',
'o',
'u',
't',
':',
'b',
'l',
'a',
'n',
'k',0};
832 "InternetGetCookeA failed: %lu, expected ERROR_INVALID_PARAMETER\n",
GetLastError());
837 "InternetGetCookeW failed: %lu, expected ERROR_INVALID_PARAMETER\n",
GetLastError());
842 "InternetGetCookeExA failed: %lu, expected ERROR_INVALID_PARAMETER\n",
GetLastError());
847 "InternetGetCookeExW failed: %lu, expected ERROR_INVALID_PARAMETER\n",
GetLastError());
849 p = long_url +
strlen(long_url);
850 memset(
p,
'x', long_url+
sizeof(long_url)-
p);
851 p += (long_url+
sizeof(long_url)-
p) - 3;
870 static const WCHAR szServer[] = {
's',
'e',
'r',
'v',
'e',
'r',0 };
871 static const WCHAR szServer2[] = {
's',
'e',
'r',
'v',
'e',
'r',
'=',0 };
873 static const WCHAR szUrl[] = {
'h',
't',
't',
'p',
':',
'/',
'/',
'a',
'.',
'b',
'.',
'c',0 };
874 static const WCHAR szUrlEmpty[] = {
'h',
't',
't',
'p',
':',
'/',
'/',0 };
875 static const WCHAR szExpect[] = {
's',
'e',
'r',
'v',
'e',
'r',
';',
' ',
's',
'e',
'r',
'v',
'e',
'r',0 };
884 win_skip(
"Internet*W functions are not implemented\n");
887 ok(hi !=
NULL,
"open failed\n");
891 ok(hc ==
NULL,
"connect failed\n");
895 ok(hc ==
NULL,
"connect failed\n");
899 ok(hc ==
NULL,
"connect failed\n");
903 ok(hc ==
NULL,
"connect failed\n");
908 ok(hc ==
NULL,
"connect failed\n");
912 ok(hc ==
NULL,
"connect failed\n");
929 ok(
r ==
TRUE,
"return wrong\n");
932 ok(
r ==
TRUE,
"return wrong\n");
935 ok(
r ==
TRUE,
"return wrong\n");
962 ok(
r ==
TRUE,
"return wrong\n");
965 ok( sz == 14 || sz == 16 || sz == 30,
"sz wrong, got %lu, expected 14, 16 or 30\n", sz);
970 ok(
r ==
TRUE,
"return wrong\n");
993 ok(
version.dwMajorVersion == 1,
"dwMajorVersion=%ld, expected 1\n",
version.dwMajorVersion);
994 ok(
version.dwMinorVersion == 2,
"dwMinorVersion=%ld, expected 2\n",
version.dwMinorVersion);
1002 static const char expect[] =
"Fri, 07 Jan 2005 12:06:35 GMT";
1009 "InternetTimeFromSystemTimeA failed (%lu)\n",
GetLastError() );
1015 ok( !
ret,
"InternetTimeFromSystemTimeA should have returned FALSE\n" );
1017 "InternetTimeFromSystemTimeA failed with ERROR_INVALID_PARAMETER instead of %lu\n",
1024 ok( !
ret,
"InternetTimeFromSystemTimeA should have returned FALSE\n" );
1026 "InternetTimeFromSystemTimeA failed with ERROR_INVALID_PARAMETER instead of %lu\n",
1033 ok( !
ret,
"InternetTimeFromSystemTimeA should have returned FALSE\n" );
1035 "InternetTimeFromSystemTimeA failed with ERROR_INVALID_PARAMETER instead of %lu\n",
1042 ok( !
ret,
"InternetTimeFromSystemTimeA should have returned FALSE\n" );
1044 "InternetTimeFromSystemTimeA failed with ERROR_INSUFFICIENT_BUFFER instead of %lu\n",
1053 static const WCHAR expect[] = {
'F',
'r',
'i',
',',
' ',
'0',
'7',
' ',
'J',
'a',
'n',
' ',
'2',
'0',
'0',
'5',
' ',
1054 '1',
'2',
':',
'0',
'6',
':',
'3',
'5',
' ',
'G',
'M',
'T',0 };
1061 "InternetTimeFromSystemTimeW failed (%lu)\n",
GetLastError() );
1067 ok( !
ret,
"InternetTimeFromSystemTimeW should have returned FALSE\n" );
1069 "InternetTimeFromSystemTimeW failed with ERROR_INVALID_PARAMETER instead of %lu\n",
1076 ok( !
ret,
"InternetTimeFromSystemTimeW should have returned FALSE\n" );
1078 "InternetTimeFromSystemTimeW failed with ERROR_INVALID_PARAMETER instead of %lu\n",
1085 ok( !
ret,
"InternetTimeFromSystemTimeW should have returned FALSE\n" );
1087 "InternetTimeFromSystemTimeW failed with ERROR_INVALID_PARAMETER instead of %lu\n",
1094 ok( !
ret,
"InternetTimeFromSystemTimeW should have returned FALSE\n" );
1096 "InternetTimeFromSystemTimeW failed with ERROR_INSUFFICIENT_BUFFER instead of %lu\n",
1106 static const SYSTEMTIME expect1 = { 2005, 1, 5, 7, 12, 6, 35, 0 };
1118 {
"Fri, 07 Jan 2005 12:06:35 GMT", &expect1,
TRUE },
1119 {
"Fri, 07 Jan 2005 12:06:35 UTC", &expect1,
TRUE },
1120 {
" fri, 7 jan 2005 12 06 35", &expect1,
TRUE },
1121 {
"Fri, 07-01-2005 12:06:35", &expect1,
TRUE },
1122 {
"5, 07-01-2005 12:06:35 GMT", &expect1,
TRUE },
1123 {
"5, 07-01-2005 12:06:35 UTC", &expect1,
TRUE },
1124 {
"5, 07-01-2005 12:06:35 GMT;", &expect1,
TRUE },
1125 {
"5, 07-01-2005 12:06:35 GMT123", &expect1,
TRUE },
1131 {
"Fri Jan 7 12:06:35 2005", &expect1,
TRUE,
TRUE },
1132 {
"Fri Jan 7 12:06:35 2005 GMT", &expect1,
TRUE,
TRUE },
1133 {
"Fri Jan 7 12:06:35 2005 UTC", &expect1,
TRUE,
TRUE },
1137 ok(!
ret,
"InternetTimeToSystemTimeA succeeded.\n");
1139 ok(!
ret,
"InternetTimeToSystemTimeA succeeded.\n");
1141 ok(!
ret,
"InternetTimeToSystemTimeW succeeded.\n");
1143 ok(!
ret,
"InternetTimeToSystemTimeW succeeded.\n");
1151 ret = pInternetTimeToSystemTimeA(
test->string,
NULL, 0);
1152 ok(!
ret,
"InternetTimeToSystemTimeA succeeded.\n");
1153 ret = pInternetTimeToSystemTimeA(
test->string, &
time, 0);
1157 "Got unexpected system time.\n");
1163 ok(!
ret,
"InternetTimeToSystemTimeW succeeded.\n");
1168 "Got unexpected system time.\n");
1178 static const WCHAR dot[] = {
'.',0};
1179 static const WCHAR uk[] = {
'u',
'k',0};
1180 static const WCHAR com[] = {
'c',
'o',
'm',0};
1181 static const WCHAR dot_com[] = {
'.',
'c',
'o',
'm',0};
1182 static const WCHAR gmail_com[] = {
'g',
'm',
'a',
'i',
'l',
'.',
'c',
'o',
'm',0};
1183 static const WCHAR dot_gmail_com[] = {
'.',
'g',
'm',
'a',
'i',
'l',
'.',
'c',
'o',
'm',0};
1184 static const WCHAR www_gmail_com[] = {
'w',
'w',
'w',
'.',
'g',
'm',
'a',
'i',
'l',
'.',
'c',
'o',
'm',0};
1185 static const WCHAR www_mail_gmail_com[] = {
'w',
'w',
'w',
'.',
'm',
'a',
'i',
'l',
'.',
'g',
'm',
'a',
'i',
'l',
'.',
'c',
'o',
'm',0};
1186 static const WCHAR mail_gmail_com[] = {
'm',
'a',
'i',
'l',
'.',
'g',
'm',
'a',
'i',
'l',
'.',
'c',
'o',
'm',0};
1187 static const WCHAR gmail_co_uk[] = {
'g',
'm',
'a',
'i',
'l',
'.',
'c',
'o',
'.',
'u',
'k',0};
1188 static const WCHAR co_uk[] = {
'c',
'o',
'.',
'u',
'k',0};
1189 static const WCHAR dot_co_uk[] = {
'.',
'c',
'o',
'.',
'u',
'k',0};
1195 win_skip(
"IsDomainLegalCookieDomainW is not implemented\n");
1200 "IsDomainLegalCookieDomainW succeeded\n");
1203 ret = pIsDomainLegalCookieDomainW(com,
NULL);
1204 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1207 ret = pIsDomainLegalCookieDomainW(
NULL, gmail_com);
1208 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1211 ret = pIsDomainLegalCookieDomainW(
empty, gmail_com);
1212 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1215 ret = pIsDomainLegalCookieDomainW(com,
empty);
1216 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1219 ret = pIsDomainLegalCookieDomainW(gmail_com, dot);
1220 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1223 ret = pIsDomainLegalCookieDomainW(dot, gmail_com);
1224 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1227 ret = pIsDomainLegalCookieDomainW(com, com);
1228 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1231 ret = pIsDomainLegalCookieDomainW(com, dot_com);
1232 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1235 ret = pIsDomainLegalCookieDomainW(dot_com, com);
1236 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1239 ret = pIsDomainLegalCookieDomainW(com, gmail_com);
1240 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1242 ret = pIsDomainLegalCookieDomainW(gmail_com, gmail_com);
1243 ok(
ret,
"IsDomainLegalCookieDomainW failed\n");
1245 ret = pIsDomainLegalCookieDomainW(gmail_com, www_gmail_com);
1246 ok(
ret,
"IsDomainLegalCookieDomainW failed\n");
1248 ret = pIsDomainLegalCookieDomainW(gmail_com, www_mail_gmail_com);
1249 ok(
ret,
"IsDomainLegalCookieDomainW failed\n");
1252 ret = pIsDomainLegalCookieDomainW(gmail_co_uk, co_uk);
1253 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1255 ret = pIsDomainLegalCookieDomainW(
uk, co_uk);
1256 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1258 ret = pIsDomainLegalCookieDomainW(gmail_co_uk, dot_co_uk);
1259 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1261 ret = pIsDomainLegalCookieDomainW(co_uk, gmail_co_uk);
1264 ret = pIsDomainLegalCookieDomainW(gmail_co_uk, gmail_co_uk);
1265 ok(
ret,
"IsDomainLegalCookieDomainW failed\n");
1267 ret = pIsDomainLegalCookieDomainW(gmail_com, com);
1268 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1271 ret = pIsDomainLegalCookieDomainW(dot_gmail_com, mail_gmail_com);
1272 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1274 ret = pIsDomainLegalCookieDomainW(gmail_com, mail_gmail_com);
1275 ok(
ret,
"IsDomainLegalCookieDomainW failed\n");
1277 ret = pIsDomainLegalCookieDomainW(mail_gmail_com, gmail_com);
1278 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1280 ret = pIsDomainLegalCookieDomainW(mail_gmail_com, com);
1281 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1283 ret = pIsDomainLegalCookieDomainW(dot_gmail_com, mail_gmail_com);
1284 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1286 ret = pIsDomainLegalCookieDomainW(mail_gmail_com, dot_gmail_com);
1287 ok(!
ret,
"IsDomainLegalCookieDomainW succeeded\n");
1298 ok(
ret == 0,
"expected ret == 0, got %lu\n",
ret);
1302 ok(
ret == 0,
"expected ret == 0, got %lu\n",
ret);
1304 trace(
"template %lu\n", old_template);
1308 ret = pPrivacyGetZonePreferenceW(
zone,
type, &old_template, pref, &pref_size);
1309 ok(
ret == 0,
"expected ret == 0, got %lu\n",
ret);
1314 ok(
ret == 0,
"expected ret == 0, got %lu\n",
ret);
1318 ok(
ret == 0,
"expected ret == 0, got %lu\n",
ret);
1319 ok(
template == 5,
"expected template == 5, got %lu\n",
template);
1322 ret = pPrivacySetZonePreferenceW(
zone,
type, old_template, pref_size ? pref :
NULL);
1323 ok(
ret == 0,
"expected ret == 0, got %lu\n",
ret);
1336 ok(con != 0,
"InternetConnect failed: 0x%08lx\n",
GetLastError());
1338 ok(req != 0,
"HttpOpenRequest failed: 0x%08lx\n",
GetLastError());
1343 ok(
ret ==
FALSE,
"InternetSetOption should've failed\n");
1345 "given ERROR_INVALID_PARAMETER, gave: 0x%08lx\n",
GetLastError());
1349 ok(
ret ==
FALSE,
"InternetQueryOption should've failed\n");
1351 "given ERROR_INVALID_PARAMETER, gave: 0x%08lx\n",
GetLastError());
1355 size =
sizeof(ulArg);
1357 ok(
ret ==
FALSE,
"InternetQueryOption should've failed\n");
1363 ok(
ret ==
FALSE,
"InternetSetOption should've failed\n");
1369 ok(
ret ==
FALSE,
"InternetSetOption should've failed\n");
1374 ok(
ret ==
TRUE,
"InternetSetOption should've succeeded\n");
1379 ok(
ret ==
FALSE,
"InternetSetOption should've failed\n");
1385 ok(
ret ==
FALSE,
"InternetSetOption should've failed\n");
1389 ok(
ret ==
TRUE,
"InternetSetOption should've succeeded\n");
1392 ok(
ret ==
TRUE,
"InternetSetOption should've succeeded\n");
1395 ok(
ret ==
TRUE,
"InternetSetOption should've succeeded\n");
1398 ok(
ret ==
TRUE,
"InternetSetOption should've succeeded\n");
1402 ok(
ret ==
FALSE,
"InternetSetOption should've failed\n");
1407 ok(
ret ==
FALSE,
"InternetSetOption should've failed\n");
1424 ok(
ret ==
TRUE,
"InternetSetCookie failed\n");
1428 ok(
ret ==
TRUE,
"InternetGetCookie failed\n");
1429 ok(
len != 0,
"len = 0\n");
1432 ok(
ret,
"InternetSetOption(INTERNET_OPTION_END_BROWSER_SESSION) failed: %lu\n",
GetLastError());
1446 static WCHAR proxy_srvW[] =
L"proxy.example";
1453 list.dwOptionCount = 2;
1454 list.pOptions = orig_settings;
1459 ok(
ret,
"InternetQueryOption should've succeeded\n");
1464 options[0].Value.pszValue = proxy_srvW;
1469 ok(
ret,
"InternetSetOption should've succeeded\n");
1476 ok(
ret,
"InternetQueryOption should've succeeded\n");
1478 "Retrieved proxy server should've been %s, was: %s\n",
1481 "Retrieved flags should've been PROXY_TYPE_PROXY, was: %ld\n",
1490 ok(
ret,
"InternetQueryOption should've succeeded\n");
1492 "Retrieved proxy server should've been %s, was: %s\n",
1496 list.dwOptionCount = 1;
1501 ok(
ret,
"InternetSetOption should've succeeded\n");
1507 ok(
ret,
"InternetQueryOption should've succeeded\n");
1509 "Retrieved flags should've been PROXY_TYPE_DIRECT, was: %ld\n",
1517 ok(
ret,
"InternetSetOption should've succeeded\n");
1523 ok(
ret,
"InternetQueryOption should've succeeded\n");
1525 "Retrieved flags should've been PROXY_TYPE_DIRECT, was: %ld\n",
1529 list.dwOptionCount = 2;
1530 list.pOptions = orig_settings;
1533 ok(
ret,
"InternetSetOption should've succeeded\n");
1545 char proxy_srv[] =
"proxy.example";
1552 list.dwOptionCount = 2;
1553 list.pOptions = orig_settings;
1559 ok(
ret,
"InternetQueryOption should've succeeded\n");
1564 options[0].Value.pszValue = proxy_srv;
1570 ok(
ret,
"InternetSetOption should've succeeded\n");
1578 ok(
ret,
"InternetQueryOption should've succeeded\n");
1580 "Retrieved proxy server should've been \"%s\", was: \"%s\"\n",
1581 proxy_srv,
options[0].Value.pszValue);
1583 "Retrieved flags should've been PROXY_TYPE_PROXY, was: %ld\n",
1589 list.dwOptionCount = 1;
1594 ok(
ret,
"InternetSetOption should've succeeded\n");
1597 options[0].Value.dwValue = 0xdeadbeef;
1600 ok(
ret,
"InternetQueryOption should've succeeded\n");
1602 "Retrieved proxy server should've been NULL, was: \"%s\"\n",
1606 list.dwOptionCount = 2;
1607 list.pOptions = orig_settings;
1610 ok(
ret,
"InternetSetOption should've succeeded\n");
1616#define FLAG_NEEDREQ 0x1
1617#define FLAG_UNIMPL 0x2
1625 static const struct {
1658 ok(con != 0,
"InternetConnect failed: 0x%08lx\n",
GetLastError());
1660 ok(req != 0,
"HttpOpenRequest failed: 0x%08lx\n",
GetLastError());
1673 test_flags = no_ui_res[
j].test_flags;
1675 expected2 = no_ui_res[
j].res;
1683 ok(test_flags &
FLAG_UNIMPL,
"%li is unexpectedly unimplemented.\n",
i);
1701 broken2 = expected2;
1737 "Got %ld, expected %ld (%ld)\n",
res, expected2,
i);
1751 "Got %ld, expected %ld (%ld)\n",
res, expected2,
i);
1774 if(!pInternetGetConnectedStateExA) {
1775 win_skip(
"InternetGetConnectedStateExA is not supported\n");
1785 win_skip(
"InternetGetConnectedStateExA tests require a valid connection\n");
1789 res = pInternetGetConnectedStateExA(
NULL,
NULL, 0, 0);
1793 res = pInternetGetConnectedStateExA(&
flags,
NULL, 0, 0);
1810 ok(
flags,
"Expected at least one flag set\n");
1816 ok(
buffer[0],
"Expected a connection name\n");
1822 ok(
flags,
"Expected at least one flag set\n");
1823 ok(
buffer[0],
"Expected a connection name\n");
1829 ok(
flags,
"Expected at least one flag set\n");
1837 ok(
flags,
"Expected at least one flag set\n");
1845 ok(
flags,
"Expected at least one flag set\n");
1853 ok(
flags,
"Expected at least one flag set\n");
1861 ok(
flags,
"Expected at least one flag set\n");
1871 if(!pInternetGetConnectedStateExW) {
1872 win_skip(
"InternetGetConnectedStateExW is not supported\n");
1887 skip(
"InternetGetConnectedStateExW tests require a valid connection\n");
1891 res = pInternetGetConnectedStateExW(
NULL,
NULL, 0, 0);
1895 res = pInternetGetConnectedStateExW(
NULL,
NULL, 0, 1);
1900 res = pInternetGetConnectedStateExW(&
flags,
NULL, 0, 0);
1917 ok(
flags,
"Expected at least one flag set\n");
1923 ok(
buffer[0],
"Expected a connection name\n");
1929 ok(
flags,
"Expected at least one flag set\n");
1930 ok(
buffer[0],
"Expected a connection name\n");
1936 ok(
flags,
"Expected at least one flag set\n");
1944 ok(
flags,
"Expected at least one flag set\n");
1955 ok(
flags,
"Expected at least one flag set\n");
1966 ok(
flags,
"Expected at least one flag set\n");
1977 ok(
flags,
"Expected at least one flag set\n");
1989 ok(
ret == 0,
"FormatMessageA returned %ld\n",
ret);
1993 ok(
ret != 0,
"FormatMessageA returned %ld\n",
ret);
1997 ok(
ret != 0,
"FormatMessageA returned %ld\n",
ret);
2001 ok(
ret != 0,
"FormatMessageA returned %ld\n",
ret);
2005 ok(
ret != 0,
"FormatMessageA returned %ld\n",
ret);
2009 ok(
ret != 0,
"FormatMessageA returned %ld\n",
ret);
2017 ok(
ret != 0,
"FormatMessageA returned %ld\n",
ret);
2021 ok(
ret != 0,
"FormatMessageA returned %ld\n",
ret);
2025 ok(
ret != 0,
"FormatMessageA returned %ld\n",
ret);
2029 ok(
ret != 0,
"FormatMessageA returned %ld\n",
ret);
2033 ok(
ret != 0,
"FormatMessageA returned %ld\n",
ret);
2037 ok(
ret != 0,
"FormatMessageA returned %ld\n",
ret);
2049 pInternetTimeFromSystemTimeA = (
void*)
GetProcAddress(
hdll,
"InternetTimeFromSystemTimeA");
2050 pInternetTimeFromSystemTimeW = (
void*)
GetProcAddress(
hdll,
"InternetTimeFromSystemTimeW");
2051 pInternetTimeToSystemTimeA = (
void*)
GetProcAddress(
hdll,
"InternetTimeToSystemTimeA");
2052 pInternetTimeToSystemTimeW = (
void*)
GetProcAddress(
hdll,
"InternetTimeToSystemTimeW");
2054 pPrivacyGetZonePreferenceW = (
void*)
GetProcAddress(
hdll,
"PrivacyGetZonePreferenceW");
2055 pPrivacySetZonePreferenceW = (
void*)
GetProcAddress(
hdll,
"PrivacySetZonePreferenceW");
2058 pInternetGetConnectedStateExA = (
void*)
GetProcAddress(
hdll,
"InternetGetConnectedStateExA");
2059 pInternetGetConnectedStateExW = (
void*)
GetProcAddress(
hdll,
"InternetGetConnectedStateExW");
2061 if(!pInternetGetCookieExW) {
2062 win_skip(
"Too old IE (older than 6.0)\n");
2081 if (!pInternetTimeFromSystemTimeA)
2082 win_skip(
"skipping the InternetTime tests\n");
2089 if (pIsDomainLegalCookieDomainW &&
2090 ((
void*)pIsDomainLegalCookieDomainW == (
void*)pCreateUrlCacheContainerA ||
2091 (
void*)pIsDomainLegalCookieDomainW == (
void*)pCreateUrlCacheContainerW))
2092 win_skip(
"IsDomainLegalCookieDomainW is not available on systems with IE5\n");
2093 else if (!pIsDomainLegalCookieDomainW)
2094 win_skip(
"IsDomainLegalCookieDomainW (or ordinal 117) is not available\n");
2098 if (pPrivacyGetZonePreferenceW && pPrivacySetZonePreferenceW)
2101 win_skip(
"Privacy[SG]etZonePreferenceW are not available\n");
#define ERROR_INSUFFICIENT_BUFFER
static const WCHAR empty[1]
#define ERROR_CALL_NOT_IMPLEMENTED
#define ERROR_INVALID_PARAMETER
#define GetProcAddress(x, y)
#define ERROR_NO_MORE_ITEMS
#define ERROR_NOT_SUPPORTED
#define HeapFree(x, y, z)
#define ERROR_INVALID_HANDLE
#define MultiByteToWideChar
static const WCHAR version[]
static const WCHAR szEmpty[]
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
int WINAPI lstrcmpA(LPCSTR str1, LPCSTR str2)
_ACRTIMP int __cdecl memcmp(const void *, const void *, size_t)
_ACRTIMP size_t __cdecl strlen(const char *)
_ACRTIMP char *__cdecl strstr(const char *, const char *)
_ACRTIMP int __cdecl strcmp(const char *, const char *)
static wchar_t *__cdecl wmemset(wchar_t *s, wchar_t c, size_t n)
DWORD WINAPI InternetErrorDlg(HWND hWnd, HINTERNET hRequest, DWORD dwError, DWORD dwFlags, LPVOID *lppvData)
HINTERNET WINAPI HttpOpenRequestA(HINTERNET hHttpSession, LPCSTR lpszVerb, LPCSTR lpszObjectName, LPCSTR lpszVersion, LPCSTR lpszReferrer, LPCSTR *lpszAcceptTypes, DWORD dwFlags, DWORD_PTR dwContext)
BOOL WINAPI InternetQueryOptionW(HINTERNET hInternet, DWORD dwOption, LPVOID lpBuffer, LPDWORD lpdwBufferLength)
BOOL WINAPI InternetQueryOptionA(HINTERNET hInternet, DWORD dwOption, LPVOID lpBuffer, LPDWORD lpdwBufferLength)
BOOL WINAPI InternetCanonicalizeUrlA(LPCSTR lpszUrl, LPSTR lpszBuffer, LPDWORD lpdwBufferLength, DWORD dwFlags)
BOOL WINAPI DetectAutoProxyUrl(LPSTR lpszAutoProxyUrl, DWORD dwAutoProxyUrlLength, DWORD dwDetectFlags)
HINTERNET WINAPI InternetOpenA(LPCSTR lpszAgent, DWORD dwAccessType, LPCSTR lpszProxy, LPCSTR lpszProxyBypass, DWORD dwFlags)
HINTERNET WINAPI InternetOpenUrlW(HINTERNET hInternet, LPCWSTR lpszUrl, LPCWSTR lpszHeaders, DWORD dwHeadersLength, DWORD dwFlags, DWORD_PTR dwContext)
BOOL WINAPI InternetSetOptionA(HINTERNET hInternet, DWORD dwOption, LPVOID lpBuffer, DWORD dwBufferLength)
BOOL WINAPI InternetCloseHandle(HINTERNET hInternet)
HINTERNET WINAPI InternetConnectA(HINTERNET hInternet, LPCSTR lpszServerName, INTERNET_PORT nServerPort, LPCSTR lpszUserName, LPCSTR lpszPassword, DWORD dwService, DWORD dwFlags, DWORD_PTR dwContext)
HINTERNET WINAPI InternetConnectW(HINTERNET hInternet, LPCWSTR lpszServerName, INTERNET_PORT nServerPort, LPCWSTR lpszUserName, LPCWSTR lpszPassword, DWORD dwService, DWORD dwFlags, DWORD_PTR dwContext)
HINTERNET WINAPI InternetOpenW(LPCWSTR lpszAgent, DWORD dwAccessType, LPCWSTR lpszProxy, LPCWSTR lpszProxyBypass, DWORD dwFlags)
BOOL WINAPI InternetSetOptionW(HINTERNET hInternet, DWORD dwOption, LPVOID lpBuffer, DWORD dwBufferLength)
GLuint GLuint GLsizei GLenum type
GLdouble GLdouble GLdouble r
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint GLint GLint j
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
BOOL WINAPI HeapValidate(HANDLE hHeap, DWORD dwFlags, LPCVOID lpMem)
#define todo_wine_if(is_todo)
void __cdecl void __cdecl void __cdecl void __cdecl void __cdecl void winetest_pop_context(void)
void __cdecl void __cdecl void __cdecl void __cdecl void __cdecl winetest_push_context(const char *fmt,...) __WINE_PRINTF_ATTR(1
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
#define expect2(expected1, expected2, got1, got2)
static PROCESS_INFORMATION pi
static void test_PrivacyGetSetZonePreferenceW(void)
static void test_Option_PerConnectionOption(void)
static void test_IsDomainLegalCookieDomainW(void)
static void test_get_cookie(void)
static void test_InternetQueryOptionA(void)
static void test_cookie_url(void)
static void test_InternetErrorDlg(void)
static void test_InternetCanonicalizeUrlA(void)
static void test_max_conns(void)
static void test_InternetSetOption(void)
static void test_InternetGetConnectedStateExA(void)
static void test_Option_PerConnectionOptionA(void)
static void test_InternetTimeToSystemTime(void)
static void test_end_browser_session(void)
static void test_InternetGetConnectedStateExW(void)
static void test_cookie_attrs(void)
static void test_complicated_cookie(void)
static void test_null(void)
static void InternetTimeFromSystemTimeW_test(void)
#define ERROR_WINHTTP_AUTODETECTION_FAILED
static void test_version(void)
static void test_format_message(HMODULE hdll)
static void InternetTimeFromSystemTimeA_test(void)
static const WCHAR about_blankW[]
HWND WINAPI GetDesktopWindow(void)
int int static __inline const char * wine_dbgstr_a(const char *s)
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _Out_opt_ PUSHORT _Inout_opt_ PUNICODE_STRING Value
DWORD WINAPI GetLastError(void)
#define FORMAT_MESSAGE_FROM_SYSTEM
#define FORMAT_MESSAGE_FROM_HMODULE
#define ERROR_INVALID_OPERATION
#define ERROR_BAD_ARGUMENTS
#define INTERNET_DEFAULT_HTTP_PORT
BOOL WINAPI InternetGetCookieA(const char *url, const char *name, char *data, DWORD *size)
BOOL WINAPI InternetSetCookieA(LPCSTR lpszUrl, LPCSTR lpszCookieName, LPCSTR lpCookieData)
DWORD WINAPI InternetSetCookieExA(LPCSTR lpszURL, LPCSTR lpszCookieName, LPCSTR lpszCookieData, DWORD dwFlags, DWORD_PTR dwReserved)
BOOL WINAPI InternetGetCookieW(const WCHAR *url, const WCHAR *name, WCHAR *data, DWORD *size)
BOOL WINAPI InternetSetCookieW(const WCHAR *url, const WCHAR *name, const WCHAR *data)
BOOL WINAPI InternetGetCookieExA(LPCSTR lpszUrl, LPCSTR lpszCookieName, LPSTR lpCookieData, LPDWORD lpdwSize, DWORD flags, void *reserved)
#define INTERNET_OPTION_CONNECTED_STATE
#define INTERNET_CONNECTION_MODEM
#define ERROR_INTERNET_SEC_CERT_CN_INVALID
#define INTERNET_ERROR_BASE
#define ERROR_INTERNET_INVALID_URL
#define INTERNET_PER_CONN_FLAGS
#define ERROR_INTERNET_OPERATION_CANCELLED
#define ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR
#define FLAGS_ERROR_UI_FILTER_FOR_ERRORS
#define INTERNET_OPTION_DATA_SEND_TIMEOUT
#define INTERNET_RFC1123_FORMAT
#define ERROR_INTERNET_NEED_UI
#define INTERNET_OPTION_USER_AGENT
#define INTERNET_SERVICE_FTP
#define ERROR_INTERNET_ITEM_NOT_FOUND
#define PROXY_TYPE_DIRECT
#define ERROR_INTERNET_TIMEOUT
#define ERROR_INTERNET_INSERT_CDROM
#define ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT
struct _INTERNET_PER_CONN_OPTION_LISTW INTERNET_PER_CONN_OPTION_LISTW
#define INTERNET_OPTION_CONNECT_TIMEOUT
#define ERROR_INTERNET_CONNECTION_ABORTED
#define ERROR_INTERNET_INVALID_CA
#define ERROR_INTERNET_INCORRECT_PASSWORD
#define INTERNET_CONNECTION_LAN
#define ERROR_INTERNET_SEC_CERT_DATE_INVALID
#define ERROR_INTERNET_CHG_POST_IS_NON_SECURE
#define INTERNET_CONNECTION_CONFIGURED
#define INTERNET_OPEN_TYPE_DIRECT
#define INTERNET_PER_CONN_PROXY_SERVER
#define INTERNET_OPTION_DATA_RECEIVE_TIMEOUT
#define INTERNET_OPTION_MAX_CONNS_PER_SERVER
#define ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED
#define ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION
#define INTERNET_OPTION_PROXY
#define INTERNET_RFC1123_BUFSIZE
#define FLAGS_ERROR_UI_FLAGS_NO_UI
#define ERROR_INTERNET_INVALID_OPERATION
#define INTERNET_OPTION_PER_CONNECTION_OPTION
#define ERROR_HTTP_COOKIE_DECLINED
#define ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION
#define PROXY_AUTO_DETECT_TYPE_DHCP
#define ERROR_INTERNET_MIXED_SECURITY
#define INTERNET_OPTION_SEND_TIMEOUT
#define INTERNET_OPTION_VERSION
#define ERROR_INTERNET_SEC_CERT_WEAK_SIGNATURE
#define INTERNET_OPTION_RECEIVE_TIMEOUT
#define INTERNET_OPTION_ERROR_MASK
#define ERROR_INTERNET_INVALID_OPTION
#define INTERNET_RAS_INSTALLED
#define ERROR_INTERNET_CANNOT_CONNECT
#define INTERNET_COOKIE_HTTPONLY
#define INTERNET_OPTION_POLICY
#define ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR
#define ERROR_INTERNET_NAME_NOT_RESOLVED
#define INTERNET_ERROR_LAST
#define ERROR_INTERNET_POST_IS_NON_SECURE
#define ERROR_INTERNET_SEC_CERT_REV_FAILED
#define PRIVACY_TEMPLATE_ADVANCED
#define ERROR_INTERNET_INCORRECT_HANDLE_TYPE
#define INTERNET_OPTION_REFRESH
#define ERROR_INTERNET_BAD_OPTION_LENGTH
#define ERROR_INTERNET_SEC_CERT_REVOKED
#define ERROR_INTERNET_SEC_CERT_ERRORS
#define ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT
struct _INTERNET_PER_CONN_OPTION_LISTA INTERNET_PER_CONN_OPTION_LISTA
#define ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR
#define INTERNET_OPTION_SETTINGS_CHANGED
#define INTERNET_OPTION_MAX_CONNS_PER_1_0_SERVER
#define ERROR_INTERNET_UNRECOGNIZED_SCHEME
#define INTERNET_OPTION_END_BROWSER_SESSION
#define ERROR_INTERNET_INTERNAL_ERROR
#define INTERNET_SERVICE_HTTP
#define INTERNET_OPTION_REQUEST_FLAGS
#define PROXY_AUTO_DETECT_TYPE_DNS_A
#define ERROR_INTERNET_PROXY_ALERT