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.

131 lines
2.3 KiB

  1. /*++
  2. Copyright (C) 1998-1999 Microsoft Corporation
  3. Module Name:
  4. log_SQL.h
  5. Abstract:
  6. <abstract>
  7. --*/
  8. #ifndef _LOG_SQL_H_
  9. #define _LOG_SQL_H_
  10. PDH_FUNCTION
  11. PdhiOpenInputSQLLog (
  12. IN PPDHI_LOG pLog
  13. );
  14. PDH_FUNCTION
  15. PdhiOpenOutputSQLLog (
  16. IN PPDHI_LOG pLog
  17. );
  18. PDH_FUNCTION
  19. PdhiCloseSQLLog (
  20. IN PPDHI_LOG pLog,
  21. IN DWORD dwFlags
  22. );
  23. PDH_FUNCTION
  24. ReportSQLError (
  25. IN PPDHI_LOG pLog,
  26. signed short rc,
  27. void * hstmt,
  28. DWORD dwEventNumber
  29. );
  30. PDH_FUNCTION
  31. PdhiGetSQLLogCounterInfo (
  32. IN PPDHI_LOG pLog,
  33. IN PPDHI_COUNTER pCounter
  34. );
  35. PDH_FUNCTION
  36. PdhiWriteSQLLogHeader (
  37. IN PPDHI_LOG pLog,
  38. IN LPCWSTR szUserCaption
  39. );
  40. PDH_FUNCTION
  41. PdhiWriteSQLLogRecord (
  42. IN PPDHI_LOG pLog,
  43. IN SYSTEMTIME *pTimeStamp,
  44. IN LPCWSTR szUserString
  45. );
  46. PDH_FUNCTION
  47. PdhiEnumMachinesFromSQLLog (
  48. PPDHI_LOG pLog,
  49. LPVOID pBuffer,
  50. LPDWORD lpdwBufferSize,
  51. BOOL bUnicodeDest
  52. );
  53. PDH_FUNCTION
  54. PdhiEnumObjectsFromSQLLog (
  55. IN PPDHI_LOG pLog,
  56. IN LPCWSTR szMachineName,
  57. IN LPVOID mszObjectList,
  58. IN LPDWORD pcchBufferSize,
  59. IN DWORD dwDetailLevel,
  60. IN BOOL bUnicode
  61. );
  62. PDH_FUNCTION
  63. PdhiEnumObjectItemsFromSQLLog (
  64. IN PPDHI_LOG hDataSource,
  65. IN LPCWSTR szMachineName,
  66. IN LPCWSTR szObjectName,
  67. IN PDHI_COUNTER_TABLE CounterTable,
  68. IN DWORD dwDetailLevel,
  69. IN DWORD dwFlags
  70. );
  71. PDH_FUNCTION
  72. PdhiGetMatchingSQLLogRecord (
  73. IN PPDHI_LOG pLog,
  74. IN LONGLONG *pStartTime,
  75. IN LPDWORD pdwIndex
  76. );
  77. PDH_FUNCTION
  78. PdhiGetCounterValueFromSQLLog (
  79. IN PPDHI_LOG hLog,
  80. IN DWORD dwIndex,
  81. IN PPDHI_COUNTER pPath,
  82. IN PPDH_RAW_COUNTER pValue
  83. );
  84. PDH_FUNCTION
  85. PdhiGetTimeRangeFromSQLLog (
  86. IN PPDHI_LOG hLog,
  87. IN LPDWORD pdwNumEntries,
  88. IN PPDH_TIME_INFO pInfo,
  89. IN LPDWORD dwBufferSize
  90. );
  91. PDH_FUNCTION
  92. PdhiReadRawSQLLogRecord (
  93. IN PPDHI_LOG pLog,
  94. IN FILETIME *ftRecord,
  95. IN PPDH_RAW_LOG_RECORD pBuffer,
  96. IN LPDWORD pdwBufferLength
  97. );
  98. PDH_FUNCTION
  99. PdhiListHeaderFromSQLLog (
  100. IN PPDHI_LOG pLog,
  101. IN LPVOID mszHeaderList,
  102. IN LPDWORD pcchHeaderListSize,
  103. IN BOOL bUnicode
  104. );
  105. #endif // _LOG_SQL_H_