Tech Support > Microsoft Windows > Drivers > How to test wmi in my scsi miniport driver?
How to test wmi in my scsi miniport driver?
Posted by sam on July 24th, 2003


hi,
I add wmi feature in my scsi miniport driver.
I use wbemtest.exe to read my wmi information from my
device but it responds "not found". I don't know whether i
need to register wmi class in my scsi miniport driver? But
i don't find any way to register it in this layer.
However,the document says to register it in scsi driver by
IoWMIRegistrationControl because scsi driver layer can
handles IRPs. Is there any way to inform upper layer to
register wmi class? Or, i need to write a driver code to
pile it on them?
I don't clearly understand the document,any of your
comments will be highly appreciated.

Posted by Ivan Brugiolo [MSFT] on July 24th, 2003


The User-Mode part of WMI is designed to pick-up addition and removal of
MOF-resources,
and publish the classes in the root\WMI namespace.
Once the classes are there, your driver will be notified for query, updates,
enable/disable, enumerations,
according to what you've designed to be available in the MOF file.
The re-discovery is done when you first connect to the root\wmi namespace in
W2K,
and it has a permanent listener in the winmgmt service starting WinXP.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"sam" <sam@tpe.accusys.com.tw> wrote in message
news:083101c351cd$12560a40$a601280a@phx.gbl...


Posted by Ivan Brugiolo [MSFT] on July 25th, 2003


Search goole for a thread titled "Re: ExecuteMethod fail in WDM driver"
over there there is a bare bone driver that performs WMI registration
passing the name of the binary mof resource used to publish instrumentation
information.

or look for DpWmiQueryReginfo in MSDN

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm


"sam" <sam@tpe.accusys.com.tw> wrote in message
news:0a4301c35292$1c099a00$a101280a@phx.gbl...


Posted by Maxim S. Shatskih on July 25th, 2003


Look in the documentation for HwScsiWmiQueryReginfo and friends.

Max



Posted by Maxim S. Shatskih on July 25th, 2003


SCSI miniports do not use WMILIB and thus DpWmiQueryReginfo.
Instead, SCSIPORT provides its own WMILIB-style functionality.

Max



Posted by Maxim S. Shatskih on July 29th, 2003


Yes, this is enough for your device to be visible in WBEMTEST.

Max