Я хотел бы знать, есть ли способ инициировать событие, когда устройство добавлено или удалено из системы. Я хочу, чтобы можно было сказать, скажем, добавлен флеш-накопитель USB или мышь или что-то еще. Я пробовал искать, но я не могу найти ничего, что бы сказать, как это сделать.
Любые идеи?