From 7008f30327242d7f091a6f4c83b3535c6f2c602c Mon Sep 17 00:00:00 2001 From: Bush2021 <79072750+Bush2021@users.noreply.github.com> Date: Thu, 5 Sep 2024 22:53:37 -0400 Subject: [PATCH] feat: add a switch for forcibly enabling win32k --- src/chrome++.ini | Bin 8924 -> 9808 bytes src/config.h | 6 ++++++ src/green.h | 6 ++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/chrome++.ini b/src/chrome++.ini index f690deb06a602b8b4d8dba614bfbb779775e7962..39b0875db81b89acb63d5fc992dfad92e6b1c02e 100644 GIT binary patch delta 831 zcmZWnK}!N*5S@q)#Yz%&ieTxYL17d`6dfcAf;7^F4py@6ZY7y3>1LibsY~dkjJnmO zLr0-M;w9)1bn4PMgrKlDpKiFy!tOUSZ{B+|-@dKX)~jW&?V$l$B$-ypq+`-3NeN0( z0T~_VEU6+k5HHgK5GEawK|WNv5hm>+n@3-oW@&~FX%cY`eJb9v;Ny&edW(0yqd^9- zMHxJ7Cr6IGwSNK`%_ik4?}NS|lc|Vxe6x@-(VG&HiEML>1ms+jqMipDHm){DYz-6^ z+6^&N`;_e6M6(7fst{l~o+OL6Dh#q&$D{&M-kFR&7y@Yl!}4x(VgO`?HM=FwGw|wo zT{4!eLNVb=dU7hsf`lC(O07(!DxKsT=l&-{KX~UGdVt d)s2}7Uu*jKty`Q0+J{)8=}K@k^jz~wLw_JZuD}2Q delta 11 ScmccMbH{Z( ProcessCreationMitigationPolicy::BlockNonMicrosoftBinariesAlwaysOn); - // *policy_value_1 &= - // ~PROCESS_CREATION_MITIGATION_POLICY_WIN32K_SYSTEM_CALL_DISABLE_ALWAYS_ON; + if (IsWin32K()) { + *policy_value_1 &= static_cast( + ProcessCreationMitigationPolicy::Win32kSystemCallDisableAlwaysOn); + } } return RawUpdateProcThreadAttribute(lpAttributeList, dwFlags, Attribute, lpValue, cbSize, lpPreviousValue,