Get notification when a new drive is connected via USB or other means (C#)

前端 未结 4 711
余生分开走
余生分开走 2020-12-20 17:36

I need to detect when a new drive is plugged into a Windows system through a USB port, firewire port, etc. I am aware of the WM_DEVICECHANGE message, but this requires a win

4条回答
  •  不思量自难忘°
    2020-12-20 18:33

    A windows service should do the trick

    Try reworking the CodeProject DriveDetector as a service and you should have what you need

提交回复
热议问题