Article ID: 163236 - Last Review: July 11, 2005 - Revision: 1.2 How To Set Device Configuration for RAS Phonebook EntryThis article was previously published under Q163236 SUMMARY
While many phone book settings are modifiable via the RASENTRY structure,
there are many settings that are accessible through the Dial-Up Networking
interface that don't have counterparts in the RASENTRY structure. This is
because the RAS client uses TAPI to access physical devices (such as
modems) and relies on the TAPI Service Provider to configure the device.
The dialog box that appears when you click "Configure..." is really
implemented by the TAPI Service Provider (TSP) and can vary from TSP to
TSP. For more information on this topic, see the lineConfigDialog help page
in the Win32 SDK.
This article explains how to programmatically control the device configuration parameters (such as operator-assisted call option) of the Dial-Up Network connection for Windows 95. Windows NT 4.0 does not use the TSP specific configuration information at all, so none of this article applies to Windows NT 4.0. MORE INFORMATION
The TAPI Service Provider Microsoft ships with Windows 95 is known as
Unimodem (short for Universal Modem driver). While the TAPI data structures
described in this article only apply to the Microsoft Unimodem driver,
third party TSPs may be Unimodem compatible and may use the same
structures.
You can create a new Dial-Up phone book entry or modify the TAPI properties of the existing entry with the RasSetEntryProperties() API. The fifth parameter of this API is LPBYTE lpbDeviceInfo. This is a pointer to a buffer that contains device-specific configuration information. While this buffer is normally "black box" service provider information, in the case of the Unimodem driver, this buffer contains a DEVCFG structure which is defined as follows:
TERMINAL_PRE (0x00000001) Displays the pre-terminal screen. TERMINAL_POST (0x00000002) Displays the post-terminal screen. MANUAL_DIAL (0x00000004) Allows manual Dialing, if possible. LAUNCH_LIGHTS (0x00000008) Displays the modem tray icon. NOTE: The COMMCONFIG structure has several dwProvider* variables. As stated in the documentation: "If the provider subtype is PST_MODEM, the wcProviderData member contains a MODEMSETTINGS structure." This is very important because the modem specific settings, such as speaker mode and volume, are set in the MODEMSETTINGS structure. The following code shows how to set the Manual Dial property of the existing Dial-Up entry "My Entry" in the RAS phonebook. | Article Translations
|

Back to the top
