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

/********************************************************************
Copyright (c) 2001 Microsoft Corporation
Module Name:
dlcache.h
Revision History:
DerekM created 11/26/01
********************************************************************/
#ifndef DLCACHE_H
#define DLCACHE_H
#if defined(UNICODE)
#include <tchar.h>
#include <dllite.h>
const DWORD c_dwProxyCacheTimeLimit = 60 * 60 * 1000; // 1h
struct SWUDLProxyCacheObj
{
LPWSTR wszSrv;
LPWSTR wszProxy;
LPWSTR wszBypass;
DWORD dwAccessType;
DWORD cbProxy;
DWORD cbBypass;
DWORD dwLastCacheTime;
DWORD iLastKnownGood;
SWUDLProxyCacheObj *pNext;
};
class CWUDLProxyCache
{
private:
SWUDLProxyCacheObj *m_rgpObj;
SWUDLProxyCacheObj *internalFind(LPCWSTR wszSrv);
public:
CWUDLProxyCache();
~CWUDLProxyCache();
BOOL Set(LPCWSTR wszSrv, LPCWSTR wszProxy, LPCWSTR wszBypass,
DWORD dwAccessType);
BOOL Find(LPCWSTR wszSrv, LPWSTR *pwszProxy, LPWSTR *pwszBypass,
DWORD *pdwAccessType);
BOOL SetLastGoodProxy(LPCWSTR wszSrv, DWORD iProxy);
BOOL GetLastGoodProxy(LPCWSTR wszSrv, SAUProxySettings *paups);
BOOL Empty(void);
};
#endif
#endif