This topic has been archived. It cannot be replied.
-
工作学习 / IT技术讨论 / 哪位DX知道如何在 .NET Windows Service Application中使用 Windows API GetForegroundWindow 和 GetWindowText? 在Window application中代码运行正常,但改成Windows Service后,GetForegroundWindow 返回的HWND总是0. 谢谢
-smallguy(oops);
2005-1-18
(#2081385@0)
-
because it is running as Service!!!
-guestagain(guest again);
2005-1-18
(#2081706@0)
-
请问有什么办法可在Service中返回当前active的window的handler吗?用windows application在background运行时(no form)可返回用户正在使用的window(不是我的window application的window). 但在service中不行了。Thanks.
-smallguy(oops);
2005-1-19
(#2082853@0)