From mboxrd@z Thu Jan 1 00:00:00 1970
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me
X-Spam-Level:
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
autolearn_force=no version=3.4.4
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103376,4800b2e2656ad00e
X-Google-Attributes: gid103376,public
X-Google-ArrivalTime: 2003-07-15 09:35:41 PST
Path:
archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: recuperation du nom d'utilisateur
Date: 15 Jul 2003 18:35:40 +0200
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References: <2003713-224037-305837@foorum.com>
NNTP-Posting-Host: avelizy-103-1-6-146.w80-15.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news-reader3.wanadoo.fr 1058286940 4296 80.15.2.146 (15 Jul 2003
16:35:40 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 15 Jul 2003 16:35:40 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.95
Xref: archiver1.google.com comp.lang.ada:40292
Date: 2003-07-15T16:35:40+00:00
List-Id:
"John R. Strohm" writes:
> "SebOne" wrote in message
> news:2003713-224037-305837@foorum.com...
> >
> > Bonjour,
> > je souhaiterais savoir s'il est possible de recuperer le nom de
> l'utilisateur
> > actuellement connecte sur un ordinateur (os: windows XP), grace au langage
> de
> > programmation Ada. Si cela l'est, pourriez-vous m'eclairer sur ce sujet?
> > Merci.
>
> That is going to be compiler- and operating system-dependent. Windows XP
> probably provides a C/C++ API for that purpose: you would probably have to
> write an Ada binding to it, for your particular compiler.
Or use POSIX.Process_Identification.Get_Login_Name, the binding is already
done :)
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595