delorie.com/archives/browse.cgi | search |
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: | <bw1d5.17053$pD2 DOT 338143 AT news DOT tpnet DOT pl> |
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 <bw1d5.17053$pD2 DOT 338143 AT news DOT tpnet DOT pl>, 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. J-P
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |