Source code of Windows XP (NT5)
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.

122 lines
3.4 KiB

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. item.h
  5. Abstract:
  6. Item header file
  7. Author:
  8. 08-Apr-1998 mraghu
  9. Revision History:
  10. --*/
  11. //
  12. // Temporary structure used. Should be using MOF types
  13. //
  14. #define GUID_TYPE_HEADER L"Header"
  15. #define GUID_TYPE_UNKNOWN L"Unknown"
  16. #define GUID_TYPE_DEFAULT L"Default"
  17. #define EVENT_TYPE_DEFAULT ((CHAR)(-1))
  18. #define EVENT_LEVEL_DEFAULT ((CHAR)(-1))
  19. #define EVENT_VERSION_DEFAULT ((SHORT)(-1))
  20. #define STR_ItemChar L"ItemChar"
  21. #define STR_ItemCharHidden L"ItemCharHidden"
  22. #define STR_ItemWChar L"ItemWChar"
  23. #define STR_ItemUChar L"ItemUChar"
  24. #define STR_ItemCharShort L"ItemCharShort"
  25. #define STR_ItemCharSign L"ItemCharSign"
  26. #define STR_ItemShort L"ItemShort"
  27. #define STR_ItemUShort L"ItemUShort"
  28. #define STR_ItemLong L"ItemLong"
  29. #define STR_ItemULong L"ItemULong"
  30. #define STR_ItemULongX L"ItemULongX"
  31. #define STR_ItemLongLong L"ItemLongLong"
  32. #define STR_ItemULongLong L"ItemULongLong"
  33. #define STR_ItemString L"ItemString"
  34. #define STR_ItemWString L"ItemWString"
  35. #define STR_ItemRString L"ItemRString"
  36. #define STR_ItemRWString L"ItemRWString"
  37. #define STR_ItemPString L"ItemPString"
  38. #define STR_ItemPWString L"ItemPWString"
  39. #define STR_ItemDSString L"ItemDSString"
  40. #define STR_ItemDSWString L"ItemDSWString"
  41. #define STR_ItemMLString L"ItemMLString"
  42. #define STR_ItemSid L"ItemSid"
  43. #define STR_ItemChar4 L"ItemChar4"
  44. #define STR_ItemIPAddr L"ItemIPAddr"
  45. #define STR_ItemPort L"ItemPort"
  46. #define STR_ItemNWString L"ItemNWString"
  47. #define STR_ItemPtr L"ItemPtr"
  48. #define STR_ItemGuid L"ItemGuid"
  49. #define STR_ItemVariant L"ItemVariant"
  50. #define STR_ItemBool L"ItemBool"
  51. #define STR_ItemOptArgs L"ItemOptArgs"
  52. #define STR_ItemCPUTime L"ItemCPUTime"
  53. //
  54. // The following are the data types supported by
  55. // WMI event trace parsing tools. New data types must be
  56. // added to this file and the parsing code for that type
  57. // must be added in the DumpEvent routine.
  58. //
  59. typedef enum _ITEM_TYPE {
  60. ItemChar,
  61. ItemCharHidden,
  62. ItemWChar,
  63. ItemUChar,
  64. ItemCharShort,
  65. ItemCharSign,
  66. ItemShort,
  67. ItemUShort,
  68. ItemLong,
  69. ItemULong,
  70. ItemULongX,
  71. ItemLongLong,
  72. ItemULongLong,
  73. ItemString,
  74. ItemWString,
  75. ItemRString,
  76. ItemRWString,
  77. ItemPString,
  78. ItemPWString,
  79. ItemDSString,
  80. ItemDSWString,
  81. ItemSid,
  82. ItemChar4,
  83. ItemIPAddr,
  84. ItemPort,
  85. ItemMLString,
  86. ItemNWString, // Non-null terminated Wide Char String
  87. ItemPtr,
  88. ItemGuid,
  89. ItemVariant,
  90. ItemBool,
  91. ItemOptArgs,
  92. ItemCPUTime,
  93. ItemUnknown
  94. } ITEM_TYPE;
  95. typedef struct _ITEM_DESC *PITEM_DESC;
  96. typedef struct _ITEM_DESC {
  97. LIST_ENTRY Entry;
  98. ULONG DataSize;
  99. ULONG ArraySize;
  100. ITEM_TYPE ItemType;
  101. PWCHAR strDescription;
  102. } ITEM_DESC;