Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine modem comm port number
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00460387
Message ID:
00460773
Vues:
10
I've had problems polling com ports and sending 'AT' to try to get back OK. I notice in a couple of systems (WIN98) that this is in the registry:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Class\Modem
I just don't know if that is standard for NT/2000/ME, etc. When you select My computer | Dialup networking | Make New Connection, it lists the modems for you. How can I find out if this listing comes from the registry (I am sure it does) and how to do it. Someone said FOCUS.DLL could do it.
I need to call a bulletin board, log in, transmit a file (zmodem), receive a file (zmodem) and hangup.


>>>I have commtools. It requires a com port number. Does anyone know how to get this from the user's computer without having to have a control file that has to be maintained?
>>
>>
>>You may want to examine the HKEY_LOCAL_MACHINE\Hardware\DEVICEMAP registry hive for information on possible modem devices, whiuch could be in a number of subkeys; the most common one is SERIALCOMM, but others are possible, especially with PC Card/CardBus modems.
>>
>>If you were not using CommTools, I'd suggest using a TAPI control that handles the issues of identifying available TAPI devices and providing a virtualized interface to the TAPI device, but that might not be what you're looking to do.
>>
>Just a word of warning on polling through serial ports sending out a control sequence - it is possible for there to be other devices attached to serial ports that can get screwed up by unexpected data arriving (I've suffered from this). I'd say that Ed's recommendation of configuration files/registry entries is preferable.
Dr. Ken A. McGinnis
Healthcare software design
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform