delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/07/18/15:00:56

From: "Piotr Eljasiak" <eljasiak AT NO-SPAM DOT zt DOT gdansk DOT tpsa DOT pl>
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: <bw1d5.17053$pD2.338143@news.tpnet.pl>
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019