From: "Betelgeuse" Newsgroups: comp.os.msdos.djgpp References: <8l28aa$h49$1 AT plato DOT wadham DOT ox DOT ac DOT uk> <3974B66E DOT 6ACADB13 AT phekda DOT freeserve DOT co DOT uk> Subject: Re: User login name ? Date: Wed, 19 Jul 2000 19:10:04 -0700 Lines: 39 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 207.148.146.64 X-Original-NNTP-Posting-Host: 207.148.146.64 Message-ID: <39765387_6@news.cadvision.com> X-Trace: 19 Jul 2000 19:19:03 -0700, 207.148.146.64 Organization: CADVision Development Corporation (http://www.cadvision.com/) X-Original-NNTP-Posting-Host: 204.50.1.43 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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" wrote in message news:3974B66E DOT 6ACADB13 AT phekda DOT freeserve DOT co DOT uk... > Hello. > > J-P wrote: > > > > Piotr Eljasiak 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/ ]