In a program I am making I decided to use the wininet library. So I linked it and got everything set up. Then I tried to connect to google using InternetConnect. I know I saw something on MSDN that says if you use the user part blank it will return an error if you are using the HTTP protocol, which I am. Here is the parameters I passed to InternetConnect:
The two NULL parameters after INTERNET_DEFAULT_HTTP_PORT are the user and password. I did try plugging "guest" into those but still failed. By failing I don't mean not compiling I mean returning a NULL handle. Is there a certain thing I need to send as user or am I doing something wrong? Thanks.Code:InternetConnect(NULL,"www.google.com",INTERNET_DEFAULT_HTTP_PORT,NULL,NULL,INTERNET_SERVICE_HTTP,0,0);