Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
windows: allow retrieving true version with RtlGetNtVersionNumbers
While RtlGetVersion was added so that users can get the Windows version that isn't affected by manifesting, RtlGetVersion is still stubbed out by the application compatibility layer (aclayers.dll and apphelp.dll) for certain processes, such as msiexec.exe, rendering these functions useless for actually determining the underlying operating system. This matters in the case of msiexec.exe using a custom action DLL to install a kernel driver, which of course is version specific. This is also useful, it turns out, for the C runtime library, in which Microsoft uses this function too. It's existed as a stable interface since Windows XP, has Wine support, and is used in a decent amount of software. Change-Id: If391e43bc6d798eff6803d5a7aa6a179f2b31d88 Reviewed-on: https://go-review.googlesource.com/c/sys/+/188119 Run-TryBot: Jason A. Donenfeld <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Alex Brainman <[email protected]>
- Loading branch information