www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
From: | Chris Herborth <cherborth AT qnx DOT com> |
Subject: | Re: is there a (cygwin?) method delivering the current version of windows? |
Date: | Mon, 24 Jan 2005 13:10:58 -0500 |
Organization: | QNX Software Systems Ltd. |
Lines: | 14 |
Message-ID: | <ct3dni$afe$1@sea.gmane.org> |
References: | <41F4B046 DOT 7010908 AT gmx DOT net> |
Reply-To: | cherborth AT qnx DOT com |
Mime-Version: | 1.0 |
X-Complaints-To: | usenet AT sea DOT gmane DOT org |
X-Gmane-NNTP-Posting-Host: | mobius.qnx.com |
User-Agent: | Mozilla Thunderbird 0.9 (Windows/20041103) |
In-Reply-To: | <41F4B046.7010908@gmx.net> |
X-IsSubscribed: | yes |
H. Henning Schmidt wrote: > I am looking for a method available to my cygwin'ed C-program that > delivers the current version of windows that my program is running on. > E.g. "WinXp, SP1", or "Win98 ..." (... you get the idea ...) either in > textual or numerically encoded form. > Any hint is appreciated. Thanks, You could probably dig it out of the registry, but 'uname -s' will give you something useful. On my XP Pro system, I get CYGWIN_NT-5.1 (XP is "Windows NT 5.1"), for example. -- Chris Herborth (cherborth AT qnx DOT com) Never send a monster to do the work of an evil scientist. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |