Brendan Shanks (@bshanks) commented about dlls/win32u/win32u_private.h:
return NtCurrentTeb()->Peb->OSPlatformId == VER_PLATFORM_WIN32s;
}
+static inline ULONG_PTR zero_bits(void) +{ +#ifdef _WIN64
- return !NtCurrentTeb()->WowTebOffset ? 0 : 0x7fffffff;
It would be nice if this was large-address-aware, likely based on the `SystemEmulationBasicInformation` `HighestUserAddress` the same way it's done in `wow64`.