Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modem port assignment
Message
De
15/05/2000 15:20:55
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00368627
Message ID:
00369748
Vues:
23
>>>Win windows 95 / 98 the modem name and port assignment are found in the registry. With win 2000 or NT4 I have not been able to find out how to detect a modem and the port assignment
>>
>>The COM ports are named in HKEY_LOCAL_MACHINE\Hardware\DeviceMap\SERIALCOMM - it names them but does not tell you about them. The modems are in the registry but are managed via TAPI and RAS; NT is not happy with standard applications doing direct I/O through hardware; much of the stability and safety of the NT and 2K platform is based on the OS virtualizing the underlying hardware and guarding against direct resource access by untrusted application-layer processes.
>>
>>The current modem detail is found under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Modem - it's not the details you want, though. The TAPI detail is at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TapiSrv
>
>Thahks Ed
>
>What I am trying to do is determine which com port the modem is using. We have an app that has a setup screen in it for the user to select modem, comm port. the init fills in available modems on system and allows user to select. With the com port identified that a modem is there then dial up is done to strat a FTP connection.
>Do you know how I can find this out?

You can use the mechanisms outlined above; better would be to have the user define a DUN/RAS connection and simply use that to connect and initiate the FTP session. This takes you out of the middle of the process entirely.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform