|
Is there something wrong with your brain? ? Ask questions like this! ! ! ? ? ? ? ?
Just like you said, plug in the USB flash drive, then open the program, let the program to see if the flash drive is a USB flash drive?? Then I will tell you: it is impossible for him to recognize it if he is killed!!! Come out such a program!!!
Should the program always monitor whether there is an incident? ? Because when the U disk is inserted, the system will receive specific events, so your program can also receive specific events. That is to say, only when the USB flash drive is inserted or removed, can it be judged whether there is a USB flash drive inserted.
The improvised method:
In addition, because GetDriveType judges certain U disks as fixed disks, you have to look at the problem from another angle. It is not that this function is not working, but other people’s U disks are not compatible. Let him die and change the U disk!!! |
|