In article <20011128144620.3D08.USA / osb.att.ne.jp>,
U.Nakamura <usa / osb.att.ne.jp> wrote:
>Hello,
>
>In message "[ruby-talk:26741] Re: quick question"
>    on Nov.28,2001 14:30:25, <ptkwt / shell1.aracnet.com > wrote:
>| I have no idea what happens when you're running XP, I suspect that 
>| InWinNT? will return true.  
>
>Yes.
>If you want to distinguish between NT and XP, see MajorVer and MinorVer.
>On XP, MajorVer is 5 and MinorVer is 1.
>
>
>Regards
>--
>U.Nakamura <usa / osb.att.ne.jp>

Thanks.

I'll try to add another function soon:
Win32::InXP?

In the meantime you can use (from my Win32 module):

Win32::GetOSVersion

Which returns a hash with the following keys:
"MajorVer"
"MinorVer"
"BuildNum"
"PlatformID"

Phil