I'm trying to figure this out but anything I do gives me errors

Code:
		hINet = InternetOpen("InetURL/1.0", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, 0 );
		hConnection = InternetConnect( hINet, "www.com", 80, " "," ", INTERNET_SERVICE_HTTP, 0, 0 );
Some websites tell me to use some query api to load the sourcecode into a variable but it is some strange packet request.

If anybody has any advice or just a direction to point me in, it will be welcomed greatly