Wsock32.dll on Windows 2003 x64

we switched from an windows 2003/x86 + domino 8.0.2/32 to windows 2003/x64 + domino 8.0.2/64.

when an agent on the server now want to use funtions of the wsock32.dll i get the following error message:

“External function not found”

Declare Private Function WSAStartup Lib “wsock32.dll” (Byval wVersionRequired As Long, lpWSADATA As WSADATA) As Long

on the server i found a second wsock32.dll in windows\syswow64, but when using this dll i get the error “Error in loading DLL”.

when running the agent on winxp/32 everything works fine.