Why is it that this VB.NET code only works for detecting flash disks?
What would be the possible way to detect the insertion and removal of other USB peripherals, such as mouse and keyboard? Thanks in advance
VB.NET:
Select Case m.WParam
Case WM_DEVICECHANGE_WPPARAMS.DBT_DEVICEARRIVAL
MsgBox("USB Inserted")
Case WM_DEVICECHANGE_WPPARAMS.DBT_DEVICEREMOVECOMPLETE
MsgBox("USB Removed")
End Select