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.

43 lines
1.1 KiB

  1. #ifndef _MD_SINK_
  2. #define _MD_SINK_
  3. #include <imd.h>
  4. class CImpIMDCOMSINKW : public IMDCOMSINKW
  5. {
  6. private:
  7. CImpIMDCOMSINKW(); // no implementation
  8. public:
  9. CImpIMDCOMSINKW(
  10. IMSAdminBaseW *pAdm);
  11. ~CImpIMDCOMSINKW();
  12. STDMETHODIMP QueryInterface(
  13. REFIID riid,
  14. VOID **ppObject);
  15. STDMETHODIMP_(ULONG) AddRef();
  16. STDMETHODIMP_(ULONG) Release();
  17. STDMETHODIMP ComMDSinkNotify(
  18. /* [in] */ METADATA_HANDLE hMDHandle,
  19. /* [in] */ DWORD dwMDNumElements,
  20. /* [size_is][in] */ MD_CHANGE_OBJECT_W __RPC_FAR pcoChangeList[ ]);
  21. STDMETHODIMP ComMDShutdownNotify();
  22. STDMETHODIMP ComMDEventNotify(
  23. /* [in] */ DWORD dwMDEvent);
  24. STDMETHODIMP DetachAdminObject();
  25. private:
  26. IMSAdminBaseW *m_pAdmObj;
  27. ULONG m_dwRefCount;
  28. CReaderWriterLock3 m_Lock;
  29. };
  30. #endif
  31.