Leaked source code of windows server 2003
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

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. cachedef.h
  5. Abstract:
  6. contains global data declerations.
  7. Author:
  8. Madan Appiah (madana) 12-Apr-1995
  9. Environment:
  10. User Mode - Win32
  11. Revision History:
  12. --*/
  13. #ifndef _GLOBAL_
  14. #define _GLOBAL_
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. // Prototype for async fixup callback.
  19. typedef DWORD (CALLBACK* PFN_FIXUP)
  20. (
  21. DWORD dwVer, // version of cache
  22. LPSTR pszPath, // directory containing index file
  23. LPSTR pszPrefix, // protocol prefix
  24. BOOL* pfDetach, // ptr. to global indicating dll shutdown
  25. DWORD dwFactor, // as passed to CleanupUrls
  26. DWORD dwFilter, // as passed to CleanupUrls
  27. LPVOID lpvReserved // reserved: pass null
  28. );
  29. //
  30. // global variables.
  31. //
  32. extern CRITICAL_SECTION GlobalCacheCritSect;
  33. extern BOOL GlobalCacheInitialized;
  34. extern CConMgr *GlobalUrlContainers;
  35. #define GlobalMapFileGrowSize (PAGE_SIZE * ALLOC_PAGES)
  36. extern LONG GlobalScavengerRunning;
  37. extern MEMORY *CacheHeap;
  38. extern HNDLMGR HandleMgr;
  39. extern DWORD GlobalRetrieveUrlCacheEntryFileCount;
  40. // globals for async fixup handler
  41. extern char g_szFixup[sizeof(DWORD)];
  42. // regkey to lookup fixup dll,entry point
  43. extern HINSTANCE g_hFixup; // dll containing fixup handler
  44. extern PFN_FIXUP g_pfnFixup; // entry point of fixup handler
  45. #ifdef unix
  46. extern BOOL g_ReadOnlyCaches;
  47. extern char* gszLockingHost;
  48. #endif /* unix */
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52. #endif // _GLOBAL_