Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.1 KiB

  1. /*****************************************************************************\
  2. FILE: inetutil.h
  3. DESCRIPTION:
  4. These are wininet wrappers that fix the error values and wrap functionality.
  5. BryanSt 10/12/2000
  6. Copyright (C) Microsoft Corp 2000-2000. All rights reserved.
  7. \*****************************************************************************/
  8. #ifndef _INETUTIL_H
  9. #define _INETUTIL_H
  10. ////////////////////////////////
  11. // Wininet/URL Helpers
  12. ////////////////////////////////
  13. STDAPI DownloadUrl(LPCTSTR pszUrl, BSTR * pbstrXML);
  14. STDAPI InternetOpenUrlWrap(HINTERNET hInternet, LPCTSTR pszUrl, LPCTSTR pszHeaders, DWORD dwHeadersLength, DWORD dwFlags, DWORD_PTR dwContext, HINTERNET * phFileHandle);
  15. STDAPI InternetOpenWrap(LPCTSTR pszAgent, DWORD dwAccessType, LPCTSTR pszProxy, LPCTSTR pszProxyBypass, DWORD dwFlags, HINTERNET * phFileHandle);
  16. STDAPI InternetReadIntoBSTR(HINTERNET hInternetRead, OUT BSTR * pbstrXML);
  17. STDAPI InternetReadFileWrap(HINTERNET hFile, LPVOID pvBuffer, DWORD dwNumberOfBytesToRead, LPDWORD pdwNumberOfBytesRead);
  18. #endif // _INETUTIL_H