mirror of https://github.com/tongzx/nt5src
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.
42 lines
950 B
42 lines
950 B
//
|
|
// 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);
|
|
|
|
|
|
};
|
|
|
|
|