Getting a notification of a device add/remove in Vista+ is trivial, but I can't seem to find an API that works with Windows XP that allows me to get a notification when an audio device is added or removed. The best solution I've been able to come up with is to poll mixerGetDevCaps and look for changes, but this doesn't seem to be ideal.
What is the best Win32 API to use to detect added or removed audio devices that works with Windows XP SP2+?
IInspectable's hint let me to WM_DEVICECHANGE window notification, which is the answer I was looking for. This does require a window to work which while not ideal, is sufficient for my purposes.