56 #define LOG_FORCIBLY_SET 0x80000000 73 #define DLLIMPORT __declspec(dllimport) 74 #define DLLEXPORT __declspec(dllexport) 78 #define NAME(x) TEXT(x) 82 void WINAPI DbgInitKeyLevels(HKEY hKey,
bool fTakeMax);
83 void WINAPI DbgInitGlobalSettings(
bool fTakeMax);
84 void WINAPI DbgInitModuleSettings(
bool fTakeMax);
85 void WINAPI DbgInitModuleName();
87 LPCSTR szObjectName, LPCWSTR wszObjectName);
106 void WINAPI DbgAssert(LPCTSTR pCondition,LPCTSTR pFileName,INT iLine);
107 void WINAPI DbgBreakPoint(LPCTSTR pCondition,LPCTSTR pFileName,INT iLine);
108 void WINAPI DbgBreakPoint(LPCTSTR pFileName,INT iLine,__format_string LPCTSTR szFormatString,...);
110 void WINAPI DbgKernelAssert(LPCTSTR pCondition,LPCTSTR pFileName,INT iLine);
111 void WINAPI DbgLogInfo(DWORD Type,DWORD Level,__format_string LPCTSTR pFormat,...);
113 void WINAPI DbgLogInfo(DWORD Type,DWORD Level,__format_string LPCSTR pFormat,...);
114 void WINAPI DbgAssert(LPCSTR pCondition,LPCSTR pFileName,INT iLine);
115 void WINAPI DbgBreakPoint(LPCSTR pCondition,LPCSTR pFileName,INT iLine);
116 void WINAPI DbgKernelAssert(LPCSTR pCondition,LPCSTR pFileName,INT iLine);
123 __in_ecount(nCount) CONST
HANDLE *lpHandles,
129 void WINAPI
DisplayType(LPCTSTR label,
const AM_MEDIA_TYPE *pmtIn);
132 void WINAPI
DumpGraph(IFilterGraph *pGraph, DWORD dwLevel);
135 #define KASSERT(_x_) if (!(_x_)) \ 136 DbgKernelAssert(TEXT(#_x_),TEXT(__FILE__),__LINE__) 141 #define KDbgBreak(_x_) \ 142 DbgKernelAssert(TEXT(#_x_),TEXT(__FILE__),__LINE__) 149 #define ASSERT(_x_) if (!(_x_)) \ 150 DbgAssert(TEXT(#_x_),TEXT(__FILE__),__LINE__) 153 #define DbgAssertAligned( _ptr_, _alignment_ ) ASSERT( ((DWORD_PTR) (_ptr_)) % (_alignment_) == 0) 158 #define DbgBreak(_x_) \ 159 DbgBreakPoint(TEXT(#_x_),TEXT(__FILE__),__LINE__) 161 #define EXECUTE_ASSERT(_x_) ASSERT(_x_) 162 #define DbgLog(_x_) DbgLogInfo _x_ 165 #define NOTE(_x_) DbgLog((LOG_TRACE,5,TEXT(_x_))) 166 #define NOTE1(_x_,a) DbgLog((LOG_TRACE,5,TEXT(_x_),a)) 167 #define NOTE2(_x_,a,b) DbgLog((LOG_TRACE,5,TEXT(_x_),a,b)) 168 #define NOTE3(_x_,a,b,c) DbgLog((LOG_TRACE,5,TEXT(_x_),a,b,c)) 169 #define NOTE4(_x_,a,b,c,d) DbgLog((LOG_TRACE,5,TEXT(_x_),a,b,c,d)) 170 #define NOTE5(_x_,a,b,c,d,e) DbgLog((LOG_TRACE,5,TEXT(_x_),a,b,c,d,e)) 179 #define NAME(_x_) ((LPTSTR) NULL) 181 #define DbgInitialise(hInst) 182 #define DbgTerminate() 183 #define DbgLog(_x_) 0 184 #define DbgOutString(psz) 185 #define DbgAssertAligned( _ptr_, _alignment_ ) 0 187 #define DbgRegisterObjectCreation(pObjectName) 188 #define DbgRegisterObjectDestruction(dwCookie) 189 #define DbgDumpObjectRegister() 191 #define DbgCheckModuleLevel(Type,Level) 192 #define DbgSetModuleLevel(Type,Level) 193 #define DbgSetAutoRefreshLevels(fAuto) 195 #define DbgWaitForSingleObject(h) WaitForSingleObject(h, INFINITE) 196 #define DbgWaitForMultipleObjects(nCount, lpHandles, bWaitAll) \ 197 WaitForMultipleObjects(nCount, lpHandles, bWaitAll, INFINITE) 198 #define DbgSetWaitTimeout(dwTimeout) 200 #define KDbgBreak(_x_) 201 #define DbgBreak(_x_) 203 #define KASSERT(_x_) ((void)0) 205 #define ASSERT(_x_) ((void)0) 207 #define EXECUTE_ASSERT(_x_) ((void)(_x_)) 211 #define NOTE(_x_) ((void)0) 212 #define NOTE1(_x_,a) ((void)0) 213 #define NOTE2(_x_,a,b) ((void)0) 214 #define NOTE3(_x_,a,b,c) ((void)0) 215 #define NOTE4(_x_,a,b,c,d) ((void)0) 216 #define NOTE5(_x_,a,b,c,d,e) ((void)0) 218 #define DisplayType(label, pmtIn) ((void)0) 219 #define DumpGraph(pGraph, label) ((void)0) 225 #define CheckPointer(p,ret) {if((p)==NULL) return (ret);} 239 #define ValidateReadPtr(p,cb) 0 240 #define ValidateWritePtr(p,cb) 0 241 #define ValidateReadWritePtr(p,cb) 0 242 #define ValidateStringPtr(p) 0 243 #define ValidateStringPtrA(p) 0 244 #define ValidateStringPtrW(p) 0 261 class CGuidNameList {
263 CHAR *operator [] (
const GUID& guid);
266 extern CGuidNameList GuidNames;
278 #define QQUOTE(y) QUOTE(y) 279 #define REMIND(str) __FILE__ "(" QQUOTE(__LINE__) ") : " str 302 CDisp(REFCLSID clsid);
309 CDisp(IUnknown *pUnk);
310 #endif // __strmif_h__ 327 static const TCHAR _szEntering[];
328 static const TCHAR _szLeaving[];
330 CAutoTrace(LPCTSTR szBlkName,
const int level = 15)
331 : _szBlkName(szBlkName), _level(level)
338 #if defined (__FUNCTION__) 340 #define AMTRACEFN() CAutoTrace __trace(TEXT(__FUNCTION__)) 341 #define AMTRACE(_x_) CAutoTrace __trace(TEXT(__FUNCTION__)) 345 #define AMTRACE(_x_) CAutoTrace __trace _x_ 357 #endif // __WXDEBUG__ struct tag_ObjectDesc ObjectDesc
#define DbgOutString(psz)
#define DumpGraph(pGraph, label)
#define DbgWaitForMultipleObjects(nCount, lpHandles, bWaitAll)
#define DbgCheckModuleLevel(Type, Level)
CDisp(LONGLONG ll, int Format=CDISP_HEX)
#define DbgSetModuleLevel(Type, Level)
#define DbgSetAutoRefreshLevels(fAuto)
#define DisplayType(label, pmtIn)
#define DbgInitialise(hInst)
#define DbgSetWaitTimeout(dwTimeout)
#define DbgDumpObjectRegister()
#define DbgWaitForSingleObject(h)
#define DbgRegisterObjectDestruction(dwCookie)
#define DbgRegisterObjectCreation(pObjectName)