C
C#4w ago
"Mes"vin

How can I get all active windows that are fullscreen/maximized using the Win32, user32 api

New to CSharp and WPF
5 Replies
Unknown User
Unknown User4w ago
Message Not Public
Sign In & Join Server To View
"Mes"vin
"Mes"vinOP4w ago
Imitating the window taskbar, and making windows respect the space it takes up For example making sure chrome doesn't span the entire screen
Omnissiah
Omnissiah4w ago
there are a few ways to do this iirc, i think you can use psapi's EnumProcesses, maybe also wmi has a list of processes then you have to filter them (or you could call a cmd command that enumerates processes and parse the result) -# i don't remember if there's something more to the point, that deals just with windows there is, i forgot about EnumWindows you could also manage stuff between desktops and stations and yes wmi also has Win32_Process class but you would still have to open all items to get properties and detect if it's a windows probably
"Mes"vin
"Mes"vinOP4w ago
Can I change the workarea somehow? So that all windows respect my custom taskbar
Omnissiah
Omnissiah4w ago
i remember there was some api that worked on that but i wouldn't be able to tell you right now if this is possible or how although it's simple to find SystemParametersInfoA SPI_SETWORKAREA but i haven't tried it
Want results from more Discord servers?
Add your server