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

This is a terrible idea, first there are a lot of situations where there is
no display. For instance Microsoft supports headless operation where all
you have is a console window (no graphics). Also, at boot up and install
time it there are large periods where such a pop up cannot be displayed.

Many servers run in a closet where no one looks at the display. I know of a
firm that lost a huge contract because they not only did a popup from their
driver, they waited for the response. They had a test installation in a
firm based in New York, but the test was in Kansas. The Kansas server hung,
and NY sent some one by plane to discover the stupid driver way waiting for
a mouse click and hanging the computer!

Also, which desktop? With terminal server capabilities most systems can now
support more than one desktop user, how are you going to figure out which
user needs to be notified?

Even with the event log be careful what you log. Logging everything is a
great way to cause the event log to fill up or wrap and make it likely that
the important data in the event log is lost due to your driver. Yes
critical errors should be logged there, but if the error continues to happen
consider it part of the initial event, and do not log every individual
incident.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply

“Sharmila Panse” wrote in message
news:xxxxx@ntdev…
> 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
>

IoRaiseInformationalHardError

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Sharmila Panse”
To: “Windows System Software Devs Interest List”
Sent: Tuesday, June 27, 2006 4:28 PM
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

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

A better way to do this is to offer the user the option of a taskbar
notification icon. This can then show up on the right hand side of the
desktop taskbar and unobtrusively notify the logged in desktop user of
events of importance. It is important to note that this should be an
option for the logged in user, not some global system event that assumes
that there is a desktop and a user who can respond to some message box.
Your driver could communicate with a service which in turn provides
event notifications to all logged in users who have opted for
notification.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Sharmila Panse
Sent: Tuesday, June 27, 2006 8: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

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

If your device is something a specific application talks to, that
application should have a way to check the firmware version in the device
and report it to the user. Returning a private “ERROR_WRONG_FIRMWARE” type
of reuslt to all requests other than the firmware upgrade operation should
keep anything bad from happening.

Loren

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

The service application is trivial: templates exist in the VS
distribution in several programming languages; you just need to fill in
the blanks. The service could of course do the firmware download all on
its own and make the problem disappear.

-----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: Windows System Software Devs Interest List
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

> 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

Not, not service, just a user app. In Vista, there are no ways for services
to show any UI, pre-Vista Windows have such ways but they are strongly
discouraged and frowned upon, considered to be the design flaw of Windows.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

Hello,

I had used IoRaiseInformationalHardError to do this.
According to me, it has 2 problems.

  1. It works only for Windows defined errors. The pop
    up message & the error_code cannot be customised. So
    it may not give clarity on which driver has what
    problem.
  2. The pop up does not come at boot time. It only
    works if you are manually updating driver.

Actually, knowing all these problems, even if one
still wants to have a message box, apart from this
function ‘IoRaiseInformationalHardError’, I could not
find any other function that can write to message box.

I guess, I will have to have a service which
automatically upgrades firmware.

Thanks to everybody.
Sharmila Panse
Indra Networks

— Tony Mason wrote:

> 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
>
> —
> 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