Detect when a user presses CTRL -ALT - DEL or Window + L in VB.net -
i'm trying find out way detect when ever user presses ctrl -alt - del or window + l lock pc.
the code i'm using
private sub timer1_tick(byval sender system.object, byval e system.eventargs) handles timer1.tick if (getasynckeystate(17) andalso getasynckeystate(18) andalso getasynckeystate(46)) or ((getasynckeystate(91) or getasynckeystate(92)) andalso getasynckeystate(76)) msgbox ("yes") end if end sub
however, user presses ctrl-alt-del windows security screen comes , fast vb detect keys have been pressed.
i did little reaserch on how work around issue , found gina stub can written can delay windows security screen time 2 secs enough vb detect keys have been pressed.
also disabling ctrl-alt-del through vb not work because fast vb , not disable ctrl-alt-del
could 1 please let me know how can gina stub created ???
you can find article gina here: customizing gina, part 1
however, windows vista , no longer uses gina you'd have @ credential providers, i'm not sure if support want do.
i'm not sure need i'd suggest might want @ systemevents.sessionswitch in case might useful (not used myself sounds possibility).
Comments
Post a Comment