method007 wrote:could u just show me how
Googling: MSDN InternetReadFile
produced hits where the second one listed is titled "Building an Internet Browser Using the Win32 Internet Functions". The following sample code is contained in that article which you could have easily found for yourself.
HINTERNET hNet = ::InternetOpen("MSDN SurfBear",
HINTERNET hUrlFile = ::InternetOpenUrl(hNet,
char buffer[10*1024] ;
DWORD dwBytesRead = 0;
BOOL bRead = ::InternetReadFile(hUrlFile,
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?"
Colin Angus Mackay in the C# forum