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.
75 lines
1.6 KiB
75 lines
1.6 KiB
/*++
|
|
|
|
Copyright (c) 1994 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
cachedef.h
|
|
|
|
Abstract:
|
|
|
|
contains global data declerations.
|
|
|
|
Author:
|
|
|
|
Madan Appiah (madana) 12-Apr-1995
|
|
|
|
Environment:
|
|
|
|
User Mode - Win32
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#ifndef _GLOBAL_
|
|
#define _GLOBAL_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
// Prototype for async fixup callback.
|
|
typedef DWORD (CALLBACK* PFN_FIXUP)
|
|
(
|
|
DWORD dwVer, // version of cache
|
|
LPSTR pszPath, // directory containing index file
|
|
LPSTR pszPrefix, // protocol prefix
|
|
BOOL* pfDetach, // ptr. to global indicating dll shutdown
|
|
DWORD dwFactor, // as passed to CleanupUrls
|
|
DWORD dwFilter, // as passed to CleanupUrls
|
|
LPVOID lpvReserved // reserved: pass null
|
|
);
|
|
|
|
//
|
|
// global variables.
|
|
//
|
|
|
|
extern CRITICAL_SECTION GlobalCacheCritSect;
|
|
extern BOOL GlobalCacheInitialized;
|
|
extern CConMgr *GlobalUrlContainers;
|
|
#define GlobalMapFileGrowSize (PAGE_SIZE * ALLOC_PAGES)
|
|
extern LONG GlobalScavengerRunning;
|
|
extern MEMORY *CacheHeap;
|
|
extern HNDLMGR HandleMgr;
|
|
extern DWORD GlobalRetrieveUrlCacheEntryFileCount;
|
|
|
|
// globals for async fixup handler
|
|
extern char g_szFixup[sizeof(DWORD)];
|
|
// regkey to lookup fixup dll,entry point
|
|
extern HINSTANCE g_hFixup; // dll containing fixup handler
|
|
extern PFN_FIXUP g_pfnFixup; // entry point of fixup handler
|
|
|
|
|
|
#ifdef unix
|
|
extern BOOL g_ReadOnlyCaches;
|
|
extern char* gszLockingHost;
|
|
#endif /* unix */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // _GLOBAL_
|
|
|
|
|