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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -