comp.lang.ada
 help / color / mirror / Atom feed
* recuperation du nom d'utilisateur
@ 2003-07-13 20:40 SebOne
  2003-07-14  3:49 ` John R. Strohm
  0 siblings, 1 reply; 3+ messages in thread
From: SebOne @ 2003-07-13 20:40 UTC (permalink / raw)



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.
-- 
Ce message a ete poste via la plateforme Web club-Internet.fr
This message has been posted by the Web platform club-Internet.fr

http://forums.club-internet.fr/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: recuperation du nom d'utilisateur
  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
  0 siblings, 1 reply; 3+ messages in thread
From: John R. Strohm @ 2003-07-14  3:49 UTC (permalink / raw)


"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.

Your compiler vendor may already have such a binding available.

(Thank you, Babelfish.)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: recuperation du nom d'utilisateur
  2003-07-14  3:49 ` John R. Strohm
@ 2003-07-15 16:35   ` Pascal Obry
  0 siblings, 0 replies; 3+ messages in thread
From: Pascal Obry @ 2003-07-15 16:35 UTC (permalink / raw)



"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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-07-15 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox