Hi, This small patch provides a simple implementation of InternetAutodial. On windows this function is used to dial out to the internet using the default internet connection. We don't want Wine to really dial out so we only return TRUE. Not sure how the less hacky function needs to be implemented. Likely we need to check somehow if we are connected. (pinging? but to what host?) Roderick Colenbrander license: X11
Index: dlls/wininet/internet.c =================================================================== RCS file: /home/wine/wine/dlls/wininet/internet.c,v retrieving revision 1.36 diff -u -r1.36 internet.c --- dlls/wininet/internet.c 19 Jul 2002 03:12:18 -0000 1.36 +++ dlls/wininet/internet.c 21 Jul 2002 09:05:01 -0000 @@ -1776,3 +1776,25 @@ FIXME("STUB\n"); return FALSE; } + + +/*********************************************************************** + * InternetAutoDial + * + * On windows this function is supposed to dial the default internet + * connection. We don't want to have Wine dial out to the internet so + * we return TRUE by default. It might be nice to check if we are connected. + * + * RETURNS + * TRUE on success + * FALSE on failure + * + */ + +BOOL InternetAutoDial(DWORD dwFlags, HWND hwndParent) +{ + FIXME("STUB\n"); + + /* Tell that we are connected to the internet. */ + return TRUE; +} Index: dlls/wininet/wininet.spec =================================================================== RCS file: /home/wine/wine/dlls/wininet/wininet.spec,v retrieving revision 1.21 diff -u -r1.21 wininet.spec --- dlls/wininet/wininet.spec 21 Jun 2002 23:59:49 -0000 1.21 +++ dlls/wininet/wininet.spec 21 Jul 2002 09:05:01 -0000 @@ -81,7 +81,7 @@ @ stub HttpSendRequestW @ stub IncrementUrlCacheHeaderData @ stdcall InternetAttemptConnect(long) InternetAttemptConnect -@ stub InternetAutodial +@ stdcall InternetAutodial(long ptr) InternetAutoDial @ stub InternetAutodialCallback @ stub InternetAutodialHangup @ stdcall InternetCanonicalizeUrlA(str str ptr long) InternetCanonicalizeUrlA