Microsoft KB Archive/254546

{|
 * width="100%"|

BUG: RasEnumEntries Returns an Unhandled Exception Error when RAS Services are Disabled

 * }

Q254546

-

The information in this article applies to:


 * Microsoft Windows NT Server version 4.0 SP6a
 * Microsoft Windows NT Workstation version 4.0 SP6a

-

SYMPTOMS
The RasEnumEntries function returns an unhandled exception error on Microsoft Windows NT 4.0-based computers if the Remote Access Services (RAS) are disabled. However, it should return Error 711:

ERROR_RASMAN_CANNOT_INITIALIZE.

RESOLUTION
On Microsoft Windows 2000-based computers, the RasEnumEntries function works correctly and returns Error 711.

STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

Steps to Reproduce Behavior

 * 1) Create a phone book entry, named Test_Entry.
 * 2) Run a RasEnumEntries sample code, and it returns Test_Entry.
 * 3) Open Control Panel. In the Control Panel dialog box double-click Services.
 * 4) In the Services dialog box, select the "RAS Autodial Manager" service.
 * 5) In the Services dialog box, click HW_Profiles.
 * 6) In the Service dialog box, click Disable.
 * 7) Repeat steps 4 and 5 for the RAS Connection Manager and RAS Server services.
 * 8) Open Control Panel again, and then double-click Devices.
 * 9) In the Devices dialog box, select Modem.
 * 10) In the Devices dialog box, click HW_Profiles.
 * 11) In the Device dialog box, select each modem and then click Disable to disable all the modems in the list.
 * 12) Reboot the computer.
 * 13) Run the same RasEnumEntries sample code and it fails with the exception error.
 * 14) Run sample code with another RAS API, like RasEnumDevices, and the API fails with Error 711.

Additional query words:

Keywords : kbnetwork kbAPI kbRAS kbSDKPlatform kbSDKWin32 _IK kbGrpDSNet

Issue type : kbbug

Technology : kbWinNTsearch kbWinNTWsearch kbWinNTW400search kbWinNT400xsearch kbWinNTSsearch kbWinNTS400sp6 kbWinNTS400xsearch kbWinNTW400SP6a