WMI for miniport

Are WMI_REQUEST_BLOCK sent to a miniport driver dependent only on
setting
WmiDataProvider in the PORT_CONFIGURATION_INFORMATION structure of the
miniport ?

I guess you are talking of SCSI miniport here. If yes, there are a few things you need to get the WMI working in a SCSI miniport.

  1. In your HwScsiFindAdapter routine, set PPORT_CONFIGURATION_INFORMATION->WmiDataProvider TRUE
  2. Prepare and compile your mof file and embed the compiled file (.bmf) in your .rc file
  3. Handle WMI SRBs that scsiports sends to your miniport using the helper API from SCSIWMI.LIB

Checkout the miniport sample in the DDK on how to use the API from SCSIWMI.LIB

-Bandeep

“Zvi Dubitzky” wrote in message news:xxxxx@ntdev…

Are WMI_REQUEST_BLOCK sent to a miniport driver dependent only on setting
WmiDataProvider in the PORT_CONFIGURATION_INFORMATION structure of the miniport ?

There is a presentation available on the Microsoft website.
Search for - Implementing WMI in SCSI Miniports.

-g

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Bandeep Singh
Sent: Tuesday, September 21, 2004 2:41 PM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] WMI for miniport

I guess you are talking of SCSI miniport here. If yes, there are a few
things you need to get the WMI working in a SCSI miniport.

  1. In your HwScsiFindAdapter routine, set
    PPORT_CONFIGURATION_INFORMATION->WmiDataProvider TRUE
  2. Prepare and compile your mof file and embed the compiled file (.bmf)
    in your .rc file
  3. Handle WMI SRBs that scsiports sends to your miniport using the
    helper API from SCSIWMI.LIB

Checkout the miniport sample in the DDK on how to use the API from
SCSIWMI.LIB

-Bandeep

“Zvi Dubitzky” wrote in message news:xxxxx@ntdev…

Are WMI_REQUEST_BLOCK sent to a miniport driver dependent only on
setting
WmiDataProvider in the PORT_CONFIGURATION_INFORMATION structure of the
miniport ? —
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com