I am interested in getting the device information in c#.
I am writing the user mode of a device driver in c# and I have the GUID of
the device.
I would like to get the symbolic name (friendly name) of the device (all the
devices) that belongs to the specific GUID (in c#, not in native).
Thanks,
Shiri.
Your description is a bit confused, but there are certainly samples on the
web showing how to call the SetupDi APIs from managed code.
Why do you shun native code so?
--
Tim Roberts, ti...@probo.com
Providenza & Boekelheide, Inc.
Thanks for your response.
I tried using SetupDi functions in my code and i couldn't get the friendly
name of the device properly.
That's why i was intersted in getting the friendly name in other way without
using SetupDi.
Do you know if there us an API in the WMI that expose this options? - if not
do you have an example of using SetupDi in c# to get the friendly name
according to GUID.
Thanks a lot.
Shiri.
SetupDi is the right way. There are a lot of parameters, and a lot of ways
to get them wrong.
>Do you know if there us an API in the WMI that expose this options? - if not
>do you have an example of using SetupDi in c# to get the friendly name
>according to GUID.
I believe it is exposed through WMI, but I'm not enough of a WMI guy to
know it.