4d61726b / VirtualKD-Redux

VirtualKD-Redux - A revival and modernization of VirtualKD
GNU Lesser General Public License v2.1
777 stars 136 forks source link

Add show parameter to ShellExecuteEx #28

Closed mxmauro closed 3 years ago

mxmauro commented 3 years ago

Hi, I just installed yesterday's release on my Windows 10 with all updates.

The problem I'm facing is WinDbgX, automatically detected, is launched but the windows nor the taskbar button appears.

I realized the process was running but, for some reason, hidden. Surprisingly, when I press Alt+TAB to switch windows, it does appear in the list and, when selected, WinDbgX main window appears.

Debugging vmmon64, I forced the nShow parameter to SW_SHOWMAXIMIZED and the problem disappears.

Thanks for keeping VirtualKD alive.

4d61726b commented 3 years ago

I'm not able to reproduce this issue. Do you have multiple monitors or use RDP?

Would you be able to try with SW_SHOWNORMAL instead of SW_SHOWMAXIMIZED? I can also make a one off build for you to try if you would like.

I am hesitant towards making it SW_SHOWMAXIMIZED since it seems to be more intrusive if you are trying to multitask. If you know how I can reproduce it that would also make it easier for me to try a couple more things as well.

mxmauro commented 3 years ago

I have multiple monitors. Seems a problem related to Windows because one time I could see the same effect on another application.

I'll check with SW_SHOWNORMAL and give feeback :)

4d61726b commented 3 years ago

2021.1 (released today) defaults to using SW_SHOWNORMAL. I will close this pull request for now, but I am still interested in hearing your feedback and if you have any ideas as to what is causing the behavior you described on your host.

mxmauro commented 3 years ago

Hi @4d61726b, yes it worked too, thanks. Despite less times, personally I have a similar issue launching MobaXTerm so I would confirm that is something related to the OS but don't know yet.