windows-nt/Source/XPSP1/NT/admin/activec/nodemgr/nodemgr.h

72 lines
1.3 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//____________________________________________________________________________
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1996 - 1999
//
// File: nodemgr.h
//
// Contents:
//
// Classes:
//
// Functions:
//
// History: 1/27/1997 RaviR Created
//____________________________________________________________________________
//
#ifndef MMC_NODEMGR_H_
#define MMC_NODEMGR_H_
class CSnapInsCache;
class CNodeMgrApp : public COleCacheCleanupObserver
{
public:
CNodeMgrApp() : m_pSnapInsCache(NULL), m_bProcessingSnapinChanges(FALSE)
{
// register to be notified when everything cached needs to be released.
COleCacheCleanupManager::AddOleObserver(this);
}
~CNodeMgrApp()
{
}
virtual SC ScOnReleaseCachedOleObjects();
virtual void Init();
virtual void DeInit();
CSnapInsCache* GetSnapInsCache(void)
{
return m_pSnapInsCache;
}
void SetSnapInsCache(CSnapInsCache* pSIC);
void SetProcessingSnapinChanges(BOOL bProcessing)
{
m_bProcessingSnapinChanges = bProcessing;
}
BOOL ProcessingSnapinChanges()
{
return m_bProcessingSnapinChanges;
}
private:
CSnapInsCache* m_pSnapInsCache;
BOOL m_bProcessingSnapinChanges;
}; // CNodeMgrApp
EXTERN_C CNodeMgrApp theApp;
#endif // MMC_NODEMGR_H_