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.

122 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. Wmilog.h
  5. Abstract:
  6. This module contains Wmi loging support
  7. Author:
  8. Hanumant Yadav (hanumany)
  9. Environment:
  10. NT Kernel Model Driver only
  11. --*/
  12. #ifndef _WMILOG_H_
  13. #define _WMILOG_H_
  14. #ifdef WMI_TRACING
  15. #define ACPIWMILOGEVENT(a1) {ACPIWmiLogEvent a1;}
  16. #else
  17. #define ACPIWMILOGEVENT(a1)
  18. #endif
  19. #ifdef WMI_TRACING
  20. //
  21. // Defines
  22. //
  23. #define AMLI_LOG_GUID 0x0
  24. #define ACPI_TRACE_MOF_FILE L"ACPIMOFResource"
  25. //
  26. // Globals
  27. //
  28. extern GUID GUID_List[];
  29. extern ULONG ACPIWmiTraceEnable;
  30. extern ULONG ACPIWmiTraceGlobalEnable;
  31. extern TRACEHANDLE ACPIWmiLoggerHandle;
  32. // End Globals
  33. //
  34. // Structures
  35. //
  36. typedef struct
  37. {
  38. EVENT_TRACE_HEADER Header;
  39. MOF_FIELD Data;
  40. } WMI_LOG_DATA, *PWMI_LOG_DATA;
  41. //
  42. // Function Prototypes
  43. //
  44. VOID
  45. ACPIWmiInitLog(
  46. IN PDEVICE_OBJECT ACPIDeviceObject
  47. );
  48. VOID
  49. ACPIWmiUnRegisterLog(
  50. IN PDEVICE_OBJECT ACPIDeviceObject
  51. );
  52. NTSTATUS
  53. ACPIWmiRegisterGuids(
  54. IN PWMIREGINFO WmiRegInfo,
  55. IN ULONG wmiRegInfoSize,
  56. IN PULONG pReturnSize
  57. );
  58. VOID
  59. ACPIGetWmiLogGlobalHandle(
  60. VOID
  61. );
  62. NTSTATUS
  63. ACPIWmiEnableLog(
  64. IN PVOID Buffer,
  65. IN ULONG BufferSize
  66. );
  67. NTSTATUS
  68. ACPIWmiDisableLog(
  69. VOID
  70. );
  71. NTSTATUS
  72. ACPIWmiLogEvent(
  73. IN UCHAR LogLevel,
  74. IN UCHAR LogType,
  75. IN GUID LogGUID,
  76. IN PUCHAR Format,
  77. IN ...
  78. );
  79. NTSTATUS
  80. ACPIDispatchWmiLog(
  81. IN PDEVICE_OBJECT DeviceObject,
  82. IN PIRP Irp
  83. );
  84. #endif //WMI_TRACING
  85. #endif // _WMILOG_H_