Can dbgPrint() get hooked?

Hi Experts,
Can we hook dbgPrint()/KdPrint() functions? I think DebugView does the
same thing…
I tried to google but did not get anything worth.

Ravi

Yes, see DbgSetDebugPrintCallback

mm

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ravi Gupta
Sent: Saturday, January 12, 2013 5:53 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Can dbgPrint() get hooked?

Hi Experts,
Can we hook dbgPrint()/KdPrint() functions? I think DebugView does the
same thing…
I tried to google but did not get anything worth.

Ravi
— NTDEV is sponsored by OSR OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars To unsubscribe, visit the List Server section of
OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Perhaps have a look at this page:

http://devmaster.net/forums/topic/8628-capturing-outputdebugstring/

When you want to trace messages from other processes, remove the if-statement:

// if (dbBuffer->dwProcessId == pid)
{
printf(“%s”, dbBuffer->data);
}