|
// Advise.h
#if !defined __ADVISE_H__
#define __ADVISE_H__
#include "stdafx.h"
/////////////////////////////////////////////////////////////////////////////////////////
// CAdvise
//
class CAdvise
{
public:
CAdvise(const IID& iidSinkInterface);
~CAdvise();
HRESULT AdviseToServer(IUnknown* pUnk, const IUnknown* pUnkEvents);
void UnadviseToServer();
DWORD GetCookie() const { return m_dwCookie; }
private:
IID m_iidSinkInterface;
CComPtr<IConnectionPoint> m_spCP;
DWORD m_dwCookie;
};
#endif // __ADVISE_H__
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.