Hello, I am a newbee on WinCE and on ISAPI. I have managed to create an ISAPI dll that dynamically generated html pages and sends them to the client.
When I put an <img> tag in my html, I notice that an additional call to HttpExtensionProc is made with the image (file)name in the lpszPathInfo member of the EXTENSION_CONTROL_BLOCK struct.
My problem is, that I can't find out how to send the image data. My attempts until now fail.
An excerpt of my code (taken from my HttpExtensionProc implementation):
However, under IIS5 this value [in my code, the dwBytesRead variable. RV] does not always return the bytes written. It returns 0 and an error code of 10054 - even though the data gets written out to the Response stream just fine. I also remember in the past that I was told (I think by Wade Hilmo) that the result value from WriteClient() is unreliable and can indicate failure when the call actually worked - this was a big thing in IIS 4 and caused me to ignore any errors which hasn't been a problem.
This might be unrelated to WinCE though. But the similar error code triggers me.
In the end, my browser still does not display an image...
BTW - sorry for the ommision of CODE tags in my initial message.
Bookmarks