Controlling Device Manager error string

Hi,
Is there a way to control the string that the Device Manager shows for the
“Device status” ?
I just learned that when a device fails to start (CM_PROB_FAILED_START = 10)
the Device Manager shows the “FailReasonString” value if the device’s
hardware key contains it, but what if a driver wanted to report a different
string each time it fails to start the device (for example, what if a driver
wants to report the actual reason it failed to start the device) ?
And what if I wanted to report my own string for error codes other than
CM_PROB_FAILED_START (for example CM_PROB_FAILED_POST_START = 43) ?

Thanks
Shahar

There is no way to do this in the UI. You can always log an error log
entry in the event log through IoAllocateErrorLogEntry and
IoWriteErrorLogEntry. This is the expected practice for a driver to
provide more information, esp in failure cases.

d

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Shahar Talmi
Sent: Wednesday, November 10, 2004 1:20 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Controlling Device Manager error string

Hi,
Is there a way to control the string that the Device Manager shows for
the
“Device status” ?
I just learned that when a device fails to start (CM_PROB_FAILED_START =
10)
the Device Manager shows the “FailReasonString” value if the device’s
hardware key contains it, but what if a driver wanted to report a
different
string each time it fails to start the device (for example, what if a
driver
wants to report the actual reason it failed to start the device) ?
And what if I wanted to report my own string for error codes other than
CM_PROB_FAILED_START (for example CM_PROB_FAILED_POST_START = 43) ?

Thanks
Shahar


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com