Printing on command prompt by a driver

Is there any way by which driver can print text messages to the command prompt or open a terminal for itself separately and keep printing to it?I need this for my driver to print information regularly after terminating or starting any process.

> Is there any way by which driver can print text messages to the command prompt or open a terminal

for itself separately and keep printing to it?

No for sure!

I’m really amazed that the people do not understand the OS’s architecture at all.

I need this for my driver to print information regularly after terminating or starting any process.

Then write the command-line-based EXE, open the command prompt and run this EXE, which will consume the events from the driver and print them to stdout.

Also, Windows has an architecture called ETW to consume the events from different sources, including the drivers.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

If you mean for debugging purposes, then you might want to look at DebugView
(sysinternals.com) and filter out everything but your driver’s output.

If you mean for logging purposes, then you might want to create an user mode
application (maybe an application/service pair, depending on what you’re
trying to do exactly) that receives this information from the driver and
then does whatever you want to do with it.

Otherwise, I’m not sure what you mean.

Good luck,

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Thursday, October 28, 2010 5:37 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Printing on command prompt by a driver

Is there any way by which driver can print text messages to the command
prompt or open a terminal for itself separately and keep printing to it?I
need this for my driver to print information regularly after terminating or
starting any process.


NTDEV is sponsored by OSR

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

No, there is not, and this is an incredibly bad idea. Windows can be
running with terminal server and multiple clients whose client gets the
messages? I know of systems that run “lights out” where no one looks at
the display for months.

Use WPP tracing for something like this and have the user open the log.

Don Burn (MVP, Windows DKD)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr

xxxxx@hotmail.com” wrote
in message news:xxxxx@ntdev:

> Is there any way by which driver can print text messages to the command prompt or open a terminal for itself separately and keep printing to it?I need this for my driver to print information regularly after terminating or starting any process.