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.

Cannot locate entrypoint SetHandleContext in kernel32

 Keywords:  Cannot locate entrypoint SetHandleContext in kernel32.dll

Question:

I am running a Large (complete) EXE from a temporary directory on a Win2000 machine. I get the error 'Cannot locate entrypoint SetHandleContext in kernel32'. When I press ok, I get another error 3437 Extender dll load failed, on the line addextender("wwwnt32i.dll").

The strange thing is when I run this from WinBatch Studio, it runs fine on the same machine.

I am running Winbatch 2000c, WinNT extender version 11017.

Answer:

After much hoopla. We narrowed it down to, a stray copy of wsock32.dll (the wrong version for Win 2000) in the same directory as the exe. (Note the EXE was located in the 'c:\temp' directory along with this stray wsock32.dll)

When we removed that stray dll from the directory in which the compiled exe was running, it solved the problem.

I personally cannot explain this. I'll just call it the magic of Windows.........

More on this issue...

Check out the following Microsoft Tech article:
http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;Q300179&

For more information about Winsock dll versions, check out:
http://support.microsoft.com/servicedesks/fileversion/dllinfo.asp?sd=MSDN

Try searching for 'wsock32.dll'.


Article ID:   W14846
File Created: 2002:07:09:11:52:58
Last Updated: 2002:07:09:11:52:58