Sender: rich AT phekda DOT freeserve DOT co DOT uk Message-ID: <3ACE307D.D942ADAA@phekda.freeserve.co.uk> Date: Fri, 06 Apr 2001 22:09:17 +0100 From: Richard Dawe X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.17 i586) X-Accept-Language: de,fr MIME-Version: 1.0 To: Edward Griffin CC: DJGPP newsgroup Subject: Re: Find Network User Names References: <9afgni$3d0$1 AT newsg3 DOT svr DOT pol DOT co DOT uk> <9akq1f$6pr$1 AT news7 DOT svr DOT pol DOT co DOT uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Hello. Edward Griffin wrote: > > Maybe I should rephrase the question. Does anyone know of a library with > a function a bit like this:- > char *getnetworkusername(char *node_address); > so that I could do something like this:- > > int main() > { > printf("This program is searching to see who is logged on in the > computer in the living room:-\n"); > printf("USERNAME: %s\n", getnetworkusername("00.10.FA.09.84.1B")); > } [snip] > you get the picture. Does anyone know of library with a function like > this? libwin has a function to find the user logged in to the computer. It accesses the Windows registry to find the user name, which means it will only work with Windows '95, '98 and maybe ME. I'm not sure how you find out the user name of someone logged into a computer. I think some special NetBIOS names exist, when a user logs in, for messaging purposes. Maybe you can access this information using the LAN Manager APIs - see Ralph Brown's Interrupt List. HTH, bye, -- Richard Dawe http://www.bigfoot.com/~richdawe/ "The soul is the mirror of an indestructible universe." --- Gottfried W. Leibniz