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.

58 lines
876 B

  1. /*++
  2. 1998 Seagate Software, Inc. All rights reserved.
  3. Module Name:
  4. LaDate.h
  5. Abstract:
  6. Definition of CLaDate, a class representing the enabled or
  7. disabled state of last access date updating of NTFS files.
  8. See the implementation file for more details.
  9. Author:
  10. Carl Hagerstrom [carlh] 01-Sep-1998
  11. --*/
  12. #ifndef _LADATE_H
  13. #define _LADATE_H
  14. class CLaDate
  15. {
  16. private:
  17. WCHAR* m_regPath;
  18. WCHAR* m_regEntry;
  19. HKEY m_regKey;
  20. public:
  21. enum LAD_STATE {
  22. LAD_ENABLED, // registry value is not one
  23. LAD_DISABLED, // registry value is one
  24. LAD_UNSET // registry value does not exist
  25. };
  26. CLaDate( );
  27. ~CLaDate( );
  28. HRESULT
  29. UnsetLadState( );
  30. HRESULT
  31. SetLadState(
  32. IN LAD_STATE
  33. );
  34. HRESULT
  35. GetLadState(
  36. OUT LAD_STATE*
  37. );
  38. };
  39. #endif // _LADATE_H