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.
 
 
 
 
 
 

40 lines
1.0 KiB

#ifndef __BASECSP__DEBUG__H
#define __BASECSP__DEBUG__H
#include <windows.h>
#include <dsysdbg.h>
//
// 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