Hi all,
How to detect if a USB or CD or any other drive is inserted using c++???
I want to detect only drives no other hardware!
Thankyou everyone in advance!!! :)
Are you intimidated by the length? At least a third of that is commentary so that you know what each section of code is doing. It's meant to study from not to plug and go.
Hi all,
can I use GetDriveType() to detect USB. I could constantly run a loop of all drives A to Z and check if it is a Removable drive CD etc...
Any help on that?
can I use GetDriveType() to detect USB?
--> Yes.
GetDriveType() method discriminate the driver type (HDD, USB, DVD driver). However, when you plug new USB into computer, OS doesn't notify to your software
Yes, exactly what I said before and few users got annoyed, although I hope people will listen to you, as you are a older member here and most likely a known one.
I bet you now, he will say - "I fixed my problem" or some BS like that. When in reality he did not. Anyway, not to be rude - but programmer must has his\her own strong research qualities. Copy Pasting will get him no where.
As told you, he will try some BS to close this to avoid his Copy pasting to be shown in public.
Anyway modoran, you are a well polite guy lol. Unlike me.