WinINet API: InternetConnect - Gibt NICHT NULL zurück?
-
Hi,
ich verstehe die Funktion InternetConnect nicht. Sollte sie in diesem Fall nicht NULL zurückgeben?
// ... if(!(hConnection = InternetConnect(hSession, "gibtesnicht", 8121, 0, 0, INTERNET_SERVICE_HTTP, 0, 1))) return 1; // ...Danke!

-
Oh man ey, lies doch mal die MSDN! Tomaten auf den Augen!? Da steht unübersehbar:
For FTP sites, InternetConnect actually establishes a connection with the server; for others, the actual connection is not established until the application requests a specific transaction.
-
Ey, danke, ey.
-
Ey lol, Alter.