https://blog.dummzeuch.de/2017/11/02/using-pe-flags-in-delphi/
Using PE Flags in Delphi