Mail Archives: djgpp/2001/04/06/17:15:13
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 -