X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/bfa5400d3e166e1acc25dbe0b7f1fdf74b272568..7440fd4419acfc9c784f142fb9dee3e64c9a18c2:/winstuff.h diff --git a/winstuff.h b/winstuff.h index 61b34795..693fd42e 100644 --- a/winstuff.h +++ b/winstuff.h @@ -5,6 +5,10 @@ #ifndef PUTTY_WINSTUFF_H #define PUTTY_WINSTUFF_H +#ifndef AUTO_WINSOCK +#include +#endif +#include #include /* for FILENAME_MAX */ #include "tree234.h" @@ -130,6 +134,23 @@ GLOBAL void *logctx; "All Files (*.*)\0*\0\0\0") /* + * winnet.c dynamically loads WinSock 2 or WinSock 1 depending on + * what it can get, which means any WinSock routines used outside + * that module must be exported from it as function pointers. So + * here they are. + */ +extern int (WINAPI *p_WSAAsyncSelect) + (SOCKET s, HWND hWnd, u_int wMsg, long lEvent); +extern int (WINAPI *p_WSAEventSelect) + (SOCKET s, WSAEVENT hEventObject, long lNetworkEvents); +extern int (WINAPI *p_select) + (int nfds, fd_set FAR * readfds, fd_set FAR * writefds, + fd_set FAR *exceptfds, const struct timeval FAR * timeout); +extern int (WINAPI *p_WSAGetLastError)(void); +extern int (WINAPI *p_WSAEnumNetworkEvents) + (SOCKET s, WSAEVENT hEventObject, LPWSANETWORKEVENTS lpNetworkEvents); + +/* * Exports from winctrls.c. */