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.

117 lines
1.9 KiB

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. log_wmi.h
  5. Abstract:
  6. <abstract>
  7. --*/
  8. #ifndef _LOG_WMI_H_
  9. #define _LOG_WMI_H_
  10. #define WMILOG_VERSION ((DWORD) (0x000006FF))
  11. PDH_FUNCTION
  12. PdhiOpenInputWmiLog (
  13. IN PPDHI_LOG pLog
  14. );
  15. PDH_FUNCTION
  16. PdhiOpenOutputWmiLog (
  17. IN PPDHI_LOG pLog
  18. );
  19. //PDH_FUNCTION
  20. //PdhiOpenUpdateBinaryLog (
  21. // IN PPDHI_LOG pLog
  22. //);
  23. //PDH_FUNCTION
  24. //PdhiUpdateBinaryLogFileCatalog (
  25. // IN PPDHI_LOG pLog
  26. //);
  27. PDH_FUNCTION
  28. PdhiCloseWmiLog (
  29. IN PPDHI_LOG pLog,
  30. IN DWORD dwFlags
  31. );
  32. PDH_FUNCTION
  33. PdhiGetWmiLogFileSize(
  34. IN PPDHI_LOG pLog,
  35. IN LONGLONG * llSize
  36. );
  37. PDH_FUNCTION
  38. PdhiWriteWmiLogHeader (
  39. IN PPDHI_LOG pLog,
  40. IN LPCWSTR szUserCaption
  41. );
  42. PDH_FUNCTION
  43. PdhiWriteWmiLogRecord (
  44. IN PPDHI_LOG pLog,
  45. IN SYSTEMTIME * stTimeStamp,
  46. IN LPCWSTR szUserString
  47. );
  48. PDH_FUNCTION
  49. PdhiRewindWmiLog(
  50. IN PPDHI_LOG pLog
  51. );
  52. PDH_FUNCTION
  53. PdhiReadWmiHeaderRecord(
  54. IN PPDHI_LOG pLog,
  55. IN LPVOID pRecord,
  56. IN DWORD dwMaxSize
  57. );
  58. PDH_FUNCTION
  59. PdhiReadNextWmiRecord(
  60. IN PPDHI_LOG pLog,
  61. IN LPVOID pRecord,
  62. IN DWORD dwMaxSize,
  63. IN BOOLEAN bAllCounter
  64. );
  65. PDH_FUNCTION
  66. PdhiReadTimeWmiRecord(
  67. IN PPDHI_LOG pLog,
  68. IN ULONGLONG TimeStamp,
  69. IN LPVOID pRecord,
  70. IN DWORD dwMaxSize
  71. );
  72. PDH_FUNCTION
  73. PdhiGetTimeRangeFromWmiLog (
  74. IN PPDHI_LOG hLog,
  75. IN LPDWORD pdwNumEntries,
  76. IN PPDH_TIME_INFO pInfo,
  77. IN LPDWORD pdwBufferSize
  78. );
  79. PDH_FUNCTION
  80. PdhiEnumObjectItemsFromWmiLog (
  81. IN PPDHI_LOG pLog,
  82. IN LPCWSTR szMachineName,
  83. IN LPCWSTR szObjectName,
  84. IN PDHI_COUNTER_TABLE CounterTable,
  85. IN DWORD dwDetailLevel,
  86. IN DWORD dwFlags
  87. );
  88. PDH_FUNCTION
  89. PdhiGetWmiLogCounterInfo (
  90. IN PPDHI_LOG pLog,
  91. IN PPDHI_COUNTER pCounter
  92. );
  93. #endif // _LOG_WMI_H_