`I am using the IMMNotificationClient interface and have registered for RegisterEndpointNotificationCallback (I am using the code samples from Device Events from msdn library). When I remove/add an audio endpoint, I do get OnDeviceStateChanged, OnDefaultDeviceChange, OnPropertyValueChanged callbacks, but not the OnDeviceRemoved or OnDeviceAdded.
OnDeviceRemoved or OnDeviceAdded are not being called when I insert or remove a headphone. Only OnDeviceStateChanged and OnDefaultDeviceChange are being called.