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.

36 lines
1.2 KiB

  1. #ifndef DLLITE_H
  2. #define DLLITE_H
  3. // if a new dll is added here or the values are changed, be sure to change the
  4. // c_cchFilePathBuffer value below to match
  5. const TCHAR c_szWinHttpDll[] = _T("winhttp.dll");
  6. const TCHAR c_szWinInetDll[] = _T("wininet.dll");
  7. // this value is comprised of the size (in TCHARS) of the largest dll above +
  8. // the size of a backslash + the size of the null termiantor
  9. const DWORD c_cchFilePathBuffer = (sizeof(c_szWinHttpDll) / sizeof(TCHAR)) + 1 + 1;
  10. typedef struct tagSAUProxySettings
  11. {
  12. LPWSTR wszProxyOrig;
  13. LPWSTR wszBypass;
  14. DWORD dwAccessType;
  15. LPWSTR *rgwszProxies;
  16. DWORD cProxies;
  17. DWORD iProxy;
  18. } SAUProxySettings;
  19. HRESULT DownloadFileLite(LPCTSTR pszDownloadUrl,
  20. LPCTSTR pszLocalFile,
  21. HANDLE hQuitEvent,
  22. DWORD dwFlags);
  23. HRESULT GetAUProxySettings(LPCWSTR wszUrl, SAUProxySettings *paups);
  24. HRESULT FreeAUProxySettings(SAUProxySettings *paups);
  25. HRESULT CleanupDownloadLib(void);
  26. DWORD GetAllowedDownloadTransport(DWORD dwInitialFlags);
  27. BOOL HandleEvents(HANDLE *phEvents, UINT nEventCount);
  28. #endif