implement InternetReadFile wrapper