Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MantisMountainMobile authored Jul 5, 2022
1 parent 91fbfdb commit d7281d0
Show file tree
Hide file tree
Showing 9 changed files with 352 additions and 313 deletions.
363 changes: 190 additions & 173 deletions source/tc2ch/dll/for_win11.c

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions source/tc2ch/dll/newCodes_Win10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ extern "C" int CheckWinVersion_Win10(void)
int minorVersion;
int buildNumber;
extern int WinBuildNumber;
extern int Win11Type;
//extern int Win11Type;

auto versionInfo = RTL_OSVERSIONINFOW{ sizeof(RTL_OSVERSIONINFOW) };
HMODULE hModule = GetModuleHandle("ntdll.dll");
Expand Down Expand Up @@ -308,25 +308,25 @@ extern "C" int CheckWinVersion_Win10(void)
}


if (buildNumber < 22000)
{
Win11Type = 0; //Windows10
}
else if ((buildNumber < 22579) || (buildNumber >= 22616))
{
Win11Type = 1; //Windows11 Type1 (時計がトレイに載っっている)
}
else
{
Win11Type = 2; //Windows11 Type2 (時計がContentBridgeに載っていて、タスクバー処理が大きく変わった->Build22616で撤回された)
}
//if (buildNumber < 22000)
//{
// Win11Type = 0; //Windows10
//}
//else if ((buildNumber < 22579) || (buildNumber >= 22616))
//{
// Win11Type = 1; //Windows11 Type1 (時計がトレイに載っっている)
//}
//else
//{
// Win11Type = 2; //Windows11 Type2 (時計がContentBridgeに載っていて、タスクバー処理が大きく変わった->Build22616で撤回された)
//}

if (b_DebugLog)
{
writeDebugLog_Win10("[newCodes_Win10][CheckWinVersion_Win10] MajorVersion = ", majorVersion);
writeDebugLog_Win10("[newCodes_Win10][CheckWinVersion_Win10] MinorVersion = ", minorVersion);
writeDebugLog_Win10("[newCodes_Win10][CheckWinVersion_Win10] BuildNumber = ", buildNumber);
writeDebugLog_Win10("[newCodes_Win10][CheckWinVersion_Win10] Win11Type = ", Win11Type);
//writeDebugLog_Win10("[newCodes_Win10][CheckWinVersion_Win10] Win11Type = ", Win11Type);
}

}
Expand Down
8 changes: 4 additions & 4 deletions source/tc2ch/dll/tcdll.rc
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 5,3,1,1
PRODUCTVERSION 5,3,1,1
FILEVERSION 5,4,1,1
PRODUCTVERSION 5,4,1,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -45,11 +45,11 @@ BEGIN
BEGIN
VALUE "Comments", "TClock DLL for Windows10 and Windows11"
VALUE "FileDescription", "DLL for TClock-Win10"
VALUE "FileVersion", "5.3.1.1"
VALUE "FileVersion", "5.4.1.1"
VALUE "InternalName", "TCDLL"
VALUE "OriginalFilename", "tcdll-win10.dll"
VALUE "ProductName", "TClock-Win10"
VALUE "ProductVersion", "5.3.1.1"
VALUE "ProductVersion", "5.4.1.1"
END
END
BLOCK "VarFileInfo"
Expand Down
Loading

0 comments on commit d7281d0

Please sign in to comment.