#ifndef __BASECSP__DEBUG__H #define __BASECSP__DEBUG__H #include #include // // Debug Support // // This uses the debug routines from dsysdbg.h // Debug output will only be available in chk // bits. // DECLARE_DEBUG2(Basecsp) #define DEB_TRACE_CSP 0x00000001 #define DEB_TRACE_FINDCARD 0x00000002 #define DEB_TRACE_CACHE 0x00000004 #define DEB_TRACE_MEM 0x00000008 #define DEB_TRACE_CRYPTOAPI 0x00000010 #if DBG #define DebugLog(x) BasecspDebugPrint x #else #define DebugLog(x) #endif #define LOG_CHECK_ALLOC(x) \ { if (NULL == x) { \ dwSts = ERROR_NOT_ENOUGH_MEMORY; \ DebugLog((DEB_TRACE_MEM, "%s: Allocation failed\n", #x)); \ goto Ret; \ } } void CspInitializeDebug(void); void CspUnloadDebug(void); #endif