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.

88 lines
1.7 KiB

  1. //***************************************************************************
  2. //
  3. // File:
  4. //
  5. // Module: MS SNMP Provider
  6. //
  7. // Purpose:
  8. //
  9. // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
  10. //
  11. //***************************************************************************
  12. /*---------------------------------------------------------
  13. Filename: dummy.cpp
  14. Written By: B.Rajeev
  15. ----------------------------------------------------------*/
  16. #include "precomp.h"
  17. #include "common.h"
  18. #include "sync.h"
  19. #include "error.h"
  20. #include "encdec.h"
  21. #include "sec.h"
  22. #include "vblist.h"
  23. #include "pdu.h"
  24. #include "dummy.h"
  25. #include "flow.h"
  26. #include "frame.h"
  27. #include "timer.h"
  28. #include "message.h"
  29. #include "ssent.h"
  30. #include "idmap.h"
  31. #include "opreg.h"
  32. #include "session.h"
  33. // over-rides the HandleEvent method provided by the
  34. // WinSnmpSession. Alerts the owner of a sent frame event
  35. LONG_PTR SessionWindow::HandleEvent (
  36. HWND hWnd ,
  37. UINT message ,
  38. WPARAM wParam ,
  39. LPARAM lParam
  40. )
  41. {
  42. LONG rc = 0;
  43. // check if the message needs to be handled
  44. if ( message == Window :: g_SentFrameEvent )
  45. {
  46. // inform the owner of a sent frame event
  47. owner.HandleSentFrame (
  48. ( SessionFrameId ) wParam ,
  49. ( SnmpOperation * ) lParam
  50. ) ;
  51. }
  52. else if ( message == Window :: g_DeleteSessionEvent )
  53. {
  54. // inform the owner of the event
  55. owner.HandleDeletionEvent () ;
  56. }
  57. else
  58. {
  59. return Window::HandleEvent(
  60. hWnd,
  61. message,
  62. wParam,
  63. lParam
  64. );
  65. }
  66. return rc;
  67. }