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.

96 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. wmiTrace.h
  5. Abstract:
  6. WMI-based TRACEing kd extension header file
  7. Author:
  8. Glenn R. Peterson (glennp) 2000 Apr 27
  9. Revision History:
  10. --*/
  11. #ifndef _WMITRACE_H
  12. #define _WMITRACE_H
  13. #include "dbgeng.h"
  14. //
  15. // Data Structures
  16. //
  17. typedef struct sttWmiTracingKdSortEntry
  18. {
  19. ULONGLONG Address;
  20. union {
  21. LARGE_INTEGER Key;
  22. ULONGLONG Keyll; // Sort Key 2
  23. };
  24. ULONG SequenceNo; // Sort Key 1
  25. ULONG Ordinal; // Sort Key 3
  26. ULONG Offset;
  27. ULONG Length;
  28. WMI_HEADER_TYPE HeaderType;
  29. WMI_BUFFER_SOURCE BufferSource;
  30. USHORT CpuNo;
  31. } WMITRACING_KD_SORTENTRY, *PWMITRACING_KD_SORTENTRY;
  32. //
  33. // Procedure Parameters
  34. //
  35. typedef ULONGLONG (__cdecl *WMITRACING_KD_FILTER) (
  36. PVOID UserContext,
  37. const PEVENT_TRACE pstHeader
  38. );
  39. typedef int (__cdecl *WMITRACING_KD_COMPARE) (
  40. const WMITRACING_KD_SORTENTRY *SortElement1,
  41. const WMITRACING_KD_SORTENTRY *SortElement2
  42. );
  43. typedef void (__cdecl *WMITRACING_KD_OUTPUT) (
  44. PVOID UserContext,
  45. PLIST_ENTRY GuidListHeadPtr,
  46. const WMITRACING_KD_SORTENTRY *SortInfo,
  47. const PEVENT_TRACE pstEvent
  48. );
  49. //
  50. // Procedures
  51. //
  52. VOID
  53. wmiTraceDllInit(
  54. PWINDBG_EXTENSION_APIS64 lpExtensionApis,
  55. USHORT MajorVersion,
  56. USHORT MinorVersion
  57. );
  58. VOID
  59. wmiLogDump(
  60. ULONG LoggerId,
  61. PVOID UserContext,
  62. PLIST_ENTRY GuidListHeadPtr,
  63. WMITRACING_KD_FILTER Filter,
  64. WMITRACING_KD_COMPARE Compare,
  65. WMITRACING_KD_OUTPUT Output
  66. );
  67. ULONG
  68. WmiFormatTraceData(
  69. PDEBUG_CONTROL Ctrl,
  70. ULONG Mask,
  71. ULONG DataLen,
  72. PVOID Data
  73. );
  74. #endif