-
Low Level Keyboard Hook
I have been searching around the internet high and low and i cant seem to come up with a solution that i am looking for.
Basically i am making a login application for my TV station to track people who use the computer. I need to disable system key combinations like windows + d and alt + tab etc.
I know i need to use a user32.dll keyboard hook to accomplish this but i cannot find literature telling me how to do it.
Also i am looking for any general tutorial explaining about api hooking and dll imports.
Any information would be greatly helpful, thank you.
-
> Basically i am making a login application for my TV station to track people who use the computer.
You mean physically, but walking up to the machine and using it directly?
Or "login" as in registering on a website?
The former is easily solved by creating an account for each authorised user, then letting the normal windows login deal with the problem.
And if it's the latter, then talk of disabling "win+d" for example makes no sense.
-
The former is correct and while i have contemplated that solution, i do not know all of the users that are going to be signing in.
Basically i am making an digital version of a paper sign in sheet. I have it all working except i want to build redundancies into my program because lets face it, users cant be trusted.
Someone will inevitable press the windows key or alt tab in order to get around loging their name into the computer.
I think i have found some MSDN articles that will help me out. In particular these two:
How to: Implement Callback Functions
How to set a Windows hook in Visual C# .NET
If anyone has any other C# API or DLL hooking tutorials/information that would be greatly appreciated.
Thank you.
-