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

43 lines
950 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
//
// MyAdapterNotify.h : Declaration of the CMyAdapterNotify
//
#pragma once
// {6E590D42-F6BC-4dad-AC21-7DC40D304059}
DEFINE_GUID(CLSID_MyAdapterNotificationSink, 0x6e590d42, 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);
};