-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcache.h
70 lines (57 loc) · 1.81 KB
/
cache.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef __CCache_H__
#define __CCache_H__
#include <WinInet.h>
//////////////////////////////////////////////////////////////////////
// Classe : CCache
// Resume : Display Cache Entry
//////////////////////////////////////////////////////////////////////
class CCache
{
public:
bool m_bDisp_dwStructSize;
bool m_bDisp_lpszSourceUrlName;
bool m_bDisp_lpszLocalFileName;
bool m_bDisp_CacheEntryType;
bool m_bDisp_dwUseCount;
bool m_bDisp_dwHitRate;
bool m_bDisp_dwSizeLow;
bool m_bDisp_dwSizeHigh;
bool m_bDisp_LastModifiedTime;
bool m_bDisp_ExpireTime;
bool m_bDisp_LastAccessTime;
bool m_bDisp_LastSyncTime;;
bool m_bDisp_lpHeaderInfo;
bool m_bDisp_dwHeaderInfoSize;
bool m_bDisp_lpszFileExtension;
bool m_bDisp_Expiration;
bool m_bSearch_dwStructSize;
bool m_bSearch_lpszSourceUrlName;
bool m_bSearch_lpszLocalFileName;
bool m_bSearch_CacheEntryType;
bool m_bSearch_dwUseCount;
bool m_bSearch_dwHitRate;
bool m_bSearch_dwSizeLow;
bool m_bSearch_dwSizeHigh;
bool m_bSearch_LastModifiedTime;
bool m_bSearch_ExpireTime;
bool m_bSearch_LastAccessTime;
bool m_bSearch_LastSyncTime;;
bool m_bSearch_lpHeaderInfo;
bool m_bSearch_dwHeaderInfoSize;
bool m_bSearch_lpszFileExtension;
bool m_b_String;
bool m_b_Remove;
public:
CCache();
~CCache();
public:
void Display (LPSTR lpSzContainer);
void DisplayAll();
BOOL SearchCache(INTERNET_CACHE_ENTRY_INFO* pInfo, LPSTR lpszSearch, BOOL bDelete);
BOOL SearchCacheByItem(LPSTR StringToSearch, INTERNET_CACHE_ENTRY_INFO* pInfo, LPSTR lpszSearch, BOOL bDelete);
void Search(LPSTR lpszContainer, LPSTR lpszSourceUrlName, BOOL bDelete);
void SearchAll (LPSTR lpszSourceUrlName, BOOL bDelete);
void DisplayCacheEntry(INTERNET_CACHE_ENTRY_INFO*);
BOOL DelCacheEntry(INTERNET_CACHE_ENTRY_INFO* pInfo);
};
#endif