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.

65 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. Trace Manager
  5. Abstract:
  6. This does all the interfacing with the tracing code.
  7. Author:
  8. Marc Reyhner 8/28/2000
  9. --*/
  10. #ifndef __TRACEMANAGER_H__
  11. #define __TRACEMANAGER_H__
  12. // We aren't tracing in this app so we only define tracegroup so that
  13. // we can include atrcapi.h
  14. #define TRC_GROUP junk
  15. #define OS_WIN32
  16. #include <adcgbase.h>
  17. #include <atrcapi.h>
  18. #undef TRC_GROUP
  19. class CZippyWindow;
  20. class CTraceManager
  21. {
  22. public:
  23. static DWORD _InitTraceManager();
  24. static VOID _CleanupTraceManager();
  25. CTraceManager();
  26. virtual ~CTraceManager();
  27. VOID TRC_ResetTraceFiles();
  28. BOOL SetCurrentConfig(PTRC_CONFIG lpNewConfig);
  29. BOOL GetCurrentConfig(PTRC_CONFIG lpConfig);
  30. DWORD StartListenThread(CZippyWindow *rZippyWindow);
  31. DWORD StopListenThread();
  32. private:
  33. static HANDLE gm_hDBWinSharedDataHandle;
  34. static LPVOID gm_hDBWinSharedData;
  35. static HANDLE gm_hDBWinDataReady;
  36. static HANDLE gm_hDBWinDataAck;
  37. CZippyWindow *m_rZippyWindow;
  38. HANDLE m_hThread;
  39. BOOL m_bThreadStop;
  40. static DWORD WINAPI _ThreadProc(LPVOID lpParameter);
  41. DWORD ThreadProc();
  42. VOID OnNewData();
  43. };
  44. #endif