RamenWarrior
2010-06-18 16:34:32 UTC
I am adding WMI support to my storport driver and used the sample code in the
DDK iSCSI driver as a foundation. My driver is simply trying to support the
HBA API and does not have any unique data to provide. There is no MOF for my
driver and I am simply using the GUID provided in Windows header files to
describe the data that can be retrieved from my driver.
The first time I executed my code I got a BSOD. After tracing through the
code, I determined that the srb->DataPath was NULL and that pointer was being
used inside scsiwmi.lib while processing the WMI request. I replaced the NULL
with a pointer to a GUID that I support and the code executed without
crashing.
I am not sure why the srb->DataPath would be used for the first WMI request.
I was expecting it to be a simple QueryRegInfo request, trying to identify
the MOF that might be defined in my storport driver.
Does anyone have any ideas about what might be happening?
DDK iSCSI driver as a foundation. My driver is simply trying to support the
HBA API and does not have any unique data to provide. There is no MOF for my
driver and I am simply using the GUID provided in Windows header files to
describe the data that can be retrieved from my driver.
The first time I executed my code I got a BSOD. After tracing through the
code, I determined that the srb->DataPath was NULL and that pointer was being
used inside scsiwmi.lib while processing the WMI request. I replaced the NULL
with a pointer to a GUID that I support and the code executed without
crashing.
I am not sure why the srb->DataPath would be used for the first WMI request.
I was expecting it to be a simple QueryRegInfo request, trying to identify
the MOF that might be defined in my storport driver.
Does anyone have any ideas about what might be happening?