http://bugs.winehq.org/show_bug.cgi?id=5800
------- Additional Comments From saulius.krasuckas@elst.vtu.lt 2006-04-08 00:34 ------- Well, querying gw addr from an OS and pinging it probably would allow Wine to avoid some timeouts when a gw is unreachable in some boxes / local IP packet filter configuration cases.
But as InternetOpenConnection() requires a "pointer to a string containing the URL to use to check the connection", I agree with Mike on a use of InternetOpenConnection() to achieve that.
The only interesting question here is what HTTP server and what its URL should Wine check when user provides NULL string here. MSDN talks about internal DB of nearest servers. Maybe Wine should try it's very own list, eg: http://www.winehq.org/, http://source.winehq.org/ and maybe http://www.kernel.org/. In a case Wine and Linux projects get dead along with their webservers, this function will stop working too. Which IMHO is unlikely to happen by a natural reasons in nearest ten years :)