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.

66 lines
1.3 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. class SetOperation : public SnmpSetOperation
  13. {
  14. private:
  15. WbemSnmpProperty **m_PropertyContainer ;
  16. ULONG m_PropertyContainerLength ;
  17. SnmpSetResponseEventObject *eventObject ;
  18. ULONG varBindsReceived ;
  19. ULONG erroredVarBindsReceived ;
  20. SnmpSession *session ;
  21. protected:
  22. void ReceiveResponse () ;
  23. void ReceiveVarBindResponse (
  24. IN const ULONG &var_bind_index,
  25. IN const SnmpVarBind &requestVarBind ,
  26. IN const SnmpVarBind &replyVarBind ,
  27. IN const SnmpErrorReport &error
  28. ) ;
  29. void ReceiveErroredVarBindResponse(
  30. IN const ULONG &var_bind_index,
  31. IN const SnmpVarBind &requestVarBind ,
  32. IN const SnmpErrorReport &error
  33. ) ;
  34. void FrameTooBig() ;
  35. void FrameOverRun() ;
  36. public:
  37. SetOperation (IN SnmpSession &session , IN SnmpSetResponseEventObject *eventObject ) ;
  38. ~SetOperation () ;
  39. void Send ( const ULONG &a_NumberToSend = 0xffffffff ) ;
  40. void DestroyOperation () { SnmpSetOperation :: DestroyOperation () ; }
  41. };