fb:porticula NoPaste
winsock hook step #1 (jetz aber richtig =D)
Uploader: | csde_rats |
Datum/Zeit: | 12.07.2008 22:41:00 |
Function __WSAFDIsSet(byval as SOCKET, byval as fd_set ptr) as integer Export
Return ___WSAFDIsSet(a, b, c, d)
End Function
Function accept(byval as SOCKET, byval as sockaddr ptr, byval as integer ptr) as SOCKET Export
Return _accept(a, b, c, d, e)
End Function
Function bind(byval as SOCKET, byval as sockaddr ptr, byval as integer) as integer Export
Return _bind(a, b, c, d, e)
End Function
Function closesocket(byval as SOCKET) as integer Export
Return _closesocket(a, b, c)
End Function
Function connect(byval as SOCKET, byval as sockaddr ptr, byval as integer) as integer Export
Return _connect(a, b, c, d, e)
End Function
Function ioctlsocket(byval as SOCKET, byval as integer, byval as u_long ptr) as integer Export
Return _ioctlsocket(a, b, c, d, e)
End Function
Function getpeername(byval as SOCKET, byval as sockaddr ptr, byval as integer ptr) as integer Export
Return _getpeername(a, b, c, d, e)
End Function
Function getsockname(byval as SOCKET, byval as sockaddr ptr, byval as integer ptr) as integer Export
Return _getsockname(a, b, c, d, e)
End Function
Function getsockopt(byval as SOCKET, byval as integer, byval as integer, byval as zstring ptr, byval as integer ptr) as integer Export
Return _getsockopt(a, b, c, d, e, f, g)
End Function
Function inet_addr(byval as zstring ptr) as uinteger Export
Return _inet_addr(a, b, c)
End Function
Function inet_ntoa(byval as in_addr) as zstring ptr Export
Return _inet_ntoa(a, b, c)
End Function
Function listen(byval as SOCKET, byval as integer) as integer Export
Return _listen(a, b, c, d)
End Function
Function recv(byval as SOCKET, byval as zstring ptr, byval as integer, byval as integer) as integer Export
Return _recv(a, b, c, d, e, f)
End Function
Function recvfrom(byval as SOCKET, byval as zstring ptr, byval as integer, byval as integer, byval as sockaddr ptr, byval as integer ptr) as integer Export
Return _recvfrom(a, b, c, d, e, f, g, h)
End Function
Function send(byval as SOCKET, byval as zstring ptr, byval as integer, byval as integer) as integer Export
Return _send(a, b, c, d, e, f)
End Function
Function sendto(byval as SOCKET, byval as zstring ptr, byval as integer, byval as integer, byval as sockaddr ptr, byval as integer) as integer Export
Return _sendto(a, b, c, d, e, f, g, h)
End Function
Function setsockopt(byval as SOCKET, byval as integer, byval as integer, byval as zstring ptr, byval as integer) as integer Export
Return _setsockopt(a, b, c, d, e, f, g)
End Function
Function shutdown(byval as SOCKET, byval as integer) as integer Export
Return _shutdown(a, b, c, d)
End Function
Function socket_(byval as integer, byval as integer, byval as integer) as SOCKET Export
Return _socket_(a, b, c, d, e)
End Function
Function gethostbyaddr(byval as zstring ptr, byval as integer, byval as integer) as hostent ptr Export
Return _gethostbyaddr(a, b, c, d, e)
End Function
Function gethostbyname(byval as zstring ptr) as hostent ptr Export
Return _gethostbyname(a, b, c)
End Function
Function getservbyport(byval as integer, byval as zstring ptr) as servent ptr Export
Return _getservbyport(a, b, c, d)
End Function
Function getservbyname(byval as zstring ptr, byval as zstring ptr) as servent ptr Export
Return _getservbyname(a, b, c, d)
End Function
Function getprotobynumber(byval as integer) as protoent ptr Export
Return _getprotobynumber(a, b, c)
End Function
Function getprotobyname(byval as zstring ptr) as protoent ptr Export
Return _getprotobyname(a, b, c)
End Function
Function WSAStartup(byval as WORD, byval as LPWSADATA) as integer Export
Return _WSAStartup(a, b, c, d)
End Function
Function WSACleanup() as integer Export
Return _WSACleanup(a, b)
End Function
Function WSAGetLastError() as integer Export
Return _WSAGetLastError(a, b)
End Function
Function WSAIsBlocking() as BOOL Export
Return _WSAIsBlocking(a, b)
End Function
Function WSAUnhookBlockingHook() as integer Export
Return _WSAUnhookBlockingHook(a, b)
End Function
Function WSASetBlockingHook(byval as FARPROC) as FARPROC Export
Return _WSASetBlockingHook(a, b, c)
End Function
Function WSACancelBlockingCall() as integer Export
Return _WSACancelBlockingCall(a, b)
End Function
Function WSAAsyncGetServByName(byval as HWND, byval as u_int, byval as zstring ptr, byval as zstring ptr, byval as zstring ptr, byval as integer) as HANDLE Export
Return _WSAAsyncGetServByName(a, b, c, d, e, f, g, h)
End Function
Function WSAAsyncGetServByPort(byval as HWND, byval as u_int, byval as integer, byval as zstring ptr, byval as zstring ptr, byval as integer) as HANDLE Export
Return _WSAAsyncGetServByPort(a, b, c, d, e, f, g, h)
End Function
Function WSAAsyncGetProtoByName(byval as HWND, byval as u_int, byval as zstring ptr, byval as zstring ptr, byval as integer) as HANDLE Export
Return _WSAAsyncGetProtoByName(a, b, c, d, e, f, g)
End Function
Function WSAAsyncGetProtoByNumber(byval as HWND, byval as u_int, byval as integer, byval as zstring ptr, byval as integer) as HANDLE Export
Return _WSAAsyncGetProtoByNumber(a, b, c, d, e, f, g)
End Function
Function WSAAsyncGetHostByName(byval as HWND, byval as u_int, byval as zstring ptr, byval as zstring ptr, byval as integer) as HANDLE Export
Return _WSAAsyncGetHostByName(a, b, c, d, e, f, g)
End Function
Function WSAAsyncGetHostByAddr(byval as HWND, byval as u_int, byval as zstring ptr, byval as integer, byval as integer, byval as zstring ptr, byval as integer) as HANDLE Export
Return _WSAAsyncGetHostByAddr(a, b, c, d, e, f, g, h, i)
End Function
Function WSACancelAsyncRequest(byval as HANDLE) as integer Export
Return _WSACancelAsyncRequest(a, b, c)
End Function
Function WSAAsyncSelect(byval as SOCKET, byval as HWND, byval as u_int, byval as integer) as integer Export
Return _WSAAsyncSelect(a, b, c, d, e, f)
End Function
Function htonl(byval as u_long) as u_long Export
Return _htonl(a, b, c)
End Function
Function ntohl(byval as u_long) as u_long Export
Return _ntohl(a, b, c)
End Function
Function htons(byval as u_short) as u_short Export
Return _htons(a, b, c)
End Function
Function ntohs(byval as u_short) as u_short Export
Return _ntohs(a, b, c)
End Function
Function select_(byval nfds as integer, byval as fd_set ptr, byval as fd_set ptr, byval as fd_set ptr, byval as timeval ptr) as integer Export
Return _select_(a, b, c, d, e, f, g)
End Function
Function gethostname(byval as zstring ptr, byval as integer) as integer Export
Return _gethostname(a, b, c, d)
End Function
Function WSAAccept(byval as SOCKET, byval as sockaddr ptr, byval as LPINT, byval as LPCONDITIONPROC, byval as DWORD) as SOCKET Export
Return _WSAAccept(a, b, c, d, e, f, g)
End Function
Function WSACloseEvent(byval as HANDLE) as BOOL Export
Return _WSACloseEvent(a, b, c)
End Function
Function WSAConnect(byval as SOCKET, byval as sockaddr ptr, byval as integer, byval as LPWSABUF, byval as LPWSABUF, byval as LPQOS, byval as LPQOS) as integer Export
Return _WSAConnect(a, b, c, d, e, f, g, h, i)
End Function
Function WSACreateEvent() as HANDLE Export
Return _WSACreateEvent(a, b)
End Function
Function WSAEnumNetworkEvents(byval as SOCKET, byval as HANDLE, byval as LPWSANETWORKEVENTS) as integer Export
Return _WSAEnumNetworkEvents(a, b, c, d, e)
End Function
Function WSAEventSelect(byval as SOCKET, byval as HANDLE, byval as integer) as integer Export
Return _WSAEventSelect(a, b, c, d, e)
End Function
Function WSAGetOverlappedResult(byval as SOCKET, byval as LPWSAOVERLAPPED, byval as LPDWORD, byval as BOOL, byval as LPDWORD) as BOOL Export
Return _WSAGetOverlappedResult(a, b, c, d, e, f, g)
End Function
Function WSAGetQOSByName(byval as SOCKET, byval as LPWSABUF, byval as LPQOS) as BOOL Export
Return _WSAGetQOSByName(a, b, c, d, e)
End Function
Function WSAHtonl(byval as SOCKET, byval as uinteger, byval as uinteger ptr) as integer Export
Return _WSAHtonl(a, b, c, d, e)
End Function
Function WSAHtons(byval as SOCKET, byval as ushort, byval as ushort ptr) as integer Export
Return _WSAHtons(a, b, c, d, e)
End Function
Function WSAIoctl(byval as SOCKET, byval as DWORD, byval as LPVOID, byval as DWORD, byval as LPVOID, byval as DWORD, byval as LPDWORD, byval as LPWSAOVERLAPPED, byval as LPWSAOVERLAPPED_COMPLETION_ROUTINE) as integer Export
Return _WSAIoctl(a, b, c, d, e, f, g, h, i, j, k)
End Function
Function WSAJoinLeaf(byval as SOCKET, byval as sockaddr ptr, byval as integer, byval as LPWSABUF, byval as LPWSABUF, byval as LPQOS, byval as LPQOS, byval as DWORD) as SOCKET Export
Return _WSAJoinLeaf(a, b, c, d, e, f, g, h, i, j)
End Function
Function WSALookupServiceEnd(byval as HANDLE) as INT_ Export
Return _WSALookupServiceEnd(a, b, c)
End Function
Function WSANSPIoctl(byval as HANDLE, byval as DWORD, byval as LPVOID, byval as DWORD, byval as LPVOID, byval as DWORD, byval as LPDWORD, byval as LPWSACOMPLETION) as integer Export
Return _WSANSPIoctl(a, b, c, d, e, f, g, h, i, j)
End Function
Function WSANtohl(byval as SOCKET, byval as uinteger, byval as uinteger ptr) as integer Export
Return _WSANtohl(a, b, c, d, e)
End Function
Function WSANtohs(byval as SOCKET, byval as ushort, byval as ushort ptr) as integer Export
Return _WSANtohs(a, b, c, d, e)
End Function
Function WSARecv(byval as SOCKET, byval as LPWSABUF, byval as DWORD, byval as LPDWORD, byval as LPDWORD, byval as LPWSAOVERLAPPED, byval as LPWSAOVERLAPPED_COMPLETION_ROUTINE) as integer Export
Return _WSARecv(a, b, c, d, e, f, g, h, i)
End Function
Function WSARecvDisconnect(byval as SOCKET, byval as LPWSABUF) as integer Export
Return _WSARecvDisconnect(a, b, c, d)
End Function
Function WSARecvFrom(byval as SOCKET, byval as LPWSABUF, byval as DWORD, byval as LPDWORD, byval as LPDWORD, byval as sockaddr ptr, byval as LPINT, byval as LPWSAOVERLAPPED, byval as LPWSAOVERLAPPED_COMPLETION_ROUTINE) as integer Export
Return _WSARecvFrom(a, b, c, d, e, f, g, h, i, j, k)
End Function
Function WSARemoveServiceClass(byval as LPGUID) as INT_ Export
Return _WSARemoveServiceClass(a, b, c)
End Function
Function WSAResetEvent(byval as HANDLE) as BOOL Export
Return _WSAResetEvent(a, b, c)
End Function
Function WSASend(byval as SOCKET, byval as LPWSABUF, byval as DWORD, byval as LPDWORD, byval as DWORD, byval as LPWSAOVERLAPPED, byval as LPWSAOVERLAPPED_COMPLETION_ROUTINE) as integer Export
Return _WSASend(a, b, c, d, e, f, g, h, i)
End Function
Function WSASendDisconnect(byval as SOCKET, byval as LPWSABUF) as integer Export
Return _WSASendDisconnect(a, b, c, d)
End Function
Function WSASendTo(byval as SOCKET, byval as LPWSABUF, byval as DWORD, byval as LPDWORD, byval as DWORD, byval as sockaddr ptr, byval as integer, byval as LPWSAOVERLAPPED, byval as LPWSAOVERLAPPED_COMPLETION_ROUTINE) as integer Export
Return _WSASendTo(a, b, c, d, e, f, g, h, i, j, k)
End Function
Function WSASetEvent(byval as HANDLE) as BOOL Export
Return _WSASetEvent(a, b, c)
End Function
Function WSAWaitForMultipleEvents(byval as DWORD, byval as HANDLE ptr, byval as BOOL, byval as DWORD, byval as BOOL) as DWORD Export
Return _WSAWaitForMultipleEvents(a, b, c, d, e, f, g)
End Function
Function WSAAddressToString(byval as LPSOCKADDR, byval as DWORD, byval as LPWSAPROTOCOL_INFOW, byval as LPWSTR, byval as LPDWORD) as INT_ Export
Return _WSAAddressToString(a, b, c, d, e, f, g)
End Function
Function WSADuplicateSocket(byval as SOCKET, byval as DWORD, byval as LPWSAPROTOCOL_INFOW) as integer Export
Return _WSADuplicateSocket(a, b, c, d, e)
End Function
Function WSAEnumNameSpaceProviders(byval as LPDWORD, byval as LPWSANAMESPACE_INFOW) as INT_ Export
Return _WSAEnumNameSpaceProviders(a, b, c, d)
End Function
Function WSAEnumProtocols(byval as LPINT, byval as LPWSAPROTOCOL_INFOW, byval as LPDWORD) as integer Export
Return _WSAEnumProtocols(a, b, c, d, e)
End Function
Function WSAGetServiceClassInfo(byval as LPGUID, byval as LPGUID, byval as LPDWORD, byval as LPWSASERVICECLASSINFOW) as INT_ Export
Return _WSAGetServiceClassInfo(a, b, c, d, e, f)
End Function
Function WSAGetServiceClassNameByClassId(byval as LPGUID, byval as LPWSTR, byval as LPDWORD) as INT_ Export
Return _WSAGetServiceClassNameByClassId(a, b, c, d, e)
End Function
Function WSAInstallServiceClass(byval as LPWSASERVICECLASSINFOW) as INT_ Export
Return _WSAInstallServiceClass(a, b, c)
End Function
Function WSALookupServiceBegin(byval lpqsRestrictions as LPWSAQUERYSETW, byval as DWORD, byval as LPHANDLE) as INT_ Export
Return _WSALookupServiceBegin(a, b, c, d, e)
End Function
Function WSALookupServiceNext(byval as HANDLE, byval as DWORD, byval as LPDWORD, byval as LPWSAQUERYSETW) as INT_ Export
Return _WSALookupServiceNext(a, b, c, d, e, f)
End Function
Function WSASetService(byval as LPWSAQUERYSETW, byval as WSAESETSERVICEOP, byval as DWORD) as INT_ Export
Return _WSASetService(a, b, c, d, e)
End Function
Function WSASocket(byval as integer, byval as integer, byval as integer, byval as LPWSAPROTOCOL_INFOW, byval as GROUP, byval as DWORD) as SOCKET Export
Return _WSASocket(a, b, c, d, e, f, g, h)
End Function
Function WSAStringToAddress(byval as LPWSTR, byval as INT_, byval as LPWSAPROTOCOL_INFOW, byval as LPSOCKADDR, byval as LPINT) as INT_ Export
Return _WSAStringToAddress(a, b, c, d, e, f, g)
End Function
Function WSAAddressToString(byval as LPSOCKADDR, byval as DWORD, byval as LPWSAPROTOCOL_INFOA, byval as LPSTR, byval as LPDWORD) as INT_ Export
Return _WSAAddressToString(a, b, c, d, e, f, g)
End Function
Function WSADuplicateSocket(byval as SOCKET, byval as DWORD, byval as LPWSAPROTOCOL_INFOA) as integer Export
Return _WSADuplicateSocket(a, b, c, d, e)
End Function
Function WSAEnumNameSpaceProviders(byval as LPDWORD, byval as LPWSANAMESPACE_INFOA) as INT_ Export
Return _WSAEnumNameSpaceProviders(a, b, c, d)
End Function
Function WSAEnumProtocols(byval as LPINT, byval as LPWSAPROTOCOL_INFOA, byval as LPDWORD) as integer Export
Return _WSAEnumProtocols(a, b, c, d, e)
End Function
Function WSAGetServiceClassInfo(byval as LPGUID, byval as LPGUID, byval as LPDWORD, byval as LPWSASERVICECLASSINFOA) as INT_ Export
Return _WSAGetServiceClassInfo(a, b, c, d, e, f)
End Function
Function WSAGetServiceClassNameByClassId(byval as LPGUID, byval as LPSTR, byval as LPDWORD) as INT_ Export
Return _WSAGetServiceClassNameByClassId(a, b, c, d, e)
End Function
Function WSAInstallServiceClass(byval as LPWSASERVICECLASSINFOA) as INT_ Export
Return _WSAInstallServiceClass(a, b, c)
End Function
Function WSALookupServiceBegin(byval as LPWSAQUERYSETA, byval as DWORD, byval as LPHANDLE) as INT_ Export
Return _WSALookupServiceBegin(a, b, c, d, e)
End Function
Function WSALookupServiceNext(byval as HANDLE, byval as DWORD, byval as LPDWORD, byval as LPWSAQUERYSETA) as INT_ Export
Return _WSALookupServiceNext(a, b, c, d, e, f)
End Function
Function WSASetService(byval as LPWSAQUERYSETA, byval as WSAESETSERVICEOP, byval as DWORD) as INT_ Export
Return _WSASetService(a, b, c, d, e)
End Function
Function WSASocket(byval as integer, byval as integer, byval as integer, byval as LPWSAPROTOCOL_INFOA, byval as GROUP, byval as DWORD) as SOCKET Export
Return _WSASocket(a, b, c, d, e, f, g, h)
End Function
Function WSAStringToAddress(byval as LPSTR, byval as INT_, byval as LPWSAPROTOCOL_INFOA, byval as LPSOCKADDR, byval as LPINT) as INT_ Export
Return _WSAStringToAddress(a, b, c, d, e, f, g)
End Function