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.

62 lines
1.5 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: mitenum.h
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. //
  9. //-----------------------------------------------------------------------------
  10. #pragma once
  11. //
  12. // This is the information we enumerate about enumerators.
  13. //
  14. struct EnumInfo
  15. {
  16. const TCHAR *szDescription;
  17. const TCHAR *szAbbreviation;
  18. ULONG ulValue;
  19. };
  20. //
  21. // This class is used as a base for a call-back class when enumerating
  22. // enum values. For each value, the PrecessEnum() method is called.
  23. //
  24. class LTAPIENTRY CEnumCallback
  25. {
  26. public:
  27. virtual BOOL ProcessEnum(const EnumInfo &) = 0;
  28. virtual void SetRange(UINT /* nStart */, UINT /* nFinish */) {}
  29. inline CEnumCallback() {};
  30. private:
  31. CEnumCallback(const CEnumCallback &);
  32. CEnumCallback &operator=(const CEnumCallback &);
  33. };
  34. //
  35. struct WEnumInfo
  36. {
  37. const WCHAR *szDescription;
  38. const WCHAR *szAbbreviation;
  39. ULONG ulValue;
  40. };
  41. //
  42. // This class is used as a base for a call-back class when enumerating
  43. // enum values. For each value, the PrecessEnum() method is called.
  44. //
  45. class LTAPIENTRY CWEnumCallback
  46. {
  47. public:
  48. virtual BOOL ProcessEnum(const WEnumInfo &) = 0;
  49. virtual void SetRange(UINT /* nStart */, UINT /* nFinish */) {}
  50. inline CWEnumCallback() {};
  51. private:
  52. CWEnumCallback(const CWEnumCallback &);
  53. CWEnumCallback &operator=(const CWEnumCallback &);
  54. };