Mail Archives: djgpp/2000/07/19/21:32:14
I just stumbled upon this post, so here's my 2 cents...
Look in the Ralph Brown interrupt list, available at www.delorie.com/, and
look under network or windows interrupts. I believe there is an interrupt
that will give you network information.
HTH
- Betelgeuse
"Richard Dawe" <rich AT phekda DOT freeserve DOT co DOT uk> wrote in message
news:3974B66E DOT 6ACADB13 AT phekda DOT freeserve DOT co DOT uk...
> Hello.
>
> J-P wrote:
> >
> > Piotr Eljasiak <eljasiak AT NO-SPAM DOT zt DOT gdansk DOT tpsa DOT pl> wrote:
> > > How can I get user login name ? getlogin() returns only value of env
> > > var either $USER or $LOGNAME, and none of these vars is set by the
> > > Win9x/NT4 system while user logging in.
> >
> > The environment variable USERNAME is, I think, set by NT: I don't have
> > WinXX to hand. If you can access environment variables, you can access
> > that one.
>
> Windows '95 doesn't seem to set this. The information is, however, stored
> in a registry key, which can be accessed from DOS programs running under
> Windows. libwin provides functionality to do this - please see:
>
> http://www.phekda.freeserve.co.uk/richdawe/mysoft.html#libwin
>
> Hope this helps, bye,
>
> --
> Richard Dawe
> [ mailto:richdawe AT bigfoot DOT com | http://www.bigfoot.com/~richdawe/ ]
- Raw text -