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.

42 lines
992 B

  1. //
  2. // MyAdapterNotify.h : Declaration of the CMyAdapterNotify
  3. //
  4. #pragma once
  5. // {6E590D42-F6BC-4dad-AC21-7DC40D304059}
  6. DEFINE_GUID(CLSID_MyAdapterNotificationSink, 0x6e590d42, 0xf6bc, 0x4dad, 0xac, 0x21, 0x7d, 0xc4, 0xd, 0x30, 0x40, 0x59);
  7. /////////////////////////////////////////////////////////////////////////////
  8. //
  9. // CMyAdapterNotify
  10. //
  11. class ATL_NO_VTABLE CMyAdapterNotify :
  12. public CComObjectRoot,
  13. public CComCoClass<CMyAdapterNotify, &CLSID_MyAdapterNotificationSink>,
  14. public IAdapterNotificationSink
  15. {
  16. public:
  17. DECLARE_NO_REGISTRY()
  18. DECLARE_NOT_AGGREGATABLE(CMyAdapterNotify)
  19. BEGIN_COM_MAP(CMyAdapterNotify)
  20. COM_INTERFACE_ENTRY(IAdapterNotificationSink)
  21. END_COM_MAP()
  22. //
  23. // IAdapterNotificationSink
  24. //
  25. public:
  26. STDMETHODIMP AdapterAdded (IAdapterInfo* pAdapter);
  27. STDMETHODIMP AdapterRemoved (IAdapterInfo* pAdapter);
  28. STDMETHODIMP AdapterModified (IAdapterInfo* pAdapter);
  29. };