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
977 B

  1. // Copyright (c) 1998-1999 Microsoft Corporation
  2. //////////////////////////////////////////////////////////////////////
  3. // NtfyList.h
  4. #include "alist.h"
  5. #include "dmusici.h"
  6. #include "debug.h"
  7. #ifndef __NTFYLIST_H_
  8. #define __NTFYLIST_H_
  9. class CNotificationItem : public AListItem
  10. {
  11. public:
  12. CNotificationItem* GetNext()
  13. {
  14. return (CNotificationItem*)AListItem::GetNext();
  15. };
  16. public:
  17. GUID guidNotificationType;
  18. BOOL fFromPerformance;
  19. };
  20. class CNotificationList : public AList
  21. {
  22. public:
  23. CNotificationItem* GetHead()
  24. {
  25. return (CNotificationItem*)AList::GetHead();
  26. };
  27. CNotificationItem* RemoveHead()
  28. {
  29. return (CNotificationItem*)AList::RemoveHead();
  30. };
  31. CNotificationItem* GetItem(LONG lIndex)
  32. {
  33. return (CNotificationItem*) AList::GetItem(lIndex);
  34. };
  35. void Clear(void)
  36. {
  37. CNotificationItem* pTrack;
  38. while( pTrack = RemoveHead() )
  39. {
  40. delete pTrack;
  41. }
  42. }
  43. };
  44. #endif // __NTFYLIST_H_