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-Thread: 103376,f02a96c85b47538d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.30.34 with SMTP id p2mr1778665pbh.4.1320835454794; Wed, 09 Nov 2011 02:44:14 -0800 (PST) Path: h5ni16158pba.0!nntp.google.com!news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!193.252.117.184.MISMATCH!feeder.news.orange.fr!not-for-mail Message-ID: <4EBA597E.7070006@obry.net> Date: Wed, 09 Nov 2011 11:44:14 +0100 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr-FR; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada To: comp.lang.ada@googlegroups.com CC: "Rego, P." Subject: Re: Read Windows login username in Ada 95 References: <9192369.445.1320801564794.JavaMail.geo-discussion-forums@yqbl36> In-Reply-To: <9192369.445.1320801564794.JavaMail.geo-discussion-forums@yqbl36> NNTP-Posting-Date: 09 Nov 2011 11:44:14 CET NNTP-Posting-Host: 90.2.58.8 X-Trace: 1320835454 reader.news.orange.fr 30749 90.2.58.8:12646 X-Complaints-To: abuse@orange.fr Xref: news2.google.com comp.lang.ada:14368 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Date: 2011-11-09T11:44:14+01:00 List-Id: Le 09/11/2011 02:19, Rego, P. a �crit : > Is there a function in Ada 95 which returns me a String containing > the logged username in an Windows application? Thanks. No, for a portable solution you can use: POSIX.Process_Identification.Get_Login_Name Available on Florist (GNU/Linux) and wPOSIX (Windows). Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net - http://v2p.fr.eu.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver keys.gnupg.net --recv-key F949BD3B