How do you detect a dial up internet connection in Windows 2000?

There was some code on VB-World that checked a registry setting but that setting doesn't seem to exist in W2k.