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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,e6340deed4b219ea X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.184.11 with SMTP id ci11mr9157273qab.1.1355061020795; Sun, 09 Dec 2012 05:50:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.49.98.42 with SMTP id ef10mr2504609qeb.15.1355061020579; Sun, 09 Dec 2012 05:50:20 -0800 (PST) Path: gf5ni48613681qab.0!nntp.google.com!c8no2190050qao.0!postnews.google.com!e25g2000vbm.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 9 Dec 2012 05:50:20 -0800 (PST) Complaints-To: groups-abuse@google.com Injection-Info: e25g2000vbm.googlegroups.com; posting-host=87.209.50.192; posting-account=Od-2dQoAAAB0Ax1n9anxOF811WhPXsCz NNTP-Posting-Host: 87.209.50.192 References: <5d3aff8d-529b-49ce-b583-525201c2b868@r20g2000yql.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0,gzip(gfe) Message-ID: <03f19861-e90d-4664-8f1b-02580aea84c0@e25g2000vbm.googlegroups.com> Subject: Re: platform specific question From: Hans Vlems Injection-Date: Sun, 09 Dec 2012 13:50:20 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-12-09T05:50:20-08:00 List-Id: On 7 dec, 19:29, Jeffrey Carter wrote: > On 12/07/2012 11:14 AM, Hans Vlems wrote: > > > C programs have easy access to commandline arguments and "environment > > variables". > > Is there a way to interpret the environment variables on a Windows > > (2008 Server R2) platform? > > What I'm looking for is the usercode that executes the program. Some > > programs offer different functionality which is now derived from a > > table that is organised by username/usercode. > > For command-line arguments, there's package Ada.Command_Line (ARM A.15,http://www.adaic.org/resources/add_content/standards/05rm/html/RM-A-1... > for environment variables, package Ada.Environment_Variables (ARM A.17,http://www.adaic.org/resources/add_content/standards/05rm/html/RM-A-1...). > > Ada.Command_Line has existed since 1995; Ada.Environment_Variables came along in > 2007. > > -- > Jeff Carter > "I like it when the support group complains that they have > insufficient data on mean time to repair bugs in Ada software." > Robert I. Eachus > 91 Jeff, thanks for the pointers. I stopped using ADA in 1984 or so and have only recently returned to the language. If only to discover that ADA has changed a lot in the mean time. Hans