用户登录时触发事件 [英] event to fire when user login
本文介绍了用户登录时触发事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我希望用户注销后登录到计算机或在C#或VB.net中重新启动计算机时,在应用程序中触发登录事件.
谢谢,
Ram
Hi all,
I want the logon event to fire in my application when a user login to his machine after logoff or restart his machine in C# or VB.net.
Thanks,
Ram
推荐答案
您必须为此使用Windows API,请查看
WTSRegisterSessionNotification函数 [ SENS参考 [
You''ll have to use the Windows API for that, have a look at
WTSRegisterSessionNotification Function[^]
or SENS Reference[^]
你能给我发这个代码吗
这篇关于用户登录时触发事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文