Hi,
I am wondering that how to find out the available/attached
device file start with some specific name. example :
"/dev/tty.usbmodemXXXXXX1" .
I want to find out all the device file name programatically
and filled up in Application's listbox. I tried with IOKit with passing
product ID and verdor ID but it did not work at all and even though it
will return me the only one device file name with matched product ID .
I want to do it at run time where user do not have to pass any
parameter like vendor id or product id , the application itself find
out the attached device file name in StartUp callback and filled up
respective listbox.
Is there any other way to find out using simple "Pure
C-code" . I just want to fill up listbox with available device file
with some specific starting character ( in my case its *.usb )
Does anyone have any code snippet for the same or any tips
how should i solve this problem?
Thanks in advance.