🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6402

Re: Getting the user's email addres

#6402
From: Alan Bellingham
Date: Fri, 13 May 2005 18:06
22 lines
1743 bytes
"Jeff" <Jeff@nospam.com> wrote:

>Does anyone know what the best way to get a logged in user's email address 
>would be? I've got a machine in a Windows domain which people log into, and 
>I'd like to find out the currently logged in user's email address.

Why don't you ask the user?

The way you ask this question makes several assumptions, including

1: The user has an email address
2: The user has one email address
3: The user doesn't mind your code knowing it

I suggest you ask and then store the result in the registry under the
HKEY_CURRENT_USER entry for future reference.

Alan Bellingham
-- 
Me <url:mailto:alanb@episys.com> <url:http://www.doughnut.demon.co.uk/>
ACCU - C, C++ and Java programming               <url:http://accu.org/>
The 2004 Discworld Convention                   <url:http://dwcon.org/>
Technical Details
Message-ID: <8vq981tnp9dcsbn2i31olqbphpnaemjo23@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4284b811@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,74830bd3beadefb5
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Alan Bellingham <alanb@episys.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Getting the user's email addres
Date: Fri, 13 May 2005 19:06:02 +0100
Reply-To: alanb@episys.com
Message-ID: <8vq981tnp9dcsbn2i31olqbphpnaemjo23@4ax.com>
References: <4284b811@newsgroups.borland.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 62.49.31.105
X-Trace: newsgroups.borland.com 1116007561 62.49.31.105 (13 May 2005 11:06:01 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail