This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: is there a (cygwin?) method delivering the current version of windows?


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@qnx.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]