I am writing a program that shows/hides the window of some target application. I was testing it out earlier and noticed something strange. If I run the target application as Adm
If you don't mind the window acting like you minimized it to the taskbar; You can, generally, show and hide windows from elevated processes by posting WM_SYSCOMMAND with a wParam of SC_RESTORE or SC_MINIMIZE.