windows-nt/Source/XPSP1/NT/net/homenet/alg/alg_icq/myadapternotify.h

40 lines
948 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//
// MyAdapterNotify.h : Declaration of the CMyAdapterNotify
//
#pragma once
// {6E590D52-F6BC-4dad-AC21-7DC40D304059}
DEFINE_GUID(CLSID_MyAdapterNotificationSink, 0x6e590d52, 0xf6bc, 0x4dad, 0xac, 0x21, 0x7d, 0xc4, 0xd, 0x30, 0x40, 0x59);
/////////////////////////////////////////////////////////////////////////////
//
// CMyAdapterNotify
//
class ATL_NO_VTABLE CMyAdapterNotify :
public CComObjectRoot,
public CComCoClass<CMyAdapterNotify, &CLSID_MyAdapterNotificationSink>,
public IAdapterNotificationSink
{
public:
DECLARE_NO_REGISTRY()
DECLARE_NOT_AGGREGATABLE(CMyAdapterNotify)
BEGIN_COM_MAP(CMyAdapterNotify)
COM_INTERFACE_ENTRY(IAdapterNotificationSink)
END_COM_MAP()
// IAdapterNotificationSink
public:
STDMETHODIMP AdapterAdded (IAdapterInfo* pAdapter);
STDMETHODIMP AdapterRemoved (IAdapterInfo* pAdapter);
STDMETHODIMP AdapterModified (IAdapterInfo* pAdapter);
};