🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting the user's email addres

#6008
From: Jeff
Date: Fri, 17 Jun 2005 17:57
42 lines
2564 bytes
    I guess I should have said this earlier, but this is for an engineering 
tool that will be used only within our organization. Therefore everyone is 
logging into the same domain, and has a similar email address 
(joe.smoe@smoe.com).

    So I'd like to get the users full name somehow. I've looked at using 
NetUserGetInfo() but it doesn't work with Windows 98. I can get the user's 
UserName using GetUserName() (jsmoe), but I need a way to get the user's 
full name that is compatible with Windows 98.

Thanks,
Jeff

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message 
news:4284f959@newsgroups.borland.com...
>
> "Jeff" <Jeff@nospam.com> wrote in message
> news:4284f5ee$1@newsgroups.borland.com...
>
>> I was just hoping to find a way to make it "fool-proof" for the user.
>
> There's pretty much no such thing ;-)
>
>> Since we're all in the same domain, we each have an email address.
>
> The only other possibility to consider, other than what has already been
> stated, is if each user has a network login username that is the same
> mailbox name of their email addresses, and if the machine is logging into 
> a
> network server that has the same domain as the email server.  For example,
> if "joe" logs into network "smoe.com" and has an email address of
> "joe@smoe.com", then you can use GetUserName() to find out who is 
> currently
> logged into the machine, and LookupAccountName() to get the domain that 
> the
> machine belongs to.
>
>
> Gambit
>
>
> 
Technical Details
Message-ID: <42b30f0f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4284b811@newsgroups.borland.com> <8vq981tnp9dcsbn2i31olqbphpnaemjo23@4ax.com> <4284f5ee$1@newsgroups.borland.com> <4284f959@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: "Jeff" <Jeff@nospam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <4284b811@newsgroups.borland.com> <8vq981tnp9dcsbn2i31olqbphpnaemjo23@4ax.com> <4284f5ee$1@newsgroups.borland.com> <4284f959@newsgroups.borland.com>
Subject: Re: Getting the user's email addres
Date: Fri, 17 Jun 2005 11:57:38 -0600
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 198.68.195.154
Message-ID: <42b30f0f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1119031055 198.68.195.154 (17 Jun 2005 10:57:35 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail