svnno****@sourc*****
svnno****@sourc*****
2017年 4月 24日 (月) 20:49:47 JST
Revision: 6689 http://sourceforge.jp/projects/ttssh2/scm/svn/commits/6689 Author: doda Date: 2017-04-24 20:49:47 +0900 (Mon, 24 Apr 2017) Log Message: ----------- 検出できるOSの条件を追加 IsWindows2000(), IsWindowsMe() を追加。 Modified Paths: -------------- trunk/teraterm/common/ttlib.c trunk/teraterm/common/ttlib.h trunk/teraterm/ttpcmn/ttpcmn.def -------------- next part -------------- Modified: trunk/teraterm/common/ttlib.c =================================================================== --- trunk/teraterm/common/ttlib.c 2017-04-24 11:49:42 UTC (rev 6688) +++ trunk/teraterm/common/ttlib.c 2017-04-24 11:49:47 UTC (rev 6689) @@ -1268,6 +1268,12 @@ return IsWindowsVer(VER_PLATFORM_WIN32_WINDOWS, 4, 0); } +// OS\x82\xAA WindowsMe \x82\xA9\x82ǂ\xA4\x82\xA9\x82ʂ\xB7\x82\xE9\x81B +BOOL IsWindowsMe() +{ + return IsWindowsVer(VER_PLATFORM_WIN32_WINDOWS, 4, 90); +} + // OS\x82\xAA WindowsNT4.0 \x82\xA9\x82ǂ\xA4\x82\xA9\x82ʂ\xB7\x82\xE9\x81B BOOL IsWindowsNT4() { @@ -1282,6 +1288,12 @@ return IsWindowsVer(VER_PLATFORM_WIN32_NT, 4, 0); } +// OS\x82\xAA Windows2000 \x82\xA9\x82ǂ\xA4\x82\xA9\x82ʂ\xB7\x82\xE9\x81B +BOOL IsWindows2000() +{ + return IsWindowsVer(VER_PLATFORM_WIN32_NT, 5, 0); +} + // OS\x82\xAA Windows2000 \x88ȍ~ \x82\xA9\x82ǂ\xA4\x82\xA9\x82ʂ\xB7\x82\xE9\x81B // // return TRUE: 2000 or later Modified: trunk/teraterm/common/ttlib.h =================================================================== --- trunk/teraterm/common/ttlib.h 2017-04-24 11:49:42 UTC (rev 6688) +++ trunk/teraterm/common/ttlib.h 2017-04-24 11:49:47 UTC (rev 6689) @@ -48,8 +48,10 @@ BOOL is_NT4(); int get_OPENFILENAME_SIZE(); BOOL IsWindows95(); +BOOL IsWindowsMe(); BOOL IsWindowsNT4(); BOOL IsWindowsNTKernel(); +BOOL IsWindows2000(); BOOL IsWindows2000OrLater(); BOOL IsWindowsVistaOrLater(); BOOL IsWindows7OrLater(); Modified: trunk/teraterm/ttpcmn/ttpcmn.def =================================================================== --- trunk/teraterm/ttpcmn/ttpcmn.def 2017-04-24 11:49:42 UTC (rev 6688) +++ trunk/teraterm/ttpcmn/ttpcmn.def 2017-04-24 11:49:47 UTC (rev 6689) @@ -70,7 +70,9 @@ CheckComPort @64 IsWindows95 @65 + IsWindowsMe @83 IsWindowsNT4 @66 + IsWindows2000 @84 IsWindowsNTKernel @67 IsWindows2000OrLater @68 IsWindowsVistaOrLater @69