ws2_32.py 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. ord_names = {
  2. 1: b"accept",
  3. 2: b"bind",
  4. 3: b"closesocket",
  5. 4: b"connect",
  6. 5: b"getpeername",
  7. 6: b"getsockname",
  8. 7: b"getsockopt",
  9. 8: b"htonl",
  10. 9: b"htons",
  11. 10: b"ioctlsocket",
  12. 11: b"inet_addr",
  13. 12: b"inet_ntoa",
  14. 13: b"listen",
  15. 14: b"ntohl",
  16. 15: b"ntohs",
  17. 16: b"recv",
  18. 17: b"recvfrom",
  19. 18: b"select",
  20. 19: b"send",
  21. 20: b"sendto",
  22. 21: b"setsockopt",
  23. 22: b"shutdown",
  24. 23: b"socket",
  25. 24: b"GetAddrInfoW",
  26. 25: b"GetNameInfoW",
  27. 26: b"WSApSetPostRoutine",
  28. 27: b"FreeAddrInfoW",
  29. 28: b"WPUCompleteOverlappedRequest",
  30. 29: b"WSAAccept",
  31. 30: b"WSAAddressToStringA",
  32. 31: b"WSAAddressToStringW",
  33. 32: b"WSACloseEvent",
  34. 33: b"WSAConnect",
  35. 34: b"WSACreateEvent",
  36. 35: b"WSADuplicateSocketA",
  37. 36: b"WSADuplicateSocketW",
  38. 37: b"WSAEnumNameSpaceProvidersA",
  39. 38: b"WSAEnumNameSpaceProvidersW",
  40. 39: b"WSAEnumNetworkEvents",
  41. 40: b"WSAEnumProtocolsA",
  42. 41: b"WSAEnumProtocolsW",
  43. 42: b"WSAEventSelect",
  44. 43: b"WSAGetOverlappedResult",
  45. 44: b"WSAGetQOSByName",
  46. 45: b"WSAGetServiceClassInfoA",
  47. 46: b"WSAGetServiceClassInfoW",
  48. 47: b"WSAGetServiceClassNameByClassIdA",
  49. 48: b"WSAGetServiceClassNameByClassIdW",
  50. 49: b"WSAHtonl",
  51. 50: b"WSAHtons",
  52. 51: b"gethostbyaddr",
  53. 52: b"gethostbyname",
  54. 53: b"getprotobyname",
  55. 54: b"getprotobynumber",
  56. 55: b"getservbyname",
  57. 56: b"getservbyport",
  58. 57: b"gethostname",
  59. 58: b"WSAInstallServiceClassA",
  60. 59: b"WSAInstallServiceClassW",
  61. 60: b"WSAIoctl",
  62. 61: b"WSAJoinLeaf",
  63. 62: b"WSALookupServiceBeginA",
  64. 63: b"WSALookupServiceBeginW",
  65. 64: b"WSALookupServiceEnd",
  66. 65: b"WSALookupServiceNextA",
  67. 66: b"WSALookupServiceNextW",
  68. 67: b"WSANSPIoctl",
  69. 68: b"WSANtohl",
  70. 69: b"WSANtohs",
  71. 70: b"WSAProviderConfigChange",
  72. 71: b"WSARecv",
  73. 72: b"WSARecvDisconnect",
  74. 73: b"WSARecvFrom",
  75. 74: b"WSARemoveServiceClass",
  76. 75: b"WSAResetEvent",
  77. 76: b"WSASend",
  78. 77: b"WSASendDisconnect",
  79. 78: b"WSASendTo",
  80. 79: b"WSASetEvent",
  81. 80: b"WSASetServiceA",
  82. 81: b"WSASetServiceW",
  83. 82: b"WSASocketA",
  84. 83: b"WSASocketW",
  85. 84: b"WSAStringToAddressA",
  86. 85: b"WSAStringToAddressW",
  87. 86: b"WSAWaitForMultipleEvents",
  88. 87: b"WSCDeinstallProvider",
  89. 88: b"WSCEnableNSProvider",
  90. 89: b"WSCEnumProtocols",
  91. 90: b"WSCGetProviderPath",
  92. 91: b"WSCInstallNameSpace",
  93. 92: b"WSCInstallProvider",
  94. 93: b"WSCUnInstallNameSpace",
  95. 94: b"WSCUpdateProvider",
  96. 95: b"WSCWriteNameSpaceOrder",
  97. 96: b"WSCWriteProviderOrder",
  98. 97: b"freeaddrinfo",
  99. 98: b"getaddrinfo",
  100. 99: b"getnameinfo",
  101. 101: b"WSAAsyncSelect",
  102. 102: b"WSAAsyncGetHostByAddr",
  103. 103: b"WSAAsyncGetHostByName",
  104. 104: b"WSAAsyncGetProtoByNumber",
  105. 105: b"WSAAsyncGetProtoByName",
  106. 106: b"WSAAsyncGetServByPort",
  107. 107: b"WSAAsyncGetServByName",
  108. 108: b"WSACancelAsyncRequest",
  109. 109: b"WSASetBlockingHook",
  110. 110: b"WSAUnhookBlockingHook",
  111. 111: b"WSAGetLastError",
  112. 112: b"WSASetLastError",
  113. 113: b"WSACancelBlockingCall",
  114. 114: b"WSAIsBlocking",
  115. 115: b"WSAStartup",
  116. 116: b"WSACleanup",
  117. 151: b"__WSAFDIsSet",
  118. 500: b"WEP",
  119. }