From: alfons AT erewhon DOT utopia DOT brazil DOT oceania DOT gov (Alfons Hoogervorst) Newsgroups: comp.os.msdos.djgpp,comp.os.ms-windows.programmer.tools.winsock Subject: WsControl() Followup-To: comp.os.ms-windows.programmer.tools.winsock Date: Sun, 08 Mar 1998 02:09:57 GMT Organization: Big Brother Is Watching You Too Message-ID: <3501fd07.3718460@news.demon.nl> NNTP-Posting-Host: hoogervorst.demon.nl Keywords: WsControl;WinSock;WSOCK.VXD Lines: 28 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Lo, I've put an interesting document at the following URL: http://www.hoogervorst.no.spam.no.demon.nl/proteus/files/IPDATA.TXT (delete the no.spam.no. from the URL) This text file documents all ways (at least, those I'm aware of) to get the IP data in DOS programs running under Windows 95. This document also describes how the WsControl() function seems to work. WsControl() is an function found in the Microsoft WINSOCK.DLL and WSOCK32.DLL, and doesn't seem to be documented yet. It's also available through the WSOCK.VXD, see the WSOCK_CONTROL_CMD. (Note that WSOCK_CONTROL_CMD requires data sizes, not pointers to data size; but that should be pretty obvious, because it requires only two map-ins.) Basically WsControl() function sends command to the lower network. I don't understand the data returned by WsControl (and the available commands) fully, but it's a start, isn't it? :-) Bye. --- proteus AT hoogervorst DOT no DOT spam DOT no DOT demon DOT nl alfons AT hoogervorst DOT no DOT spam DOT no DOT demon DOT nl