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.

89 lines
3.1 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_EVTDEFS_H
  13. #define _SNMP_EVT_PROV_EVTDEFS_H
  14. //common strings
  15. #define WBEMS_CLASS_PROP L"__CLASS"
  16. #define EVENT_ADDR_PROP L"AgentAddress"
  17. #define EVENT_TADDR_PROP L"AgentTransportAddress"
  18. #define EVENT_TRANS_PROP L"AgentTransportProtocol"
  19. #define EVENT_TIME_PROP L"TimeStamp"
  20. #define EVENT_SOID_PROP L"Identification"
  21. #define EVENT_COMM_PROP L"Community"
  22. #define EVENT_VBL_PROP L"VarBindList"
  23. #define EVENT_VBINDEX_QUAL L"VarBindIndex"
  24. #define ASN_OPAQUE (CString(L"OPAQUE"))
  25. #define ASN_NULL (CString(L"NULL VALUE"))
  26. #define ASN_INTEGER (CString(L"INTEGER"))
  27. #define ASN_TIME (CString(L"TimeTicks"))
  28. #define ASN_GUAGE (CString(L"Guage"))
  29. #define ASN_COUNTER (CString(L"Counter"))
  30. #define ASN_OID (CString(L"OBJECT IDENTIFIER"))
  31. #define ASN_ADDR (CString(L"IpAddress"))
  32. #define ASN_OCTET (CString(L"OCTET STRING"))
  33. #define ASN_UINT32 (CString(L"Unsigned32"))
  34. #define ASN_COUNTER64 (CString(L"Counter64"))
  35. #define ASN_NSI (CString(L"noSuchInstance"))
  36. #define ASN_EOMV (CString(L"endOfMibView"))
  37. #define ASN_NSO (CString(L"noSuchObject"))
  38. #define SNMP_ENT_OID (SnmpObjectIdentifier("1.3.6.1.6.3.1.1.4.3.0"))
  39. #define SNMP_TRAP_OID (SnmpObjectIdentifier("1.3.6.1.6.3.1.1.4.1.0"))
  40. #define SNMP_SYS_UP_OID (SnmpObjectIdentifier("1.3.6.1.2.1.1.3.0"))
  41. #define VB_ENCODING_PROP1 L"Encoding"
  42. #define VB_OBJID_PROP2 L"ObjectIdentifier"
  43. #define VB_VALUE_PROP3 L"Value"
  44. #define VB_CLASS_PATH L"SnmpVarBind"
  45. #define MAPPER_CLASS_EVENTCLASSPROP L"EventClassName"
  46. #define THREAD_REG_KEY L"Software\\Microsoft\\WBEM\\Providers\\SNMP\\Events"
  47. #define THREAD_MARKS_VAL L"StrobeCount"
  48. #define THREAD_MARKS_MAX 60
  49. #define THREAD_MARKS_DEF 1
  50. #define THREAD_INTERVAL 1000*60 //a minute
  51. #define THREAD_NAME "SnmpEvtProv_Timer"
  52. //Encapsulated strings
  53. #define MAPPER_CLASS_PATH_PREFIX L"NotificationMapper.SnmpTrapOID=\""
  54. #define V2CLASS_NAME L"SnmpV2Notification"
  55. #define V1CLASS_NAME L"SnmpV1Notification"
  56. //Referent strings
  57. #define EXTMAPPER_CLASS_PATH_PREFIX L"ExtendedNotificationMapper.SnmpTrapOID=\""
  58. #define V2EXTCLASS_NAME L"SnmpV2ExtendedNotification"
  59. #define V1EXTCLASS_NAME L"SnmpV1ExtendedNotification"
  60. #define EVENT_CIMTYPE_QUAL L"CIMTYPE"
  61. #define OBJECT_STR L"object:"
  62. #define OBJECT_STR_LEN 7
  63. #define WHITE_SPACE_CHARS L" \t\r\n"
  64. #define FIXED_LENGTH_ATTRIBUTE L"fixed_length"
  65. #define KEY_ATTRIBUTE L"key"
  66. #define KEY_ORDER_ATTRIBUTE L"key_order"
  67. #define TEXT_CNVN_ATTRIBUTE L"textual_convention"
  68. #define OID_ATTRIBUTE L"object_identifier"
  69. #define TEXT_CNVN_INTEGER_VAL L"INTEGER"
  70. #define TEXT_CNVN_IP_ADDR_VAL L"IpAddress"
  71. #define TEXT_CNVN_OID_VAL L"OBJECTIDENTIFIER"
  72. #define TEXT_CNVN_OCTSTR_VAL L"OCTETSTRING"
  73. #endif //_SNMP_EVT_PROV_EVTDEFS_H