没有用户登录时重新绘制窗口 [英] Repaint window when no users are logged in

查看:49
本文介绍了没有用户登录时重新绘制窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当没有活动用户使用 cSharp 登录到 Windows 机器时,是否可以重新绘制窗口?该窗口是否可用于屏幕捕获程序?或者根本不可能,用户必须登录机器.

Is it possible to repaint a window when there are no active users logged on to a windows machine using c sharp? And will that window be available to screen capture program? Or is it not possible at all and a user must be logged into the machine.

我使用以下内容:

SetForegroundWindow(handle);

InvalidateRect(IntPtr.Zero, IntPtr.Zero, true);

UpdateWindow(handle);

感谢大家的帮助

推荐答案

由于没有用户登录,所以没有运行 UI.

Since there is no user logged in, there is no UI running.

所以,不,在这种情况下你不能重绘(没有窗口可以重绘).

So, no, you can't repaint under such circumstances (there is no window to repaint).

这篇关于没有用户登录时重新绘制窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆