00001
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef _PRECOMP_H
00031 #define _PRECOMP_H
00032
00033
00034
00035 #if(!defined(WINVER) || (WINVER < 0x0500))
00036 #undef WINVER
00037 #define WINVER 0x0500
00038 #endif
00039 #if(!defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0500))
00040 #undef _WIN32_WINNT
00041 #define _WIN32_WINNT 0x0500
00042 #endif
00043
00044
00045
00046 #pragma warning (disable: 4786)
00047
00048 #include <STDDEF.H>
00049 #include <STDLIB.H>
00050 #include <OBJBASE.H>
00051 #include <STDARG.H>
00052 #include <STDIO.H>
00053 #include <WINDEF.H>
00054 #include <WINERROR.H>
00055 #include <WINBASE.H>
00056 #include <WINGDI.H>
00057 #include <crtdbg.h>
00058 extern "C"
00059 {
00060 #include <WINDDI.H>
00061 }
00062 #include <TCHAR.H>
00063 #include <EXCPT.H>
00064 #include <ASSERT.H>
00065 #include <PRINTOEM.H>
00066
00067 #define COUNTOF(p) (sizeof(p)/sizeof(*(p)))
00068
00069 void SAMTrace(LPCWSTR lpszFormat, ...);
00070
00071 #if defined(_DEBUG) || defined(ENABLE_TRACE)
00072 #define TRACE SAMTrace
00073 #else
00074 #define TRACE 1 ? 0 : SAMTrace
00075 #endif
00076
00077 #endif