How to test wmi in my scsi miniport driver?

Discussion in 'Windows Vista Drivers' started by sam, Jul 24, 2003.

  1. sam

    sam Guest

    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.
    sam, Jul 24, 2003
    1. Advertisements

  2. The User-Mode part of WMI is designed to pick-up addition and removal of
    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
    and it has a permanent listener in the winmgmt service starting WinXP.
    Ivan Brugiolo [MSFT], Jul 24, 2003
    1. Advertisements

  3. 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

    or look for DpWmiQueryReginfo in MSDN
    Ivan Brugiolo [MSFT], Jul 25, 2003
  4. use IoWMIRegistrationControl routine to register it to
    Look in the documentation for HwScsiWmiQueryReginfo and friends.

    Maxim S. Shatskih, Jul 25, 2003
  5. or look for DpWmiQueryReginfo in MSDN

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

    Maxim S. Shatskih, Jul 25, 2003
  6. Can you tell me whether i can see MOF-recouse in
    Yes, this is enough for your device to be visible in WBEMTEST.

    Maxim S. Shatskih, Jul 29, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.