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.

71 lines
1.3 KiB

  1. //____________________________________________________________________________
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1999
  5. //
  6. // File: nodemgr.h
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 1/27/1997 RaviR Created
  15. //____________________________________________________________________________
  16. //
  17. #ifndef MMC_NODEMGR_H_
  18. #define MMC_NODEMGR_H_
  19. class CSnapInsCache;
  20. class CNodeMgrApp : public COleCacheCleanupObserver
  21. {
  22. public:
  23. CNodeMgrApp() : m_pSnapInsCache(NULL), m_bProcessingSnapinChanges(FALSE)
  24. {
  25. // register to be notified when everything cached needs to be released.
  26. COleCacheCleanupManager::AddOleObserver(this);
  27. }
  28. ~CNodeMgrApp()
  29. {
  30. }
  31. virtual SC ScOnReleaseCachedOleObjects();
  32. virtual void Init();
  33. virtual void DeInit();
  34. CSnapInsCache* GetSnapInsCache(void)
  35. {
  36. return m_pSnapInsCache;
  37. }
  38. void SetSnapInsCache(CSnapInsCache* pSIC);
  39. void SetProcessingSnapinChanges(BOOL bProcessing)
  40. {
  41. m_bProcessingSnapinChanges = bProcessing;
  42. }
  43. BOOL ProcessingSnapinChanges()
  44. {
  45. return m_bProcessingSnapinChanges;
  46. }
  47. private:
  48. CSnapInsCache* m_pSnapInsCache;
  49. BOOL m_bProcessingSnapinChanges;
  50. }; // CNodeMgrApp
  51. EXTERN_C CNodeMgrApp theApp;
  52. #endif // MMC_NODEMGR_H_