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.
 
 
 
 
 
 

44 lines
1.1 KiB

#ifndef _MD_SINK_
#define _MD_SINK_
#include <imd.h>
class CImpIMDCOMSINKW : public IMDCOMSINKW
{
private:
CImpIMDCOMSINKW(); // no implementation
public:
CImpIMDCOMSINKW(
IMSAdminBaseW *pAdm);
~CImpIMDCOMSINKW();
STDMETHODIMP QueryInterface(
REFIID riid,
VOID **ppObject);
STDMETHODIMP_(ULONG) AddRef();
STDMETHODIMP_(ULONG) Release();
STDMETHODIMP ComMDSinkNotify(
/* [in] */ METADATA_HANDLE hMDHandle,
/* [in] */ DWORD dwMDNumElements,
/* [size_is][in] */ MD_CHANGE_OBJECT_W __RPC_FAR pcoChangeList[ ]);
STDMETHODIMP ComMDShutdownNotify();
STDMETHODIMP ComMDEventNotify(
/* [in] */ DWORD dwMDEvent);
STDMETHODIMP DetachAdminObject();
private:
IMSAdminBaseW *m_pAdmObj;
ULONG m_dwRefCount;
CReaderWriterLock3 m_Lock;
};
#endif