GetWMIServices? Will it work?

  • Thread starter Thread starter Angchuk
  • Start date Start date
A

Angchuk

Hi,
I am using GetWMIServices to check if a USB hardware is connected to
the System.

e.g.

objWMIService.ExecQuery("Select * from Win32_PnPEntity")

I get the Items and look if the USB Hardware is connected.

It works on Windows XP/2000, But fails to work in XP Embedded.

Can any one suggest a workaround/alternatives.

Thanks in Advance.
 
Thanks for the reply?

I will look for the WMI components? Any idea what needs to be added?

As for the devcon, I added Device Manager to try and device is working
fine.
And I am not receiving any error message from the application; just
that
there is no records returned from WMI.

Angchuk
 
Back
Top