Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的程序中,我正在检查应用程序的实例是否已经使用互斥锁运行。
现在我想知道如何处理已经运行的应用程序实例以将其置于前面。
您可以使用 FindWindow 获取窗口的句柄并使用 SetWindowPos 将其带到前面。