comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <p.obry@wanadoo.fr>
Subject: Re: recuperation du nom d'utilisateur
Date: 15 Jul 2003 18:35:40 +0200
Date: 2003-07-15T16:35:40+00:00	[thread overview]
Message-ID: <ufzl7wxwj.fsf@wanadoo.fr> (raw)
In-Reply-To: bet9fv$soj@library2.airnews.net


"John R. Strohm" <strohm@airmail.net> writes:

> "SebOne" <seb.two@wanadoo.fr> 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



      reply	other threads:[~2003-07-15 16:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-13 20:40 recuperation du nom d'utilisateur SebOne
2003-07-14  3:49 ` John R. Strohm
2003-07-15 16:35   ` Pascal Obry [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox