Have you considered trying IoRaiseInformationalHardError? You would
have to fit it within the existing defined status values, but it will
create a visible user message from the tool tray. For example, I
recently used STATUS_FILE_CORRUPT_ERROR and it allowed me to indicate
the name of the corrupted file.
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Sharmila Panse
Sent: Wednesday, June 28, 2006 7:36 AM
To: ntdev redirect
Subject: RE: [ntdev] Message Box for errors
Thanks Gary.G.Little, Don Burn & Roddy Mark for your
help,
I am logging a critical error. My driver loads for a
hardware, which has a flash memory. If the driver
finds that the flash program’s version is not
upgraded, at driver installation or driver upgrade,
then this error event is logged. Although the driver
has detected error, I have to successfully complete
AddDevice IRP, since the upgrade can be only done
through the driver’s ioctl. The hardware is not
functional till upgrade. The user may not come to know
this problem, if event log is not checked. That is the
reason why I wanted some message to pop up, so that he
would run flash-upgrade.
After reading your responses, I can now see multiple
problems in this. Specially, boot time or console mode
may not display pop up. I like taskbar notification
icon suggestion but I will have to create a service
just for that. Is there any better way to notify
version mismatch error to user while driver is
loading?
Thanks,
Sharmila Panse
Indra Networks
— xxxxx@seagate.com wrote:
Consider that event logs are for you, or whoever has
to fix the next bug.
You put as much or as little information in them as
you deem necessary.
Given that, why would you care if the user looks at
the event logs? When
things go bump in the night, they will be calling
you, and you can then
have them SEND you the event logs, or you can remote
desktop in and look
at them, as well as any pertinent dumps. If you
really need them to
monitor the event logs then do so via training.
Personally, I get enough silly pain-in-the-ass pop
windows from the Vista
Beta. I don’t need, nor do I want, another one
telling me to go look at
the event logs.
Gary G. Little
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf
Of
xxxxx@yahoo.com
Sent: Tuesday, June 27, 2006 7:28 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Message Box for errors
Hello,
I have implemented event logging so that for
critical
errors my driver puts a error message to event log.
But considering the possibility that the user may
not
view event logs, is it possible to generate a pop-up
message box with driver specific message warning
user
that error has occured?
Thanks,
Sharmila Panse
Indra Networks
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR
Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR
Online at
http://www.osronline.com/page.cfm?name=ListServer
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer