How to write a simple C program for usb port? -
i want test usb on linux
to detect c new storage device, usb pen drive, inserted, use getlogicaldrives(); or getlogicaldrivestrings() , see if new entries detected.
also have @ how getdriveinfo2 implemented (it uses winapi) , this stack overflow question, related or possibly dupe.
once have logical drive name, open directory , enumerate files there directory findfirstfile().
Comments
Post a Comment