USB device event
-
Is it possible in C# app to react on some "USB device connected" event (USB Mass Storage, to be more precise) and obtain its new drive letter? I have a directory tree and want to refresh it when new drive appears (e.g. flash disc).
-
Is it possible in C# app to react on some "USB device connected" event (USB Mass Storage, to be more precise) and obtain its new drive letter? I have a directory tree and want to refresh it when new drive appears (e.g. flash disc).
You should start using unmanaged code then, kernel32.dll I think. You could also use user32.dll to read system messages. Search http://www.pinvoke.net for sample code.
-
Is it possible in C# app to react on some "USB device connected" event (USB Mass Storage, to be more precise) and obtain its new drive letter? I have a directory tree and want to refresh it when new drive appears (e.g. flash disc).
-
Is it possible in C# app to react on some "USB device connected" event (USB Mass Storage, to be more precise) and obtain its new drive letter? I have a directory tree and want to refresh it when new drive appears (e.g. flash disc).