From: "Piotr Eljasiak" Newsgroups: comp.os.msdos.djgpp Subject: User login name ? Lines: 8 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2417.2000 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Message-ID: Date: Tue, 18 Jul 2000 18:40:07 GMT NNTP-Posting-Host: 213.76.28.47 X-Complaints-To: abuse AT tpsa DOT pl X-Trace: news.tpnet.pl 963945607 213.76.28.47 (Tue, 18 Jul 2000 20:40:07 MET DST) NNTP-Posting-Date: Tue, 18 Jul 2000 20:40:07 MET DST Organization: TPNET - http://www.tpnet.pl To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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. TIA, Piotr Eljasiak