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.

41 lines
1.5 KiB

  1. // File: ichannel.cpp
  2. #include "precomp.h"
  3. /* O N N O T I F Y C H A N N E L M E M B E R A D D E D */
  4. /*-------------------------------------------------------------------------
  5. %%Function: OnNotifyChannelMemberAdded
  6. -------------------------------------------------------------------------*/
  7. HRESULT OnNotifyChannelMemberAdded(IUnknown *pChannelNotify, PVOID pv, REFIID riid)
  8. {
  9. ASSERT(NULL != pChannelNotify);
  10. ((INmChannelNotify*)pChannelNotify)->MemberChanged(NM_MEMBER_ADDED, (INmMember *) pv);
  11. return S_OK;
  12. }
  13. /* O N N O T I F Y C H A N N E L M E M B E R U P D A T E D */
  14. /*-------------------------------------------------------------------------
  15. %%Function: OnNotifyChannelMemberUpdated
  16. -------------------------------------------------------------------------*/
  17. HRESULT OnNotifyChannelMemberUpdated(IUnknown *pChannelNotify, PVOID pv, REFIID riid)
  18. {
  19. ASSERT(NULL != pChannelNotify);
  20. ((INmChannelNotify*)pChannelNotify)->MemberChanged(NM_MEMBER_UPDATED, (INmMember *) pv);
  21. return S_OK;
  22. }
  23. /* O N N O T I F Y C H A N N E L M E M B E R R E M O V E D */
  24. /*-------------------------------------------------------------------------
  25. %%Function: OnNotifyChannelMemberRemoved
  26. -------------------------------------------------------------------------*/
  27. HRESULT OnNotifyChannelMemberRemoved(IUnknown *pChannelNotify, PVOID pv, REFIID riid)
  28. {
  29. ASSERT(NULL != pChannelNotify);
  30. ((INmChannelNotify*)pChannelNotify)->MemberChanged(NM_MEMBER_REMOVED, (INmMember *) pv);
  31. return S_OK;
  32. }