How To Disable Initial RAS Wizard for Phonebook Extensions

Last reviewed: August 13, 1997
Article ID: Q151095
4.00 WINDOWS kbprg kbhowto

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:

   ARTICLE-ID: Q92395
   TITLE     : 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 reference words: 4.00 win95 ras wizard registry remote access
KBCategory: kbprg kbhowto
KBSubcategory: NtwkRAS
Keywords : kbhowto kbprg
Version : 4.00
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: August 13, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.