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.

124 lines
1.5 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1997 - 1999
  3. Module Name:
  4. cache.hxx
  5. Abstract:
  6. This file contains SENS cache related information.
  7. Author:
  8. Gopal Parupudi <GopalP>
  9. [Notes:]
  10. optional-notes
  11. Revision History:
  12. GopalP 2/8/1999 Start.
  13. --*/
  14. #ifndef __CACHE_HXX__
  15. #define __CACHE_HXX__
  16. //
  17. // Constants
  18. //
  19. enum CACHE_TYPE
  20. {
  21. INVALID = 0x00000001,
  22. LAN,
  23. WAN,
  24. AOL,
  25. LAN_AND_WAN,
  26. LOCK
  27. };
  28. //
  29. // Typedefs
  30. //
  31. typedef struct _SENS_CACHE
  32. {
  33. //
  34. // Cache information
  35. //
  36. DWORD dwCacheVer;
  37. DWORD dwCacheSize;
  38. DWORD dwCacheInitTime;
  39. //
  40. // Connectivity information
  41. //
  42. // Last time connectivity cache was updated.
  43. DWORD dwLastUpdateTime;
  44. DWORD dwLastUpdateState;
  45. // LAN State
  46. long dwLANState;
  47. DWORD dwLastLANTime;
  48. // WAN State
  49. long dwWANState;
  50. DWORD dwLastWANTime;
  51. #if defined(AOL_PLATFORM)
  52. // AOL State
  53. long dwAOLState;
  54. #endif // AOL_PLATFORM
  55. // Machine Locked State
  56. DWORD dwLocked;
  57. } SENS_CACHE, *PSENS_CACHE;
  58. //
  59. // Globals
  60. //
  61. extern HANDLE ghSensFileMap;
  62. extern PSENS_CACHE gpSensCache;
  63. //
  64. // Forward Definitions
  65. //
  66. BOOL
  67. CreateSensCache(
  68. void
  69. );
  70. void
  71. DeleteSensCache(
  72. void
  73. );
  74. void
  75. UpdateSensCache(
  76. CACHE_TYPE Type
  77. );
  78. inline void
  79. UpdateSensNetworkCache(
  80. void
  81. );
  82. #endif // __CACHE_HXX__