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

WinInet
plus

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

Error code 632 on WinInet dial-up


Question:

Having some trouble with a dial-up script formerly used on a Win98 machine. Upgraded computers with Windows XP Pro and got the latest version of WinBatch 2005C. The script is using the WinInet extender and the iDial() function returns code 632. Tried a script using the RasDial() function in wwras34i.dll and get the same error code. Windows XP is new to me and I might not have something set right. But, you can run a WinInet function like iHostConnect() and the Windows "Dial-up Connection" window comes up and it dials the ISP. Any one have a clue to what's happening here? the version of the Wininet Extender is 44075.

Answer:

Strange indeed. The code in the WinInet Extender function iDial(), the Ras function RasDial() and the WinSock function DunConnect() are all functionally the same...hence why you are getting a similar error using any of them. That particular error indicates Structure size invalid. I would expect this error if you were running some older version of one of these extenders. However your last message indicates that you confirmed that your script was using the latest version of the extender. I am going to need to talk to the developers to see what they think. Could you please run this code and send me the resulting trace file.
DebugTrace(@on,"trace.txt")
AddExtender("WWWSK44I.DLL")

;Dial our host, asking first if user has more than 1 defined...
hConn = 0
sDialUps = dunItemize ()
if (ItemCount(sDialUps,@TAB) == 1)
     sDial = sDialUps
else
     sDial = AskItemList ("Choose a dial-up connection", sDialUps, @TAB, @SORTED, @SINGLE)
endif
pswd=AskPassword("Password","Enter password for %sDial%")

hConn = dunConnectEx (sDial, pswd)
if (!hConn)
     nErr = wxGetLastErr()
     Message (sTitle, "Couldn't connect to %sDial%. Error %nErr%.")
     exit
endif

Delay (5)

; Hang up...
:HangUp
nRet = dunDisconnect (hConn)

User Reply:


************************************************************

*** Debug Initialized ***

==============================
Mon 7/25/2005 4:52:40 PM
WinBatch 32 2005C
WIL DLL 5.7ceg
C:\Program Files\WinBatch\System\Winsock.wbt
Windows platform: NT, version: 5.1, build: 2600 (Service Pack 2)
ErrorMode: @CANCEL
==============================

----- Extender loaded: C:\Program Files\WinBatch\System\WWWSK44I.DLL (file version: 44004,0,0,0)

AddExtender("WWWSK44I.DLL")
(16) VALUE INT => 1

hConn = 0
(16) VALUE INT => 0

sDialUps = dunItemize ()
(359) VALUE STRING => "YIS Netscape"

if (ItemCount(sDialUps,@TAB) == 1)
(359) ELSE DO==>TRUE

sDial = AskItemList ("Choose a dial-up connection", sDialUps, @TAB, @SORTED, @SINGLE)
(3937) VALUE STRING => "YIS"

endif
(3937) END OPERATOR

pswd=AskPassword("Password","Enter password for YIS")
(14937) VALUE STRING => "XXXXXX"

hConn = dunConnectEx (sDial, pswd)
(14937) VALUE INT => 0

if (!hConn)
(14937) IF DO==>TRUE

nErr = wxGetLastErr()
(14937) VALUE INT => 632

Message ("Winsock", "Couldn't connect to YIS. Error 632.")
(20562) VALUE INT => 1

exit
(20562) VALUE INT => 0

--- Normal termination ---

;;;END OF JOB;;;
I'm wondering if this problem could be machine specific. Thought I'd send along the System Summary:
Item Value 
OS Name Microsoft Windows XP Professional 
Version 5.1.2600 Service Pack 2 Build 2600 
OS Manufacturer Microsoft Corporation 
System Name COLLINSVILLE-MN 
System Manufacturer Gateway 
System Model 9310XL 
System Type X86-based PC 
Processor x86 Family 15 Model 4 Stepping 3 GenuineIntel ~3200 Mhz 
Processor x86 Family 15 Model 4 Stepping 3 GenuineIntel ~3200 Mhz 
BIOS Version/Date Intel Corp. SE91510J.15A.2525.2005.0414.1610, 4/14/2005 
SMBIOS Version 2.3 
Windows Directory C:\WINDOWS 
System Directory C:\WINDOWS\system32 
Boot Device \Device\HarddiskVolume1 
Locale United States 
Hardware Abstraction Layer Version = "5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)" 
User Name COLLINSVILLE-MN\Administrator 
Time Zone Eastern Standard Time 
Total Physical Memory 1,024.00 MB 
Available Physical Memory 533.62 MB 
Total Virtual Memory 2.00 GB 
Available Virtual Memory 1.96 GB 
Page File Space 2.40 GB 
Page File C:\pagefile.sys 
--------------

Answer:

So it does seem to be some problem with that particular machine. Does this system get rebooted very often? I wonder if a reboot might help the situation. You will need to be able to MANUALLY create a dialup connection and connect to it on this system before you can expect WinBatch to automate it.

User Reply:

Think I’ve found the problem. While troubleshooting another program, that periodically failed to boot, I decided to disable the Startup Group. This appeared to solve the boot problem. Restoring the Startup programs in groups of five, I hit upon the program that was causing the grief; NetLaunch XP by Black Castle Software. This was an early install that gave no clue that it was not working as it should. I’ve used previous versions on Win98 for many years without problems. Anyhow, going back to WinBatch and trying my connect script … it worked fine! This was really strange, since the program that wouldn’t run makes no connection to the Internet whatsoever. It’s a radio control program and uses a serial port. Where NetLaunch starts or terminates programs on detecting the presents or absence of a Dial-up connection.
Article ID:   W16881
File Created: 2007:07:03:14:26:42
Last Updated: 2007:07:03:14:26:42