Error 512 or 499 with wntGetUser
Keywords: 512 499 wntGetUser
Issue:
If running WinBatch 2001 or newer, of WinBatch, and attempt to load the old NT Network extender WWWNT32I.DLL. The WntGetUser function will return an Extender error.On Windows NT 4.0 wntGetUser will fail with the error '512: Device Currently in Use'. On Windows NT 2000 wntGetUser will fail with the error '499: Unreqonized Network error: #53'.
The following code will cause the error, using Winbatch 2001 or newer.:
AddExtender("WWWNT32I.DLL") ;<<<<<<<<< username=wntGetUser(@default) Message("Current User is",username)Answer:
Make sure you use the newest WWWNT34I.DLL that came with the 2001 package. All the Extender Dlls now use 34I instead of 32I. You could should read:
AddExtender("WWWNT34I.DLL") ;<<<<<<<<< username=wntGetUser(@default) Message("Current User is",username)
Article ID: W14875