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.

117 lines
2.9 KiB

  1. TITLE WINSOCK.ASM
  2. PAGE ,132
  3. ;
  4. ; WOW v1.0
  5. ;
  6. ; Copyright (c) 1991, Microsoft Corporation
  7. ;
  8. ; MMSYSTEM.ASM
  9. ; Thunks in 16-bit space to route Winsock API calls to WOW32
  10. ;
  11. ; History:
  12. ; 02-Oct-1992 David Treadwell (davidtr)
  13. ; Created.
  14. ;
  15. .286p
  16. .xlist
  17. include wow.inc
  18. include wowwsock.inc
  19. include cmacros.inc
  20. .list
  21. __acrtused = 0
  22. public __acrtused ;satisfy external C ref.
  23. externFP WOW16Call
  24. createSeg _TEXT,CODE,WORD,PUBLIC,CODE
  25. createSeg _DATA,DATA,WORD,PUBLIC,DATA,DGROUP
  26. defgrp DGROUP,DATA
  27. sBegin DATA
  28. Reserved db 16 dup (0) ;reserved for Windows //!!!!! what is this
  29. WINSOCK_Identifier db 'WINSOCK16 Data Segment'
  30. sEnd
  31. sEnd DATA
  32. sBegin CODE
  33. assumes CS,CODE
  34. assumes DS,DATA
  35. assumes ES,NOTHING
  36. cProc WINSOCK16,<PUBLIC,FAR,PASCAL,NODATA,ATOMIC>
  37. cBegin <nogen>
  38. mov ax,1
  39. ret
  40. cEnd <nogen>
  41. assumes DS,NOTHING
  42. cProc WEP,<PUBLIC,FAR,PASCAL,NODATA,NOWIN,ATOMIC>
  43. parmW iExit ;DLL exit code
  44. cBegin
  45. mov ax,1 ;always indicate success
  46. cEnd
  47. assumes DS,NOTHING
  48. WinsockThunk ACCEPT
  49. WinsockThunk BIND
  50. WinsockThunk CLOSESOCKET
  51. WinsockThunk CONNECT
  52. WinsockThunk GETPEERNAME
  53. WinsockThunk GETSOCKNAME
  54. WinsockThunk GETSOCKOPT
  55. WinsockThunk HTONL
  56. WinsockThunk HTONS
  57. WinsockThunk INET_ADDR
  58. WinsockThunk INET_NTOA
  59. WinsockThunk IOCTLSOCKET
  60. WinsockThunk LISTEN
  61. WinsockThunk NTOHL
  62. WinsockThunk NTOHS
  63. WinsockThunk RECV
  64. WinsockThunk RECVFROM
  65. WinsockThunk SELECT
  66. WinsockThunk SEND
  67. WinsockThunk SENDTO
  68. WinsockThunk SETSOCKOPT
  69. WinsockThunk SHUTDOWN
  70. WinsockThunk SOCKET
  71. WinsockThunk GETHOSTBYADDR
  72. WinsockThunk GETHOSTBYNAME
  73. WinsockThunk GETPROTOBYNAME
  74. WinsockThunk GETPROTOBYNUMBER
  75. WinsockThunk GETSERVBYNAME
  76. WinsockThunk GETSERVBYPORT
  77. WinsockThunk GETHOSTNAME
  78. WinsockThunk WSAASYNCSELECT
  79. WinsockThunk WSAASYNCGETHOSTBYADDR
  80. WinsockThunk WSAASYNCGETHOSTBYNAME
  81. WinsockThunk WSAASYNCGETPROTOBYNUMBER
  82. WinsockThunk WSAASYNCGETPROTOBYNAME
  83. WinsockThunk WSAASYNCGETSERVBYPORT
  84. WinsockThunk WSAASYNCGETSERVBYNAME
  85. WinsockThunk WSACANCELASYNCREQUEST
  86. WinsockThunk WSASETBLOCKINGHOOK
  87. WinsockThunk WSAUNHOOKBLOCKINGHOOK
  88. WinsockThunk WSAGETLASTERROR
  89. WinsockThunk WSASETLASTERROR
  90. WinsockThunk WSACANCELBLOCKINGCALL
  91. WinsockThunk WSAISBLOCKING
  92. WinsockThunk WSASTARTUP
  93. WinsockThunk WSACLEANUP
  94. WinsockThunk __WSAFDISSET
  95. ; End of additions
  96. sEnd CODE
  97. end WINSOCK16