flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
sleepsleep 07 Feb 2013, 04:46
hi guys,
need help regarding this, base on closesocket function in MSDN page, http://msdn.microsoft.com/en-us/library/windows/desktop/ms737582%28v=vs.85%29.aspx Paul Sheer wrote:
i attempt to follow his advice because closesocket doesn't seem to work in my case, idk why. DisconnectEx must be retrieved from WSAIoctl. Code: #define IOC_WS2 0x08000000 #define IOC_OUT 0x40000000 #define IOC_IN 0x80000000 #define IOC_INOUT (IOC_IN | IOC_OUT) #define _WSAIORW( p1, p2 ) (IOC_INOUT | (p1) | (p2)) #define SIO_GET_EXTENSION_FUNCTION_POINTER _WSAIORW( IOC_WS2, 6 ) so, i build the following Code: IOC_WS2 = 0x08000000 IOC_OUT = 0x40000000 IOC_IN = 0x80000000 IOC_INOUT = IOC_IN or IOC_OUT mov eax,IOC_INOUT or eax,IOC_WS2 or eax,6 invoke WSAIoctl,[sock],eax, now i am stuck, because the third param for WSAIoctl is DWORD LPVOID lpvInBuffer, suppose to be value of WSAID_DISCONNECTEX is kinda weird. Quote:
how am i suppose to define WSAID_DISCONNECTEX ? Code: WSAID_DISCONNECTEX dd 0x7FDA2E11 dw 0x8630,0x436F db 0xA0,0x31,0xF5,0x36,0xA6,0xEE,0xC1,0x57 any idea? references: http://www.asmcommunity.net/board/index.php?topic=25434.0 http://www.openwatcom.org:4000/@md=d&cd=//&cdf=//depot/openwatcom/bld/w32api/include/ws2def.mh&ra=s&rc=s&c=3UY@//depot/openwatcom/bld/w32api/include/ws2def.mh?ac=64&rev1=1 http://spserver.googlecode.com/svn-history/r133/trunk/spserver/spwin32port.hpp |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.