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.

57 lines
947 B

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. TRACE.H
  5. Abstract:
  6. Declares the Trace functions.
  7. History:
  8. a-davj 13-July-97 Created.
  9. --*/
  10. #ifndef __TRACE__H_
  11. #define __TRACE__H_
  12. class DebugInfo
  13. {
  14. public:
  15. bool m_bPrint;
  16. WCHAR m_wcError[100];
  17. HRESULT hresError;
  18. void SetString(WCHAR * pIn){ wcsncpy(m_wcError, pIn, 99);};
  19. DebugInfo(bool bPrint) {m_bPrint = bPrint; m_wcError[0] = 0;m_wcError[99] = 0;hresError=0;};
  20. WCHAR * GetString(){return m_wcError;};
  21. };
  22. typedef DebugInfo * PDBG;
  23. int Trace(bool bError, PDBG pDbg, DWORD dwID, ...);
  24. class IntString
  25. {
  26. TCHAR *m_pString;
  27. public:
  28. IntString(DWORD dwID);
  29. ~IntString();
  30. operator TCHAR *() { return m_pString; }
  31. };
  32. void CopyOrConvert(TCHAR * pTo, WCHAR * pFrom, int iLen);
  33. class ParseState
  34. {
  35. public:
  36. int m_iPos;
  37. int m_nToken;
  38. ParseState(){ m_iPos=0; m_nToken= 0;};
  39. };
  40. #endif