Source code of Windows XP (NT5)
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.

42 lines
1.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1998.
  5. //
  6. // File: globcons.hxx
  7. //
  8. // Contents: Constants that are global to Content Index and that
  9. // are not considered parameters. Parameters are in
  10. // params.hxx
  11. //
  12. // History: 12-06-96 srikants Created
  13. // 9-Nov-98 KLam IsDiskLowError handles CI_E_CONFIG_DISK_FULL
  14. //
  15. //----------------------------------------------------------------------------
  16. #pragma once
  17. #ifndef CI_UPDATE_OBJ
  18. #define CI_UPDATE_OBJ 0x0001
  19. #define CI_UPDATE_PROPS 0x0002
  20. #define CI_DELETE_OBJ 0x0004
  21. #define CI_SCAN_UPDATE 0x8000
  22. #endif // CI_UPDATE_OBJ
  23. inline BOOL IsCiCorruptStatus( DWORD status )
  24. {
  25. return CI_CORRUPT_DATABASE == status || CI_CORRUPT_CATALOG == status;
  26. }
  27. inline BOOL IsDiskLowError( DWORD status )
  28. {
  29. return STATUS_DISK_FULL == status ||
  30. ERROR_DISK_FULL == status ||
  31. HRESULT_FROM_WIN32(ERROR_DISK_FULL) == status ||
  32. FILTER_S_DISK_FULL == status ||
  33. CI_E_CONFIG_DISK_FULL == status;
  34. }