Created
April 5, 2026 18:57
-
-
Save CostaFot/098a151eb11ff9e7a7607fd35fb9c38c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Talk to Windows UI layer | |
| [DllImport("user32.dll")] | |
| // Read the window style | |
| GetWindowLong(windowHandle, EXTENDED_STYLE) | |
| // Add the "hide from taskbar" flag and apply it | |
| SetWindowLong(windowHandle, EXTENDED_STYLE, currentStyle | 0x80) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment