ShowWindow Function Doesn't Work When Target Application Is Run As Administrator

后端 未结 2 2087
别跟我提以往
别跟我提以往 2021-02-10 07:01

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

2条回答
  •  旧巷少年郎
    2021-02-10 07:25

    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.

提交回复
热议问题