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.

49 lines
959 B

  1. //+--------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1992.
  5. //
  6. // File: strlist.hxx
  7. //
  8. // Contents: CStrList header
  9. //
  10. // Classes: CStrList
  11. //
  12. // History: 24-Sep-92 DrewB Created
  13. //
  14. //---------------------------------------------------------------
  15. #ifndef __STRLIST_HXX__
  16. #define __STRLIST_HXX__
  17. #include <drt.hxx>
  18. struct SStrEntry
  19. {
  20. SStrEntry *pseNext, *psePrev;
  21. union
  22. {
  23. void *pv;
  24. unsigned long dw;
  25. } user;
  26. OLECHAR atc[1]; // Actually contains the whole string
  27. };
  28. class CStrList
  29. {
  30. public:
  31. CStrList(void);
  32. ~CStrList(void);
  33. SStrEntry *Add(OLECHAR *ptcs);
  34. void Remove(SStrEntry *pse);
  35. SStrEntry *Find(OLECHAR *ptcs);
  36. void Empty(void);
  37. SStrEntry *GetHead(void) { return _pseHead; }
  38. private:
  39. SStrEntry *_pseHead;
  40. };
  41. #endif // #ifndef __STRLIST_HXX__