www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/04/06/17:15:13

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 <rich AT phekda DOT freeserve DOT co DOT uk>
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 <edward AT neptune DOT greatxscape DOT net>
CC: DJGPP newsgroup <djgpp AT delorie DOT com>
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>
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 <richdawe AT bigfoot DOT com> http://www.bigfoot.com/~richdawe/ 

"The soul is the mirror of an indestructible universe."
--- Gottfried W. Leibniz

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019