There are plenty of examples for using WinInet in async mode on this
newsgroup, MSDN, platform SDK samples, etc. I have found that in practice,
the MSDN samples leave a lot to desire, but you can build and run them to
see async mode in action.
For a tutorial, you could start with this:
"Calling Win32 Internet Functions Asynchronously"
http://msdn.microsoft.com/workshop/networking/wininet/tutorials/implement_as
ync.asp
I do not agree with your statement that only InternetReadFile() and
InternetQueryDataAvailable are async. I believe you have in fact observed
asynchronous behavior yourself when you call HttpSendRequest.
Your question regarding ERROR_IO_PENDING sounds familiar, though I have not
seen it myself in this context.
Perhaps you could post a snippet of your code that demonstrates how you are
using the WinInet API for us to review.
Art
"a" <a@a.a> wrote in message news:3A70ABF8.61FE852@a.a...
In your case the event is "60: Handle created".
Please have a look at my article on codeproject "async wininet".
--
+ + + + + + + + + + + + + + + + + + + + + +
Mr Ben http://softbird.free.fr
+ + + + + + + + + + + + + + + + + + + + + +
"Art Gorr" <ag...@lanovation.com> wrote in message news:8P7c6.886$9q6.1...@newshog.newsread.com...
Thanks
Skip Williams
"SoftLion" <nos...@replyToGroup.com> wrote in message
news:OyKyxe4hAHA.1700@tkmsftngp04...
I just want to say that on MS documentation in the msdn library online it says
that only InternetReadFile() and InternetQueryDataAvailble() can be run in async
mode; the weird things is that it gives you the required Windows CE version;
don't know what the hell they are doing.
other thing is I found out that on my pc at home using InternetOpenUrl() async
is ok, but at work it doesn't, so now I have to debug....
damn microsoft with their crap
btw, did anybody have problems with the proxy settings not being used ?
The application that I wrote uses the INTERNET_OPEN_TYPE_PRECONFIG in
InternetOpen, but still a person has reported to me that he is behind a firewall
and the application did not connect at all. isn't the flag supposed to take care
of everything?
anyhow, to check the program go to http://www.planetcyclone.com