A forum for reverse engineering, OS internals and malware analysis 

Forum for discussion about kernel-mode development.
 #11539  by 0x80
 Fri Feb 10, 2012 8:53 am
Hi everyone,

i would like to ask some question. There is a code such as following and i want to read that driver's output through the user mode form application. Is there a code sample that you have ? (or console app)

thank you so much.
Code: Select all
#include <ntddk.h>

NTSTATUS DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath) 
{

DbgPrint(“Hello World\n”);
return STATUS_SUCCESS;

}
 #11540  by EP_X0FF
 Fri Feb 10, 2012 9:09 am
For Windows >= Vista you can use debug print callback in your driver and then redirect text to your user mode app.

See DbgSetDebugPrintCallback.
 #11541  by 0x80
 Fri Feb 10, 2012 9:38 am
EP_X0FF wrote:For Windows >= Vista you can use debug print callback in your driver and then redirect text to your user mode app.

See DbgSetDebugPrintCallback.
thank you for you answer but is there any sample code ?