void DbgPrint(PCHAR pcFormat,...)
{
va_list vaList;
CHAR chFormat[1024];
CHAR chMsg[1024*4];
CHAR chPath[MAX_PATH];
GetModuleFileNameA(NULL,chPath,RTL_NUMBER_OF(chPath)-1);
_snprintf(chFormat,sizeof(chFormat)-1,"[%s] %s",PathFindFileNameA(chPath),pcFormat);
va_start(vaList,pcFormat);
_vsnprintf(chMsg,sizeof(chMsg)-1,chFormat,vaList);
va_end(vaList);
OutputDebugString(chMsg);
}
{
va_list vaList;
CHAR chFormat[1024];
CHAR chMsg[1024*4];
CHAR chPath[MAX_PATH];
GetModuleFileNameA(NULL,chPath,RTL_NUMBER_OF(chPath)-1);
_snprintf(chFormat,sizeof(chFormat)-1,"[%s] %s",PathFindFileNameA(chPath),pcFormat);
va_start(vaList,pcFormat);
_vsnprintf(chMsg,sizeof(chMsg)-1,chFormat,vaList);
va_end(vaList);
OutputDebugString(chMsg);
}