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.

79 lines
1.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: srothint.hxx
  7. //
  8. // Contents: Classes used in implementing the ROT hint table.
  9. //
  10. // Functions:
  11. //
  12. // History: 20-Jan-95 Ricksa Created
  13. //
  14. //--------------------------------------------------------------------------
  15. #ifndef __SROTHINT_HXX__
  16. #define __SROTHINT_HXX__
  17. #if 1 // #ifndef _CHICAGO_
  18. //+-------------------------------------------------------------------------
  19. //
  20. // Class: CScmRotHintTable (srht)
  21. //
  22. // Purpose: abstract SCM side of the hint table
  23. //
  24. // Interface: InitOK - whether initialization succeeded.
  25. //
  26. // History: 20-Jan-95 Ricksa Created
  27. //
  28. // Notes:
  29. //
  30. //--------------------------------------------------------------------------
  31. class CScmRotHintTable : public CRotHintTable
  32. {
  33. public:
  34. CScmRotHintTable(WCHAR *pwszName);
  35. ~CScmRotHintTable(void);
  36. BOOL InitOK(void);
  37. private:
  38. HANDLE _hSm;
  39. };
  40. //+-------------------------------------------------------------------------
  41. //
  42. // Member: CScmRotHintTable::~CScmRotHintTable
  43. //
  44. // Synopsis: Clean up hint table object
  45. //
  46. // History: 20-Jan-95 Ricksa Created
  47. //
  48. //--------------------------------------------------------------------------
  49. inline CScmRotHintTable::~CScmRotHintTable(void)
  50. {
  51. CloseSharedFileMapping(_hSm, _pbHintArray);
  52. }
  53. //+-------------------------------------------------------------------------
  54. //
  55. // Member: CScmRotHintTable::InitOK
  56. //
  57. // Synopsis: Whether initialization worked
  58. //
  59. // History: 20-Jan-95 Ricksa Created
  60. //
  61. //--------------------------------------------------------------------------
  62. inline BOOL CScmRotHintTable::InitOK(void)
  63. {
  64. return _hSm != NULL;
  65. }
  66. #endif // !_CHICAGO_
  67. #endif // __ROTHINT_HXX__