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.

92 lines
2.2 KiB

  1. #if !defined(AFX_TCODATA_H__74C9CD33_EC48_11D2_826A_0008C75BFC19__INCLUDED_)
  2. #define AFX_TCODATA_H__74C9CD33_EC48_11D2_826A_0008C75BFC19__INCLUDED_
  3. //***************************************************************************
  4. //
  5. // judyp May 1999
  6. //
  7. //***************************************************************************
  8. #if _MSC_VER > 1000
  9. #pragma once
  10. #endif // _MSC_VER > 1000
  11. struct TCOData
  12. {
  13. LPTSTR m_lptstrShortDesc;
  14. LPTSTR m_lptstrLongDesc;
  15. ULONG m_ulExpectedResult;
  16. ULONG m_ulAPITest;
  17. LPTSTR m_lptstrExpectedResult;
  18. TRACEHANDLE *m_pTraceHandle;
  19. LPTSTR m_lptstrInstanceName;
  20. LPTSTR m_lptstrLoggerMode;
  21. int m_nGuids;
  22. LPGUID m_lpguidArray;
  23. ULONG m_ulEnable;
  24. ULONG m_ulEnableFlag;
  25. ULONG m_ulEnableLevel;
  26. PEVENT_TRACE_PROPERTIES m_pProps;
  27. LPTSTR m_lptstrValidator;
  28. enum
  29. {
  30. OtherTest = 0,
  31. StartTraceTest = 1,
  32. StopTraceTest = 2,
  33. EnableTraceTest = 3,
  34. QueryTraceTest = 4,
  35. UpdateTraceTest = 5,
  36. QueryAllTracesTest = 6
  37. };
  38. };
  39. struct TCOFunctionalData
  40. {
  41. int m_nProviders;
  42. LPTSTR *m_lptstrProviderArray;
  43. int m_nConsumers;
  44. LPTSTR *m_lptstrConsumerArray;
  45. };
  46. void FreeTCOData (TCOData *pstructTCOData);
  47. void FreeTCOFunctionalData (TCOFunctionalData *pstructTCOFunctionalData);
  48. int GetAllTCOData
  49. (
  50. IN LPCTSTR lpctstrFile,
  51. OUT TCOData **pstructTCOData,
  52. OUT TCOFunctionalData **pstructTCOFunctionalData,
  53. OUT LPTSTR *plptstrErrorDesc, // Any error we had.
  54. IN bool bGetFunctionalData = true
  55. );
  56. int GetTCOData
  57. (
  58. IN CPersistor &PersistorIn,
  59. OUT TCOData *pstructTCOData,
  60. OUT LPTSTR *plptstrErrorDesc // Any error we had.
  61. );
  62. int GetTCOData
  63. ( IN CPersistor &PersistorIn,
  64. OUT LPTSTR *plptstrShortDesc,
  65. OUT LPTSTR *plptstrLongDesc,
  66. OUT ULONG *pExpectedResult,
  67. OUT LPTSTR *plptstrExpectedResult,
  68. OUT TRACEHANDLE **pTraceHandle,
  69. OUT LPTSTR *plptstrInstanceName,
  70. OUT LPTSTR *plptstrLoggerMode,
  71. OUT PEVENT_TRACE_PROPERTIES *pProps,
  72. OUT LPTSTR *plptstrValidator,
  73. OUT LPTSTR *plptstrErrorDesc // Any error we had.
  74. );
  75. int TCOFunctionalObjects
  76. ( IN CPersistor &PersistorIn,
  77. IN OUT TCOFunctionalData *pstructTCOFunctionalData,
  78. OUT LPTSTR *plptstrErrorDesc // Any error we had.
  79. );
  80. #endif // !defined(AFX_TCODATA_H__74C9CD33_EC48_11D2_826A_0008C75BFC19__INCLUDED_)