When a modem is attached or removed, how does TAPI (unimodem) get notified?

I am asking this because of a related problem. When I find a bluetooth modem
and I activate it in the "Bluetooth Device Properties" control panel I can
set up a dial up connection to it in the "Network and Dialup Connections"
control panel. However, when I delete that device in the Bluetooth control
panel I can still create a new dialup connection to it. RasEnumDevices()
still returns this device.

I think that this maybe done on purpose. Looking at the unimodem code I see
that when it gets notified of a device being removed it actually marks the
device as disconnected, out of service, and removed but does not delete it
from it's list of devices. Is this why this device is still returned when I
call RasEnumDevices()? Is this the expected behaviour? If yes, why? I would
expect that if I delete the bluetooth device, the RAS device would be
deleted as well.

Cheers
Danny