Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Intercepting Windows sequrity box

Status
Not open for further replies.

MatsHulten

Programmer
Dec 29, 2000
180
SE
Hi!

When in NT and W2K you are pressing Ctrl-Alt-Del followed by Enter you lock the computer.
Is there a way to intercept other keystrokes programatically and execute other functions/programs?

I know I can do this by purchasing some kind of macro program, but I'd really like to try it the hard way... :)

-Mats Hulten
 
MatsHulten
If you mean intercepting the Ctrl-Alt-Del specifically and running you own program rather than the Windows program,then you would need to look at writing your own GINA (somethingI've read about, but never tried).
If you just want to monitor all keystrokes for every process, then you need to Hook into the OS message queues. You can do this with Pure VB if your are monitoring a single process, but if you want to monitor all processes, then you will need to move the CallBack function into a C++ DLL (the code is not that complicated though). The function that you want to look at using for this is SetWindowsHookEx.
- Jeff Marler B-)
 
hello jmarler,

sir could u please elaborate on the statement

"but if you want to monitor all processes, then you will need to move the CallBack function into a C++ DLL (the code is not that complicated though)."

i am trying to set up a hook to monitor all processes , but i know very little of C++ so u r reply could be of great help to me.
thanx for letting me know that its not possible using activesx dll.

any resource will be invaluable

thanx in anticipation
aniket
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top