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.

59 lines
1.2 KiB

  1. /********************************************************************
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. dlcache.h
  5. Revision History:
  6. DerekM created 11/26/01
  7. ********************************************************************/
  8. #ifndef DLCACHE_H
  9. #define DLCACHE_H
  10. #if defined(UNICODE)
  11. #include <tchar.h>
  12. #include <dllite.h>
  13. const DWORD c_dwProxyCacheTimeLimit = 60 * 60 * 1000; // 1h
  14. struct SWUDLProxyCacheObj
  15. {
  16. LPWSTR wszSrv;
  17. LPWSTR wszProxy;
  18. LPWSTR wszBypass;
  19. DWORD dwAccessType;
  20. DWORD cbProxy;
  21. DWORD cbBypass;
  22. DWORD dwLastCacheTime;
  23. DWORD iLastKnownGood;
  24. SWUDLProxyCacheObj *pNext;
  25. };
  26. class CWUDLProxyCache
  27. {
  28. private:
  29. SWUDLProxyCacheObj *m_rgpObj;
  30. SWUDLProxyCacheObj *internalFind(LPCWSTR wszSrv);
  31. public:
  32. CWUDLProxyCache();
  33. ~CWUDLProxyCache();
  34. BOOL Set(LPCWSTR wszSrv, LPCWSTR wszProxy, LPCWSTR wszBypass,
  35. DWORD dwAccessType);
  36. BOOL Find(LPCWSTR wszSrv, LPWSTR *pwszProxy, LPWSTR *pwszBypass,
  37. DWORD *pdwAccessType);
  38. BOOL SetLastGoodProxy(LPCWSTR wszSrv, DWORD iProxy);
  39. BOOL GetLastGoodProxy(LPCWSTR wszSrv, SAUProxySettings *paups);
  40. BOOL Empty(void);
  41. };
  42. #endif
  43. #endif