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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -