Browsing articles tagged with " VB.NET"
May
3
2009
3
2009
[VB.NET] Detect whether the USB device is plugged in or taken out without timer
.NET programming The following VB.NET code will help you to check whether a USB device is plugged in or taken out. No timer is used here. You can integrate this tip to your program just by copy and paste. Private WM_DEVICECHANGE As Integer = &H219 Public Enum WM_DEVICECHANGE_WPPARAMS As Integer DBT_CONFIGCHANGECANCELED = &H19 DBT_CONFIGCHANGED = &H18 DBT_CUSTOMEVENT = &H8006 DBT_DEVICEARRIVAL = &H8000 DBT_DEVICEQUERYREMOVE = &H8001 DBT_DEVICEQUERYREMOVEFAILED = &H8002 DBT_DEVICEREMOVECOMPLETE = &H8004 DBT_DEVICEREMOVEPENDING = &H8003 DBT_DEVICETYPESPECIFIC [...]
Categories
- Diary (10)
- IT (19)
- Programming (6)
- Life (6)
- LTT App Store (1)
- Mechatronics (6)
- Others (1)
EverBot.com
EverBot twitter
- Looking forward to seeing Ice Cream Sandwich on my old little Desire. Gonna be in-ter-rest-ting! 2 months ago
- I've learned that everything is uncertain. 4 months ago
- Every morning starts freshly and energetically when I think of YOU <3 4 months ago
- what makes you happy? 4 months ago
- I'm number 4 =) 5 months ago
An article by
