目次に戻る
一覧ページに戻る
CPSystemInfo::GetOSVersion
2002/01/31 update.
Ver 1.07
OSのバージョンを取得します。

書式

  int GetOSVersion();

パラメータ


戻り値
OSのバージョンが16進数で返されます。
これは、OSの持つ内部バージョンになります。

Windows 95 0x0095
Windows 98 0x0098
Windows Me 0x0490
Windows NT 4.0 0x0400
Windows 2000 0x0500
Windows XP 0x0510
Mac OS 8.6 0x0860
Mac OS 9.2 0x0920
Mac OS X 10.1 0x1001

解説


OSのバージョンを16進数で取得します。


ビルド時に必要なファイル


ライブラリ :CPartsLib.lib (Macintoshの場合は、CPartsCW.a)
ヘッダ :CPSystemInfo.h


関連リンク


CPSystemInfoクラス
CPSystemInfo::GetOS