I want to know how to check if USB port is mounted...
I programmed some sources , which run to read data-files in usb storage.
And I have no input systems; no keyboard, no mouse, no touchpad screen...
I want immediately to stop running my program when I disconnect USB port
physically.
In this point, the program is checking in every 3 seconds whether USB is
mounted.
If USB is connected and mounted, programs continue running and if not, they
must be stoped automatically.
Everything is OK but checking USB port.
How can I program in C?
Please show me the sources in C...
Thanks with God!