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,f890526de6a8a218 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.megapath.net!news.megapath.net.POSTED!not-for-mail NNTP-Posting-Date: Thu, 13 Oct 2005 19:17:50 -0500 From: "Randy Brukardt" Newsgroups: comp.lang.ada References: <22jsk1pnk6664cr4so2nig7ssi2u0d6bv7@4ax.com> <434e4a25_1@glkas0286.greenlnk.net> Subject: Re: How to detect OS type and version? Date: Thu, 13 Oct 2005 19:21:34 -0500 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4952.2800 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4952.2800 Message-ID: NNTP-Posting-Host: 64.32.209.38 X-Trace: sv3-TxL0Dy9srS+EwQbLF/alVnJrvL7cWMmQFQlRYbM1MEh86IiAlKEw/H6lna5nl5QgylevpXJ+cGctB9x!KRQwjRGEPGNz3l/u71MieV6RpGEAwK2rgjGMsF1bqj4347G/pD3M0Fb+Ib3Eq5EgiLTAJcLtS4c2 X-Complaints-To: abuse@megapath.net X-DMCA-Complaints-To: abuse@megapath.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:5621 Date: 2005-10-13T19:21:34-05:00 List-Id: "Martin Dowie" wrote in message news:434e4a25_1@glkas0286.greenlnk.net... > That way doesn't give the version of the OS. But once you know that you're running on Windows, you can arrange to call the Win32 Get_Version function to learn all of the details. (You'd have to do that with a dynamic call to avoid statically linking part of the Windows runtime.) I presume something similar is available in the Linux API. Randy.