home *** CD-ROM | disk | FTP | other *** search
- /////////////////////////////////////////////////////////////////////////////
- //
- // File : MsgTracerLib.h
- // Project : MsgTrace
- // Component : MsgTracerLib
- //---------------------------------------------------------------------------
- // Description : declaration of interfaces to MsgTracerLib.dll
- //
- /////////////////////////////////////////////////////////////////////////////
- //
- // SourceSafe Strings. Do not change.
- //---------------------------------------------------------------------------
- // $Author: jeskes $
- // $Date: $
- // $Revision: $
- //
- /////////////////////////////////////////////////////////////////////////////
-
- #ifndef MSGTRACERLIB_H
- #define MSGTRACERLIB_H
-
- /////////////////////////////////////////////////////////////////////////////
- // exported interfaces
- /////////////////////////////////////////////////////////////////////////////
-
- extern "C"
- {
- void MsgTracerAttachCurrentProcess( BOOL bWait );
- void MsgTracerAttachProcess( DWORD dwProcessId, BOOL bWait );
-
- void MsgTracerWriteA( LPCSTR lpszMessage );
- void MsgTracerWriteW( LPCWSTR lpszMessage );
-
- void __cdecl MsgTracerPrintfA( LPCSTR lpszFormat, ... );
- void __cdecl MsgTracerPrintfW( LPCWSTR lpszMessage, ... );
- }
-
- /////////////////////////////////////////////////////////////////////////////
- // Diagnostic macros
- /////////////////////////////////////////////////////////////////////////////
-
- #ifdef _DEBUG
-
- #define MSG_TRACE_ATTACHPROCESS MsgTracerAttachProcess
- #define MSG_TRACE_ATTACHCURRENTPROCESS MsgTracerAttachCurrentProcess
-
- #ifdef UNICODE
-
- #define MSG_TRACE_WRITE( s ) MsgTracerWriteW( s )
- #define MSG_TRACE_PRINTF( s ) MsgTracerPrintfW s
-
- #else
-
- #define MSG_TRACE_WRITE( s ) MsgTracerWriteA( s )
- #define MSG_TRACE_PRINTF( s ) MsgTracerPrintfA s
-
- #endif
-
- #else
-
- #define MSG_TRACE_ATTACHPROCESS
- #define MSG_TRACE_ATTACHCURRENTPROCESS
-
- #define MSG_TRACE_WRITE( s )
- #define MSG_TRACE_PRINTF( s )
-
- #endif
-
- /////////////////////////////////////////////////////////////////////////////
- #endif
-