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.

50 lines
1.0 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. #ifndef _SNMP_EVT_PROV_EVTENCAP_H
  13. #define _SNMP_EVT_PROV_EVTENCAP_H
  14. class CEncapMapper : public CMapToEvent
  15. {
  16. private:
  17. BOOL GetSpecificClass();
  18. const wchar_t* GetV1Class() { return V1CLASS_NAME; }
  19. const wchar_t* GetV2Class() { return V2CLASS_NAME; }
  20. WbemSnmpClassObject* m_WbemSnmpObj;
  21. BOOL SetAndGetProperty(WbemSnmpProperty *hmmSnmpProp, VARIANT *pvValue);
  22. public:
  23. CEncapMapper();
  24. HRESULT GetSpecificPropertyValue(long lNumElements,
  25. MYWBEM_NAME_ELEMENT *aElements,
  26. long lFlags,
  27. VARIANT *pvValue);
  28. void GenerateInstance(IWbemClassObject** ppInst);
  29. void ResetData();
  30. ~CEncapMapper();
  31. };
  32. #endif //_SNMP_EVT_PROV_EVTENCAP_H