1, could you tell me how to get the current running in Windows and in all the process of the front window?
2, how will be the window to switch to the background, let the other a specified program shows in the front?
3, how to minimize this window,
The great god give advice or comments, please. I found in c # to achieve this kind of operation really hurt, I tried Windows API but is not very skilled with, can't ZF customers requirements is too abnormal condition I really freaked out, deliver,
CodePudding user response:
GetTopWindow get the top-level windowGetWindowThreadProcessId access and window of the associated process and thread ID
SetForegroundWindow or SetWindowPos
in advance
ShowWindow (hWnd, SW_MINIMIZE) to minimize the display