Hi,
I am working on a piece of software that investigates bus enumerated devices
that are connected to a certain machine.
Up until not long ago I used SetupDi API to retrieve device handles and I
retrieved their parent devices using CM_Get_Parent() so I’ll be able to test
if they are attached to the bus I am investigating.
The problem is that SetupDi API requires RPC (and file and print sharing) to
be available on the investigated machine, which is not an assumption I can
make.
In order to solve this problem I decided to change my method of probing to
reading registry values and retrieving as much information as possible using
WMI.
I believe I am now at point where I can retrieve all the information I need
using WMI, that is with the exception of getting the parent device of the
one I am enumerating (I previously used CM_Get_Parent for doing this).
Can anybody suggest a method of getting the device parent using WMI or
simply by reading information from the registry?
Thanks,
Shahar