Article View: borland.public.cppbuilder.nativeapi
Article #6404Re: Getting the user's email addres
From: Jeff
Date: Fri, 13 May 2005 18:46
Date: Fri, 13 May 2005 18:46
29 lines
2140 bytes
2140 bytes
This will be running on a machine that many people will log into and use. I was just hoping to find a way to make it "fool-proof" for the user. Since we're all in the same domain, we each have an email address. "Alan Bellingham" <alanb@episys.com> wrote in message news:8vq981tnp9dcsbn2i31olqbphpnaemjo23@4ax.com... > "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:
<4284f5ee$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4284b811@newsgroups.borland.com> <8vq981tnp9dcsbn2i31olqbphpnaemjo23@4ax.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: "Jeff" <Jeff@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4284b811@newsgroups.borland.com> <8vq981tnp9dcsbn2i31olqbphpnaemjo23@4ax.com> Subject: Re: Getting the user's email addres Date: Fri, 13 May 2005 12:46:09 -0600 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 NNTP-Posting-Host: 198.68.195.59 Message-ID: <4284f5ee$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1116009966 198.68.195.59 (13 May 2005 11:46:06 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail