On Thu Feb 29 15:27:53 2024 +0000, Anton Baskanov wrote:
Do we need to replicate this behavior? Also, do you have any suggestions for a better way to implement this?
It's better to do it in the same way.
I don't know how it's implemented. You'll need to dig deeper if possible. There are some possibilities you can try, for example, PsSetCreateProcessNotifyRoutine() as shown at [Detecting Windows NT/2K process execution](https://www.codeproject.com/Articles/2018/Detecting-Windows-NT-2K-process-ex...), or a thread in win32u? maybe window hooks? You can also try calling ChangeDisplaySettingsEx(CDS_FULLSCREEN) in a console application and see how it reacts.