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.1 KiB

  1. //
  2. // catenum.h
  3. //
  4. #ifndef CATENUM_H
  5. #define CATENUM_H
  6. #include "strary.h"
  7. //////////////////////////////////////////////////////////////////////////////
  8. //
  9. // CEnumCatCache
  10. //
  11. //////////////////////////////////////////////////////////////////////////////
  12. class CEnumCatCache
  13. {
  14. public:
  15. CEnumCatCache() {}
  16. ~CEnumCatCache();
  17. IEnumGUID *GetEnumItemsInCategory(REFGUID rguid);
  18. typedef struct {
  19. TfGuidAtom guidatom;
  20. IEnumGUID *pEnumItems;
  21. } GUIDENUMMAP;
  22. private:
  23. CStructArray<GUIDENUMMAP> _rgMap;
  24. };
  25. //////////////////////////////////////////////////////////////////////////////
  26. //
  27. // CGuidDwordCache
  28. //
  29. //////////////////////////////////////////////////////////////////////////////
  30. class CGuidDwordCache
  31. {
  32. public:
  33. CGuidDwordCache() {}
  34. ~CGuidDwordCache();
  35. DWORD GetGuidDWORD(REFGUID rguid);
  36. typedef struct {
  37. TfGuidAtom guidatom;
  38. DWORD dw;
  39. } GUIDDWMAP;
  40. private:
  41. CStructArray<GUIDDWMAP> _rgMap;
  42. };
  43. #endif CATENUM_H