Skip to content

Commit

Permalink
Win32: Update search for AllowDarkModeForWindowWithTelemetryId for 24H2
Browse files Browse the repository at this point in the history
  • Loading branch information
sratz authored and lathapatil committed Nov 7, 2024
1 parent c35e5df commit 02bb345
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ BOOL Validate_AllowDarkModeForWindowWithTelemetryId(const BYTE* functionPtr)
return TRUE;
}

/* Win11 builds from 26100 */
if ((functionPtr[0x16] == 0xBE) && // mov esi,
(*(const DWORD*)(functionPtr + 0x17) == 0xA91E)) // 0A91Eh
{
return TRUE;
}

return FALSE;
#elif defined(_M_ARM64)
if (*(const DWORD*)(&functionPtr[0x18]) == 0xD29523C1) // mov x1,#0xA91E
Expand Down

0 comments on commit 02bb345

Please sign in to comment.