On Thu, 19 May 2016, Dimitrij Klingbeil wrote:
3. There seems to be no well-known defined way (yet)
to assign to a process
the information, which API version it expects to see and use.
There is. It was introduced in Windows 7: the Compatibility section in
the application manifest:
https://blogs.msdn.microsoft.com/cjacks/2009/03/27/manifesting-for-compatib…
Task manager in recent versions of windows (and resource monitor as of
Win7) has the ability to show this "os context" column.
Some googling shows where that value is stored in the PEB:
https://github.com/processhacker2/processhacker2/blob/master/ProcessHacker/…