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

Error Codes

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

Trapping Win32 Network Extender Errors

Keywords: 	  win32 network extender errors lasterror WWW-BATCH.INI

Question:

I am using wntadddrive to attached to servers on a secure nt domain. I am trying to catch the error message that nt returns for invalid password (1326) expired account (2242) etc.

The function wntadddrive only returns 1, says the documentation, but I do see 0's for failures.

If I use the LastError funtion, it will tell me the extender error 499. If I re-enable errormode it tells me "Wil Extender Error: 499 Unrecognised network error #1326" How do I capture this entire error so my program can deal with it, instead of the end users?

Answer:

Hmmm

Try

xxx=IniReadPvt("WWWNT34I","Lasterror","","wwwbatch.ini")
then deal with the xxx return value
Article ID:   W14456
Filename:   Trapping Win32 Network Extender Errors.txt
File Created: 2001:03:01:14:55:04
Last Updated: 2001:03:01:14:55:04