Vistaのバージョン情報

解決


Aki  2007-05-27 11:32:05  No: 26292  IP: 192.*.*.*

Windowsのバージョン情報を下記で取得しています。
VistaのVersion Noがわかれば教えてください。
まだ、Vista機を購入していないので、質問です。

  case Win32Platform of
    VER_PLATFORM_WIN32_WINDOWS:
      case Win32MinorVersion of
         0:result := Win95;
        10:result := Win98;
        90:result := WinMe;
      else result := Other end;
    VER_PLATFORM_WIN32_NT:
      case Win32MajorVersion of
        3:result := WinNT3;
        4:result := WinNT4;
        5:case Win32MinorVersion of
            0:result := Win2k;
            1:result := WinXP;
          else result := Other end;
      else result := Other end;
  else result := Other end;

編集 削除
他力本願ね  2007-05-27 12:06:27  No: 26293  IP: 192.*.*.*

VistaのMajorVersionは 6、Minorは 0。
もっと詳しくエディション分けたければ、
http://www.atmarkit.co.jp/fdotnet/dotnettips/553winver2deep/winver2deep.html

編集 削除
Aki  2007-05-29 05:02:27  No: 26294  IP: 192.*.*.*

解決しました。
ありがとうございます。

編集 削除