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.

34 lines
815 B

  1. // SystemEventContainer.cpp: implementation of the CSystemEventContainer class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #include "stdafx.h"
  5. #include "snapin.h"
  6. #include "SystemEventContainer.h"
  7. #ifdef _DEBUG
  8. #undef THIS_FILE
  9. static char THIS_FILE[]=__FILE__;
  10. #define new DEBUG_NEW
  11. #endif
  12. IMPLEMENT_DYNCREATE(CSystemEventContainer,CEventContainer)
  13. //////////////////////////////////////////////////////////////////////
  14. // Construction/Destruction
  15. //////////////////////////////////////////////////////////////////////
  16. CSystemEventContainer::CSystemEventContainer()
  17. {
  18. m_pSystemStatusListener = NULL;
  19. }
  20. CSystemEventContainer::~CSystemEventContainer()
  21. {
  22. DeleteEvents();
  23. if( m_pSystemStatusListener )
  24. {
  25. delete m_pSystemStatusListener;
  26. m_pSystemStatusListener = NULL;
  27. }
  28. }