1
0
forked from 0ad/0ad

WSAAsyncSelect declaration and define values

This was SVN commit r135.
This commit is contained in:
Simon Brenner 2003-12-10 19:31:25 +00:00
parent eacae7243e
commit fbe4b0a25e

View File

@ -86,6 +86,23 @@ extern int aio_open_winhandle(HANDLE);
#pragma comment(lib, "ws2_32.lib")
#endif
extern __declspec(dllimport) int __stdcall WSAAsyncSelect(int s, HANDLE hWnd, unsigned int wMsg, long lEvent);
#define FD_READ_BIT 0
#define FD_READ (1 << FD_READ_BIT)
#define FD_WRITE_BIT 1
#define FD_WRITE (1 << FD_WRITE_BIT)
#define FD_ACCEPT_BIT 3
#define FD_ACCEPT (1 << FD_ACCEPT_BIT)
#define FD_CONNECT_BIT 4
#define FD_CONNECT (1 << FD_CONNECT_BIT)
#define FD_CLOSE_BIT 5
#define FD_CLOSE (1 << FD_CLOSE_BIT)
extern __declspec(dllimport) int __stdcall WSAStartup(WORD, void*);
extern __declspec(dllimport) int __stdcall WSAGetLastError();
#endif