I'm not sure if it is actually possibe in C#, but I was wondering if there was a way to check everytime the user logs into the computer, and if the password was incorrect, call a function within the program. I'm not sure how tight the security is on things like this, so any help would be appreciated.
Perhaps this would be a good place to start:
Hook windows logon/logoff events
I am no expert, but it seems the callbacks you get from the OS concerning logons are:
I can't see anything relating to a failed logon attempt, so I guess you'd have to dig deeper - if it's possible at all.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.