WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

DialUp Networking (DUN) Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

DUNDisconnect Not Working

	
Keywords: DUNDisconnect	  

Question:

I have an existing application I wrote for Win95 and I'm trying it in NT4, SP2. Everything seems to work except the DUNDisconnect function (using either the old Winsock extender or the new Internet extender). It triggers a Dr. Watson Exception: Access Violation (0xc0000005) Address: (0x10005702). Am I missing something here? (I'm using WB 96m, and this happens interpreted or compiled). Here's my code:
AddExtender("Wwwsk32i.dll") 
DUNconnect('rmi')
DUNDisconnect('rmi')

Answer:

Ack. Its not done like that. Try...
AddExtender("Wwwsk32i.dll") 
dconn=DUNconnect('rmi')
DUNDisconnect(dconn)
Also, make sure you have the absolute latest copy of the Internet Winsock extender...

App Exception/Error with DunDisconnect(0)

Question:

When I use DUNDisconnect(0) I get an application (NT GPF) error. Why ?

Answer:

Documentation error. Don't use 0. Specify the connection handle.
Article ID:   W12625
Filename:   DUNDisconnect Not Working.txt
File Created: 1999:04:15:16:48:30
Last Updated: 1999:04:15:16:48:30