From: jstacey AT plato DOT wadham DOT ox DOT ac DOT uk (J-P) Newsgroups: comp.os.msdos.djgpp Subject: Re: User login name ? Date: 18 Jul 2000 19:40:10 +0100 Organization: Wadham College Oxford Lines: 11 Message-ID: <8l28aa$h49$1@plato.wadham.ox.ac.uk> References: NNTP-Posting-Host: plato.wadham.ox.ac.uk X-Trace: news.ox.ac.uk 963945610 19593 163.1.164.74 (18 Jul 2000 18:40:10 GMT) X-Complaints-To: newsmaster AT ox DOT ac DOT uk NNTP-Posting-Date: 18 Jul 2000 18:40:10 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article , 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. J-P