Hi all,
I am trying to implement WMI in HID minidriver. After the driver loads
and I try to open to communicate with the WMI class, I get an error
message that “No instance available for this class” error message.
I used the same MOF file in another dummy driver I created, and every
thing works fine (here I used exactly the same method as on HID mini
driver). I am able to open the instance etc. The instance ID was
actually the machine ID in registry.
During the boot, the driver registerwith WMI using
IoRegistrationCOntrol() and return code was Successful. Also, the
DispatchWMI (which I registered during Driver entry) was also called
multiple time during boot.
However, the difference I noticed between the two driver was that
during boot; HID minidrivers QuerywmiRegInfo function was not called
while for the root enumerated driver it was called. (Isn’t this
function has to be called to get the instance for the class").
What am I doing wrong?
Any help will be highly appreciated.
Regards,
Tee
yes. QueryWmiRegInfo has to be called so that WMI understands the MOF
resource and thus builds the MOF data in its namespace.
I think its a problem with the DeviceObject you are registering. Make sure u
r using the device object that gets created in the AddDevice.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of WDM Developer
Sent: Friday, June 13, 2003 11:54 PM
To: NT Developers Interest List
Subject: [ntdev] HID minidriver and WMI!
Hi all,
I am trying to implement WMI in HID minidriver. After the driver loads
and I try to open to communicate with the WMI class, I get an error
message that “No instance available for this class” error message.
I used the same MOF file in another dummy driver I created, and every
thing works fine (here I used exactly the same method as on HID mini
driver). I am able to open the instance etc. The instance ID was
actually the machine ID in registry.
During the boot, the driver registerwith WMI using
IoRegistrationCOntrol() and return code was Successful. Also, the
DispatchWMI (which I registered during Driver entry) was also called
multiple time during boot.
However, the difference I noticed between the two driver was that
during boot; HID minidrivers QuerywmiRegInfo function was not called
while for the root enumerated driver it was called. (Isn’t this
function has to be called to get the instance for the class").
What am I doing wrong?
Any help will be highly appreciated.
Regards,
Tee
You are currently subscribed to ntdev as: xxxxx@softhome.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
Hidclass does not forward the query reg info request to the miniport, it
completes the request before the miniport will ever see it. This makes
it impossible to register a MOF in a HID miniport with the currently
shipping hidclass implementation. I will forward this issue to the
hidclass dev owner.
thx
D
This posting is provided “AS IS” with no warranties, and confers no
rights.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of WDM Developer
Sent: Friday, June 13, 2003 11:24 AM
To: NT Developers Interest List
Subject: [ntdev] HID minidriver and WMI!
Hi all,
I am trying to implement WMI in HID minidriver. After the driver loads
and I try to open to communicate with the WMI class, I get an error
message that “No instance available for this class” error message.
I used the same MOF file in another dummy driver I created, and every
thing works fine (here I used exactly the same method as on HID mini
driver). I am able to open the instance etc. The instance ID was
actually the machine ID in registry.
During the boot, the driver registerwith WMI using
IoRegistrationCOntrol() and return code was Successful. Also, the
DispatchWMI (which I registered during Driver entry) was also called
multiple time during boot.
However, the difference I noticed between the two driver was that during
boot; HID minidrivers QuerywmiRegInfo function was not called while for
the root enumerated driver it was called. (Isn’t this function has to be
called to get the instance for the class").
What am I doing wrong?
Any help will be highly appreciated.
Regards,
Tee
You are currently subscribed to ntdev as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com