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.

67 lines
1.6 KiB

  1. // Copyright (C) 1995-1999 Microsoft Corporation. All rights reserved.
  2. //
  3. // Logconst.h
  4. //
  5. // Log manager global constants
  6. //
  7. #ifndef __LOGCONST__H__
  8. #define __LOGCONST__H__
  9. // ===============================
  10. // CONSTANTS:
  11. // ===============================
  12. #define MIN_LOG_TIMER_INTERVAL 5 //milliseconds
  13. #define DEFAULT_LOG_TIMER_INTERVAL 10 //milliseconds
  14. #define MAX_LOG_TIMER_INTERVAL ((ULONG) -1) //milliseconds
  15. #define MIN_LOG_FLUSH_INTERVAL 5 //milliseconds
  16. #define DEFAULT_LOG_FLUSH_INTERVAL 50 //milliseconds
  17. #define MAX_LOG_FLUSH_INTERVAL 1000 //milliseconds
  18. #define MIN_LOG_CHKPT_INTERVAL 100 //milliseconds
  19. #define DEFAULT_LOG_CHKPT_INTERVAL 50000 //milliseconds
  20. #define MAX_LOG_CHKPT_INTERVAL ((ULONG) -1) //milliseconds
  21. #define MAX_OUTSTANDING_CHKPT 25
  22. #define MIN_LOG_BUFFERS 50
  23. #define MAX_LOG_BUFFERS 500
  24. #define DEFAULT_LOG_BUFFERS 200
  25. #define INIT_GENERATION_NO 1
  26. #define MIN_GENERATION_NO 2
  27. #define MINFORCEFLUSH 20 //percentage of outstanding asynch writes threshold for forcing flush
  28. #define MINFLUSHCOUNT 3 // minimum number of writes outstanding to force flush
  29. #define LOGMGRSAVEDSPACE 4 //number of pages to "save" for the logmgr
  30. #define DLLGETDTCLOGFN2_STR "DllGetDTCLOG2"
  31. typedef HRESULT (* DLLGETDTCLOG2_FN) (REFCLSID clsid, REFIID riid, void ** ppv);
  32. STDMETHODIMP InitLog
  33. (
  34. LPWSTR pwszLogPath,
  35. DWORD dwTimer,
  36. DWORD dwCheckpoint,
  37. DWORD dwFlush,
  38. DWORD dwSize,
  39. BOOL fFailIfThere,
  40. BOOL fUpdateFilesNotToBackupKey
  41. );
  42. #endif