Feb 3, 2011 at 4:54 AM

I found that the flag passed to the dwFlags parameter of the InternetOpen function, INTERNET_FLAG_SYNC, works without problems on one machine running XP SP2, but caused another machine running Server 2003 R2 to throw an error with the message "The parameter is incorrect". Stack trace showed that it was being thrown by the InternetOpen function, and when I looked up the documentation on MSDN, there was no mention of an INTERNET_FLAG_SYNC macro. I recompiled the dll with dwFlags set to 0 and it worked perfectly. Do you know what could be causing this?