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.

40 lines
1.0 KiB

  1. #ifndef _GLOBALS_H_INCLUDED_
  2. #define _GLOBALS_H_INCLUDED_
  3. //
  4. // This is the statistics index to use for unrecognized services. They do
  5. // not get included in the statistics information.
  6. //
  7. #define CACHE_STATS_UNUSED_INDEX (LAST_PERF_CTR_SVC)
  8. typedef struct {
  9. INETA_CACHE_STATISTICS Stats[LAST_PERF_CTR_SVC+1];
  10. } CONFIGURATION;
  11. extern CONFIGURATION Configuration;
  12. extern BOOL g_fCacheSecDesc;
  13. extern BOOL g_fDisableCaching;
  14. inline UINT64 FILETIMEToUINT64( const FILETIME & FileTime )
  15. {
  16. ULARGE_INTEGER LargeInteger;
  17. LargeInteger.HighPart = FileTime.dwHighDateTime;
  18. LargeInteger.LowPart = FileTime.dwLowDateTime;
  19. return LargeInteger.QuadPart;
  20. }
  21. inline FILETIME UINT64ToFILETIME( UINT64 Int64Value )
  22. {
  23. ULARGE_INTEGER LargeInteger;
  24. LargeInteger.QuadPart = Int64Value;
  25. FILETIME FileTime;
  26. FileTime.dwHighDateTime = LargeInteger.HighPart;
  27. FileTime.dwLowDateTime = LargeInteger.LowPart;
  28. return FileTime;
  29. }
  30. #endif /* _GLOBALS_H_INCLUDED_ */