Discussion:
CM_Get_Sibling usage
Jean-Luc Arnaud
2017-06-09 16:31:25 UTC
Permalink
Hi all,

This question is a little bit [OT]. Nevertheless, I hope someone will be
so kind as to reply...

Working on an USB tree project, I'm using PnP Configuration Manager API
calls (CM_Locate_DevNode, CM_Get_Parent, CM_Get_Device_ID_Size and
CM_Get_Device_ID, CM_Get_Child and CM_Get_Sibling) defined as Soft
Declare Function.

All works like a charm but CM_Get_Sibling.

MSDN documentation is not really clear, and I don't understand if
CM_Get_Sibling is expected to return ALL others nodes, or only the next.

If only the next, what's the way to find the following node? Should I
recall CM_Get_Sibling with the Device instance handle CM_Get_Sibling
just returns, until no more nodes?

Thanks for your help
--
Jean-Luc Arnaud


_______________________________________________

Xojo forum:

https://forum.xojo.com/
Tim Jones
2017-06-09 19:16:13 UTC
Permalink
Hi Jean-Luc,

Give this a look to see if it helps:

https://www.codeproject.com/Articles/6445/Enumerate-Installed-Devices-Using-Setup-API <https://www.codeproject.com/Articles/6445/Enumerate-Installed-Devices-Using-Setup-API>

It answered a number of my non-Xojo device questions.

Tim
Post by Jean-Luc Arnaud
Hi all,
This question is a little bit [OT]. Nevertheless, I hope someone will be so kind as to reply...
Working on an USB tree project, I'm using PnP Configuration Manager API calls (CM_Locate_DevNode, CM_Get_Parent, CM_Get_Device_ID_Size and CM_Get_Device_ID, CM_Get_Child and CM_Get_Sibling) defined as Soft Declare Function.
All works like a charm but CM_Get_Sibling.
MSDN documentation is not really clear, and I don't understand if CM_Get_Sibling is expected to return ALL others nodes, or only the next.
If only the next, what's the way to find the following node? Should I recall CM_Get_Sibling with the Device instance handle CM_Get_Sibling just returns, until no more nodes?
Thanks for your help
--
Jean-Luc Arnaud
_______________________________________________
https://forum.xojo.com/
_______________________________________________

Xojo forum:

https://forum.xojo.com/

Continue reading on narkive:
Loading...