mikijov
mikijov

Reputation: 1622

How to detect when new hardware is connected in Windows?

Is there a mechanism in Windows that allows applications to detect when new hardware is connected to the system? In particular I would like to detect:

Upvotes: 3

Views: 2740

Answers (1)

Ben Voigt
Ben Voigt

Reputation: 283634

You want RegisterDeviceNotification and WM_DEVICECHANGE.

Upvotes: 4

Related Questions