Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What does the property "TreatAsDesktopFullscreen" exactly do? #3

Closed
Aetopia opened this issue Aug 3, 2023 · 2 comments
Closed

What does the property "TreatAsDesktopFullscreen" exactly do? #3

Aetopia opened this issue Aug 3, 2023 · 2 comments

Comments

@Aetopia
Copy link

Aetopia commented Aug 3, 2023

I have been poking around the source code of WindowInvestigator and was wondering what does "TreatAsDesktopFullscreen" exactly do?

@dechamps
Copy link
Owner

dechamps commented Aug 3, 2023

According to my reverse engineering notes, the internal DesktopFullscreenHelpers::IsValidDesktopFullscreenWindow() will return true if:

(
  GetWindowBand() == 1 &&
  GetPropW("NonRudeHWND") == 0 &&
  GetPropW("LivePreviewWindow") == 0 &&
  IsShellManagedWindow() == 0
) || GetPropW("TreatAsDesktopFullscreen") != 0

So I'd intuitively expect it to behave as the opposite of NonRudeHWND - as in, TreatAsDesktopFullscreen can be used to force a window to be considered "rude".

This is only my recollection from rough notes I took at the time though, so please take this with a grain of salt. In order to confirm the above I would need to dig into the binary code again, which I'm not going to do because it would take me a long time to refamiliarise myself with it since I last looked at this more than a year ago.

@Aetopia
Copy link
Author

Aetopia commented Aug 4, 2023

Thank you!

@Aetopia Aetopia closed this as completed Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants