uLib  User mode C/C++ extended API library for Win32 programmers.
Debug.cpp File Reference
#include <uLib/Debug.h>
#include <uLib/StrFunc.h>
#include <uLib/UtilFunc.h>

Go to the source code of this file.

Macros

#define USE_ULIB_DBGOUTPUT   0
 
#define _DP_MAXLEN_   512
 
#define DbgOutput(s)   OutputDebugString(s)
 

Functions

CSTR SysErrorMsg (DWORD Err, TSTR Buf, UINT Length)
 
CSTR NtErrorMsg (NTSTATUS Status, TSTR Buf, UINT Size)
 
bool SetLastErrorFromNtStatus (NTSTATUS Status)
 
int SetDebugLevel (int Level)
 
void __cdecl DPrint (int Level, CSTR Fmt,...)
 
HANDLE OpenLogFile (CSTR Name, bool Append)
 
CSTR DefaultLogFileName (HMODULE hModule)
 

Variables

CHAR rt_Tag [] = "dbg_Lvl"
 
int dbg_Level = DP_DEBUG
 
CSTR dbg_Name = _T("[uLib]")
 
HANDLE dbg_LogFile = NULL
 
bool dbg_Flush = false
 
volatile ULONG nDPrintSkipped = 0
 

Macro Definition Documentation

◆ USE_ULIB_DBGOUTPUT

#define USE_ULIB_DBGOUTPUT   0

Definition at line 13 of file Debug.cpp.

◆ _DP_MAXLEN_

#define _DP_MAXLEN_   512

Definition at line 120 of file Debug.cpp.

◆ DbgOutput

#define DbgOutput (   s)    OutputDebugString(s)

Definition at line 125 of file Debug.cpp.

Variable Documentation

◆ rt_Tag

CHAR rt_Tag[] = "dbg_Lvl"

Definition at line 100 of file Debug.cpp.

◆ nDPrintSkipped

volatile ULONG nDPrintSkipped = 0

Definition at line 129 of file Debug.cpp.