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.

58 lines
1.2 KiB

  1. //***************************************************************************
  2. //
  3. // File:
  4. //
  5. // Module: MS SNMP Provider
  6. //
  7. // Purpose:
  8. //
  9. // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
  10. //
  11. //***************************************************************************
  12. #ifndef _SNMPCORR_NOTIFY
  13. #define _SNMPCORR_NOTIFY
  14. class CBaseCorrCacheNotify : public ISMIRNotify
  15. {
  16. private:
  17. ULONG m_cRef; //Reference count
  18. DWORD m_dwCookie; //Returned by ADVISE used for UNADVISE
  19. protected:
  20. CRITICAL_SECTION m_CriticalSection;
  21. BOOL m_DoWork;
  22. public:
  23. CBaseCorrCacheNotify();
  24. virtual ~CBaseCorrCacheNotify();
  25. //IUnknown members
  26. STDMETHODIMP QueryInterface(REFIID, void **);
  27. STDMETHODIMP_(DWORD) AddRef();
  28. STDMETHODIMP_(DWORD) Release();
  29. void SetCookie(DWORD c) { m_dwCookie = c; }
  30. void Detach();
  31. DWORD GetCookie() { return m_dwCookie; }
  32. };
  33. class CCorrCacheNotify : public CBaseCorrCacheNotify
  34. {
  35. STDMETHODIMP ChangeNotify();
  36. };
  37. class CEventCacheNotify : public CBaseCorrCacheNotify
  38. {
  39. STDMETHODIMP ChangeNotify();
  40. };
  41. #endif //_SNMPCORR_NOTIFY