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.

116 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 1994 Microsoft Corporation
  3. Module Name:
  4. cachglob.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. // -- from wininet\inc\globals.h
  50. extern BOOL vfPerUserCookies;
  51. BOOL GetWininetUserName(VOID);
  52. // BUGBUG: GetWininetUserName must be called before accessing vszCurrentUser.
  53. // Instead, it should return the username ptr and the global not accessed.
  54. extern char vszCurrentUser[];
  55. extern DWORD vdwCurrentUserLen;
  56. extern const char vszPerUserCookies[];
  57. // --- from wininet\inetui\inetp.h
  58. BOOL
  59. GetCurrentSettingsVersion(
  60. LPDWORD lpdwVer
  61. );
  62. BOOL
  63. IncrementCurrentSettingsVersion(
  64. LPDWORD lpdwVer
  65. );
  66. extern DWORD GlobalDiskUsageLowerBound;
  67. extern DWORD GlobalScavengeFileLifeTime;
  68. extern BOOL GlobalPleaseQuitWhatYouAreDoing;
  69. extern DWORD GlobalSettingsVersion;
  70. extern BOOL GlobalSettingsLoaded;
  71. extern const char vszInvalidFilenameChars[];
  72. char *
  73. StrTokExA(
  74. IN OUT char ** pstring,
  75. IN const char * control);
  76. #ifdef __cplusplus
  77. }
  78. #endif
  79. #endif // _GLOBAL_