Find device filename thru Mach-0 project

Find device filename thru Mach-0 project

Post by Neel » Tue, 21 Jun 2005 22:07:51


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.
 
 
 

Find device filename thru Mach-0 project

Post by Ben Arti » Tue, 21 Jun 2005 23:36:08

In article < XXXX@XXXXX.COM >,



< http://www.yqcomputer.com/
/WWSerial_SerialDevs/chapter_2_section_6.html>

hth

Ben

--
If this message helped you, consider buying an item
from my wish list: < http://www.yqcomputer.com/ ;

I changed my name: < http://www.yqcomputer.com/ ;