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

/*++
Copyright (C) 1997-2001 Microsoft Corporation
Module Name:
TRACE.H
Abstract:
Declares the Trace functions.
History:
a-davj 13-July-97 Created.
--*/
#ifndef __TRACE__H_
#define __TRACE__H_
class DebugInfo
{
public:
bool m_bPrint;
WCHAR m_wcError[100];
HRESULT hresError;
void SetString(WCHAR * pIn){ wcsncpy(m_wcError, pIn, 99);};
DebugInfo(bool bPrint) {m_bPrint = bPrint; m_wcError[0] = 0;m_wcError[99] = 0;hresError=0;};
WCHAR * GetString(){return m_wcError;};
};
typedef DebugInfo * PDBG;
int Trace(bool bError, PDBG pDbg, DWORD dwID, ...);
class IntString
{
TCHAR *m_pString;
public:
IntString(DWORD dwID);
~IntString();
operator TCHAR *() { return m_pString; }
};
void CopyOrConvert(TCHAR * pTo, WCHAR * pFrom, int iLen);
class ParseState
{
public:
int m_iPos;
int m_nToken;
ParseState(){ m_iPos=0; m_nToken= 0;};
};
#endif