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-7-bit Received: by 10.68.35.68 with SMTP id f4mr1053685pbj.5.1320815129550; Tue, 08 Nov 2011 21:05:29 -0800 (PST) MIME-Version: 1.0 Path: h5ni15247pba.0!nntp.google.com!news1.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!news.musoftware.de!wum.musoftware.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Read Windows login username in Ada 95 Date: Wed, 9 Nov 2011 05:05:27 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <9192369.445.1320801564794.JavaMail.geo-discussion-forums@yqbl36> NNTP-Posting-Host: Lf0Nl3CcQzx+ocHx9cmuGg.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Tom's custom newsreader Xref: news1.google.com comp.lang.ada:18877 Date: 2011-11-09T05:05:27+00:00 List-Id: > Is there a function in Ada 95 which returns me a String containing > the logged username in an Windows application? Thanks. No. Not all Ada applications run in a Windows environment. In Windows, you can call function GetEnvironmentVariable and get the value of the environment variable "USERNAME".