ShowWindow Function Doesn't Work When Target Application Is Run As Administrator
问题 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 Administrator (right-click->Properties, "Compatability" tab, "Run this program as administrator") it doesn't work. To demonstrate I wrote a simple GUI app called "TargetApplication" and then I wrote the following code to test showing/hiding this application: class Program { static void Main(string[] args) { IntPtr