Newsgroups : Microsoft : microsoft.public.inetsdk.programming.wininet : 2006 Nov : How to determine data Size Read by an Asynchronous InternetReadFile?
| Subject: | How to determine data Size Read by an Asynchronous InternetReadFile? |
| Posted by: | "hereafter" (lllevel..@msn.com) |
| Date: | Thu, 9 Nov 2006 16:09:54 |
there is a file with size about 100 bytes on server,
i try to download it using an Asynchronous
call
DWORD aFileSizeToRead=200;//try to read 200 Bytes
BOOL bRet=InternetReadFile(hInetFile,
&pBuffer[0], aFileSizeToRead, &aFileSizeRead);
bRet is false, and last error is IO_PENDING
so i wait for the request complete notification,
and it does arrive , however,how can i determine at this stage
the data size read from InternetReadFile?
Many Thanks =P