How to go from DevInst coming from CM_*() function to HDEVINFO for use in SetupDi*() functions?

Repost, the other was at the end of a long thread.

I have a DevInst that I got from CM_Get_Parent() and need to get an
HDEVINFO for the same device to feed to a SetupDi*() function.

How do I get from A to B?

Thanks again,

Eric

Gotta love CM and SetupDi.

I don’t know if there’s a better way, but long ago I wrote code that did
this by getting the instance ID through CM_Get_Device_ID/CmDeviceInstance
and then calling SetupDiOpenDeviceInfo.

-scott

Scott Noone
Software Engineer
OSR Open Systems Resources, Inc.
http://www.osronline.com

“Eric Fowler” wrote in message news:xxxxx@ntdev…
> Repost, the other was at the end of a long thread.
>
> I have a DevInst that I got from CM_Get_Parent() and need to get an
> HDEVINFO for the same device to feed to a SetupDi*() function.
>
> How do I get from A to B?
>
> Thanks again,
>
> Eric
>