Re: SCSI miniport-Custom Log messages



Hi,

Thank you for the replies, here is the message table from .sys file.
I have added just one message to test and I don't see this message in the
log description.

1 MESSAGETABLE
{
65573, "Testing TEsting HBA"
}

Does this table look good?

I also include the msg.rc file generated by mc.exe as part of driver.rc.
The driver.res generated by the compiler has a message table and which is
same as .sys as shown above.

Isn’t it already linked as .sys file is referencing the table? And also if I
use IoWriteErrorLogEntry() instead of StorPortLogError(), does WHQL test not
complain about it?

Thanks,
Indira



"Volodymyr M. Shcherbyna" wrote:

If you open your sys file in resource editor (for example, reshacker), and
goto message table, what id do you see there for your custom message?

--
Volodymyr, blog: http://www.shcherbyna.com/
(This posting is provided "AS IS" with no warranties, and confers no
rights)

"Indira" <Indira@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:29503D5E-AF48-491B-986F-D97A391D9424@xxxxxxxxxxxxxxxx
Hi,

Is it possible to generate custom error log messages for SCSI miniport
driver?
I tried the following but no luck:

1. Created a message (.mc) file, compiled and generated a corresponding
.rc
and .bin file, as per WDK and sample code.

2. Updated .inf file for event log as mentioned in the WDK and added .sys
file to look for messages.

3. Calling StorPortLogError() with this custom error ID.

After installing this driver, an event is getting logged in the event log,
however it complains that it's not able to find the description.

The following message is displayed in the description instead of my custom
error message.

"The description for Event ID ( 11 ) in Source (xyz) cannot be found. The
local computer may not have the necessary registry information or message
DLL
files to display messages from a remote computer. You may be able to use
the
/AUXSOURCE= flag to retrieve this description; see Help and Support for
details. The following information is part of the event:
\Device\RaidPort8.
"

Is it possible to have custom error messages in storport-miniport driver?
If
so could some one please point out the missing thing in the above steps?

Thanks,
Indira




.



Relevant Pages

  • Re: SCSI miniport-Custom Log messages
    ... driver. ... generated an error with event ID=11 in the event log. ... Does this StorPortLogError() accepts custom error messages? ...
    (microsoft.public.development.device.drivers)
  • Re: SCSI miniport-Custom Log messages
    ... I’m wondering if StorPortLogError() ever takes any custom error messages. ... about not finding the description in .sys file. ... generated an error with event ID=11 in the event log. ... Does this StorPortLogErroraccepts custom error messages? ...
    (microsoft.public.development.device.drivers)
  • Re: SCSI miniport-Custom Log messages
    ... If you open your sys file in resource editor, and ... Is it possible to generate custom error log messages for SCSI miniport ... Calling StorPortLogErrorwith this custom error ID. ... After installing this driver, an event is getting logged in the event log, ...
    (microsoft.public.development.device.drivers)
  • Re: DEFINE_GUID and its use in SetupDiEnumDeviceInterfaces
    ... WinDbg says Simbol ... ... But if I build my driver I see 0x00000000 in the same spot. ... When I look into .sys file with hex editor I can't find my guid anywhere. ...
    (microsoft.public.development.device.drivers)
  • Re: Driver installation in 64-bit machine
    ... therefore requiring some sort of digital signing for the .sys file? ... can't install the 32-bit driver into the system as now. ...
    (microsoft.public.development.device.drivers)