home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 June / Chip_2002-06_cd1.bin / zkuste / cecko / install / devcpp4920.exe / include / mswsock.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-09-14  |  1.7 KB  |  60 lines

  1. /*
  2.  * mswsock.h
  3.  * MS-specific extensions to Windows Sockets 1.1, exported from mswsock.dll.
  4.  * These functions are N/A on Windows9x.
  5.  *
  6.  * This file is part of a free library for the Win32 API.
  7.  * This library is distributed in the hope that it will be useful,
  8.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10.  */
  11.          
  12. #ifndef _MSWSOCK_H
  13. #define _MSWSOCK_H
  14.  
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18.  
  19. #define SO_CONNDATA    0x7000
  20. #define SO_CONNOPT    0x7001
  21. #define SO_DISCDATA    0x7002
  22. #define SO_DISCOPT    0x7003
  23. #define SO_CONNDATALEN    0x7004
  24. #define SO_CONNOPTLEN    0x7005
  25. #define SO_DISCDATALEN    0x7006
  26. #define SO_DISCOPTLEN    0x7007
  27. #define SO_OPENTYPE    0x7008
  28. #define SO_SYNCHRONOUS_ALERT    0x10
  29. #define SO_SYNCHRONOUS_NONALERT    0x20
  30. #define SO_MAXDG    0x7009
  31. #define SO_MAXPATHDG    0x700A
  32. #define SO_UPDATE_ACCEPT_CONTEXT    0x700B
  33. #define SO_CONNECT_TIME    0x700C
  34. #define TCP_BSDURGENT    0x7000
  35.  
  36. #define TF_DISCONNECT   1
  37. #define TF_REUSE_SOCKET 2
  38. #define TF_WRITE_BEHIND 4
  39. #define TF_USE_DEFAULT_WORKER   0
  40. #define TF_USE_SYSTEM_THREAD    16
  41. #define TF_USE_KERNEL_APC   32
  42.  
  43. typedef struct _TRANSMIT_FILE_BUFFERS {
  44.     PVOID Head;
  45.     DWORD HeadLength;
  46.     PVOID Tail;
  47.     DWORD TailLength;
  48. } TRANSMIT_FILE_BUFFERS, *PTRANSMIT_FILE_BUFFERS, *LPTRANSMIT_FILE_BUFFERS;
  49.  
  50. int PASCAL WSARecvEx(SOCKET,char*,int,int*);
  51. BOOL PASCAL TransmitFile(SOCKET,HANDLE,DWORD,DWORD,LPOVERLAPPED,LPTRANSMIT_FILE_BUFFERS,DWORD);
  52. BOOL PASCAL AcceptEx(SOCKET,SOCKET,PVOID,DWORD,DWORD,DWORD,LPDWORD,LPOVERLAPPED);
  53. VOID PASCAL GetAcceptExSockaddrs(PVOID,DWORD,DWORD,DWORD,struct sockaddr**, LPINT, struct sockaddr**, LPINT);
  54.  
  55. #ifdef __cplusplus
  56. }
  57. #endif
  58. #endif  /*  _MSWSOCK_H */
  59.  
  60.