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.

67 lines
1.7 KiB

  1. // regtrace.h : main header file for the REGTRACE application
  2. //
  3. #ifndef __AFXWIN_H__
  4. #error include 'stdafx.h' before including this file for PCH
  5. #endif
  6. #include "resource.h" // main symbols
  7. #include "regsheet.h"
  8. #include "pgtrace.h"
  9. #include "pgoutput.h"
  10. #include "pgthread.h"
  11. #include "dbgtrace.h"
  12. #include "dlgconn.h"
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CRegTraceApp:
  15. // See regtrace.cpp for the implementation of this class
  16. //
  17. class CRegTraceApp : public CWinApp
  18. {
  19. public:
  20. CRegTraceApp();
  21. // Overrides
  22. // ClassWizard generated virtual function overrides
  23. //{{AFX_VIRTUAL(CRegTraceApp)
  24. public:
  25. virtual BOOL InitInstance();
  26. //}}AFX_VIRTUAL
  27. // Implementation
  28. LONG OpenTraceRegKey( void );
  29. BOOL CloseTraceRegKey( void );
  30. BOOL GetTraceRegDword( LPTSTR pszValue, LPDWORD pdw );
  31. BOOL GetTraceRegString( LPTSTR pszValue, CString& sz );
  32. BOOL SetTraceRegDword( LPTSTR pszValue, DWORD dwData );
  33. BOOL SetTraceRegString( LPTSTR pszValue, CString& sz );
  34. BOOL IsRemoteMsnServer( void ) { return m_szCmdLineServer[0] != '\0'; }
  35. void SetRemoteRegKey( HKEY hKey ) { m_hRegMachineKey = hKey; }
  36. LPSTR GetRemoteServerName( void ) { return m_szCmdLineServer; }
  37. protected:
  38. HKEY m_hRegKey;
  39. HKEY m_hRegMachineKey;
  40. static char m_szDebugAsyncTrace[];
  41. char m_szCmdLineServer[128];
  42. CConnectDlg m_dlgConnect;
  43. //{{AFX_MSG(CRegTraceApp)
  44. // NOTE - the ClassWizard will add and remove member functions here.
  45. // DO NOT EDIT what you see in these blocks of generated code !
  46. //}}AFX_MSG
  47. DECLARE_MESSAGE_MAP()
  48. };
  49. /////////////////////////////////////////////////////////////////////////////
  50. #define App (*(CRegTraceApp *)AfxGetApp())