| Const ValueName As String = "Name"
Const MasterKey As String = _
    "SOFTWARE\Microsoft\Windows\CurrentVersion\Telephony\Country " & _
    "List\"
Private Sub Form_Load()
    Dim KeyCol As Collection
    Dim strCountry As String
    If CheckRegistryKey(HKEY_LOCAL_MACHINE, MasterKey) Then
        
        Set KeyCol = EnumRegistryKeys(HKEY_LOCAL_MACHINE, _
            MasterKey)
        Dim TheKey As Variant
        Set CountryCol = New Collection
        
        For Each TheKey In KeyCol
             If TheKey <> "800" And _
                 GetRegistryValue(HKEY_LOCAL_MACHINE, _
                 MasterKey & TheKey, "InternationalRule", _
                 "") <> "00EFG#" Then
                CboCountry.AddItem _
                    GetRegistryValue(HKEY_LOCAL_MACHINE, _
                    MasterKey & TheKey, ValueName, "")
             End If
        Next
    End If
End Sub |