Using WinInet Asynchrousnly is a PITA. Use 0 instead INTERNET_FLAG_ASYNC in the InternetOpen Calll and that should fix the problem.


HINTERNET hInternet = InternetOpen(L"FreeSpeech" ,...