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.
 
 
 
 
 
 

96 lines
1.8 KiB

/******************************Module*Header*******************************\
* Module Name: debugko.cxx
*
* Contains compile in routines that match the kernel debugger extensions
*
* Created: 16-jun-1995
* Author: Andre Vachon [andreva]
*
* Copyright (c) 1990-1999 Microsoft Corporation
\**************************************************************************/
#include "precomp.hxx"
GDIFunctionIDType UnknownGDIFunc = "Unidentified GDI Function";
#if DBG_BASIC
ULONG GreTraceDisplayDriverLoad = 0;
ULONG GreTraceFontLoad = 0;
LONG gWarningLevel = 0;
// DoWarning1 is for ASM functions to call at Warning Level 1
VOID DoWarning1(PSZ psz)
{
if (1 <= gWarningLevel)
{
DbgPrint("GDI: ");
DbgPrint(psz);
DbgPrint("\n");
}
}
VOID DoWarning(PSZ psz, LONG ulLevel)
{
if (ulLevel <= gWarningLevel)
{
DbgPrint("GDI: ");
DbgPrint(psz);
DbgPrint("\n");
}
}
VOID DoRip(PSZ psz)
{
if (gWarningLevel >= 0)
{
DbgPrint("GDI Assertion: ");
DbgPrint(psz);
DbgPrint("\n");
DbgBreakPoint();
}
}
VOID DoIDWarning(PCSTR ID, PSZ psz, LONG ulLevel)
{
if (ulLevel <= gWarningLevel)
{
DbgPrint("GDI: ");
if (ID)
{
DbgPrint((PCH)ID);
DbgPrint(": ");
}
DbgPrint(psz);
DbgPrint("\n");
}
}
VOID DoIDRip(PCSTR ID, PSZ psz)
{
if (gWarningLevel >= 0)
{
DbgPrint("GDI Assertion: ");
if (ID)
{
DbgPrint((PCH)ID);
DbgPrint(": ");
}
DbgPrint(psz);
DbgPrint("\n");
DbgBreakPoint();
}
}
//
// Font debugging
//
#define dprintf DbgPrint
#include <kdftdbg.h>
#endif