Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.5 KiB

  1. /*++
  2. THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  3. ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  4. THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  5. PARTICULAR PURPOSE.
  6. Copyright (c) 1995, 1996, 1997 Microsoft Corporation
  7. Module Name:
  8. winsock.h
  9. Abstract:
  10. Windows CE version of winsock.h.
  11. Notes:
  12. --*/
  13. #ifndef _WSASYNC_H_
  14. #define _WSASYNC_H_
  15. #define WSAAPI __cdecl
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. HANDLE WSAAPI WSAAsyncGetHostByName (HWND hWnd, unsigned int wMsg, const char FAR * name,
  20. char FAR * buf, int buflen);
  21. int WSAAPI WSAAsyncSelect (SOCKET s, HWND hWnd, unsigned int wMsg, long lEvent);
  22. int WSAAPI WSACancelAsyncRequest (HANDLE hAsyncTaskHandle);
  23. #define MAXGETHOSTSTRUCT 1024
  24. /*
  25. * WSAGETASYNCERROR is intended for use by the Windows Sockets application
  26. * to extract the error code from the lParam in the response
  27. * to a WSAGetXByY().
  28. */
  29. #define WSAGETASYNCERROR(lParam) HIWORD(lParam)
  30. /*
  31. * WSAGETSELECTEVENT is intended for use by the Windows Sockets application
  32. * to extract the event code from the lParam in the response
  33. * to a WSAAsyncSelect().
  34. */
  35. #define WSAGETSELECTEVENT(lParam) LOWORD(lParam)
  36. /*
  37. * WSAGETSELECTERROR is intended for use by the Windows Sockets application
  38. * to extract the error code from the lParam in the response
  39. * to a WSAAsyncSelect().
  40. */
  41. #define WSAGETSELECTERROR(lParam) HIWORD(lParam)
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif // _WSASYNC_H_