Re: CM_Get_Sibling usage

Tim Jones <[email protected]>
Newsgroups gmane.comp.lang.realbasic.user
Message-ID <[email protected]>
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

> On Jun 9, 2017, at 9:31 AM, Jean-Luc Arnaud <jean-luc-E/[email protected]> wrote:
> 
> 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/

_______________________________________________

Xojo forum:

https://forum.xojo.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.