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.

63 lines
1.2 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_EVTREFT_H
  13. #define _SNMP_EVT_PROV_EVTREFT_H
  14. struct CIMTypeStruct
  15. {
  16. BOOL fObject;
  17. CString strType;
  18. };
  19. class CReferentMapper : public CMapToEvent
  20. {
  21. private:
  22. BOOL GetSpecificClass();
  23. const wchar_t* GetV1Class() { return V1EXTCLASS_NAME; }
  24. const wchar_t* GetV2Class() { return V2EXTCLASS_NAME; }
  25. HRESULT GetTypeAndIndexQuals(const wchar_t* prop,
  26. CIMTypeStruct& type,
  27. ULONG& index);
  28. HRESULT CreateEmbeddedProperty(IWbemClassObject** ppObj,
  29. ULONG index,
  30. const wchar_t* propertyName,
  31. const wchar_t* className);
  32. public:
  33. CReferentMapper();
  34. HRESULT GetSpecificPropertyValue(long lNumElements,
  35. MYWBEM_NAME_ELEMENT *aElements,
  36. long lFlags,
  37. VARIANT *pvValue);
  38. void GenerateInstance(IWbemClassObject** ppInst);
  39. void ResetData();
  40. ~CReferentMapper();
  41. };
  42. #endif //_SNMP_EVT_PROV_EVTREFT_H