HOWTO: Disable Initial RAS Wizard for Phonebook Extensions
ID: Q151095
|
The information in this article applies to:
-
Microsoft Remote Access Service for Windows 95
SUMMARY
By using Remote Access Service (RAS) phonebook extensions, it is possible
to programmatically create phonebook entries for Windows 95's dial-up
networking applet. However, these APIs do not allow you to disable the
automatic Windows 95 phonebook Entry Wizard. If you do not want Windows 95
to invoke the Connection Wizard to create the first phonebook entry, your
application must modify the registry.
MORE INFORMATION
On a fresh installation of Windows 95 with Dial-Up Networking installed,
the RAS phonebook has no entries. When a user opens the Dial-Up Networking
applet for the first time, a Wizard appears, instructing the user to create
the first phonebook entry "My Connection." The Wizard appears even if
another application already created the first phonebook entry.
To disable the initial Connection Wizard on Windows 95 manually, you can
run REGEDIT.EXE and set HKEY_CURRENT_USER\RemoteAccess\Wizard to the
following series of bytes: 80 00 00 00.
The code below shows how to disable the Dial-Up Networking Connection
Wizard programmatically. However, these registry modifications only apply
to Windows 95. Your application must determine the operating system you are
running on. All other versions of Windows and Windows NT, both current and
future, will not support this registry entry. For more information on
version checking, please see the following article in the Microsoft
Knowledge Base:
Q92395 Determining System Version from a Win32-based Application
Sample Code
#include <windows.h>
#include <stdio.h>
void main (void)
{
LONG rc;
HKEY hKey;
DWORD dwVal;
printf ("Setting HKEY_CURRENT_USER\\RemoteAccess\\Wizard to"
" 0x00000080.\n This will stop the wizard from appearing "
"when the dial-up\nnetworking applet is opened.\n");
//
// Open the registry key
//
rc = RegOpenKeyEx (HKEY_CURRENT_USER, "RemoteAccess",
0, KEY_SET_VALUE, &hKey);
if (rc != ERROR_SUCCESS)
{
printf ("RegOpenKeyEx failed with return code %i\n", rc);
return;
}
//
// Modify the key
//
dwVal = 0x00000080;
rc = RegSetValueEx (hKey, "wizard", 0, REG_BINARY,
(LPVOID) &dwVal, sizeof (dwVal));
if (rc != ERROR_SUCCESS)
printf ("RegSetValueEx failed with return code %i\n", rc);
//
// Cleanup
//
RegCloseKey (hKey);
}
Additional query words:
ras wizard registry remote access
Keywords : kbnetwork kbAPI kbRAS kbSDKPlatform kbWinOS95 kbGrpNet
Version :
Platform :
Issue type : kbhowto