![]() |
| | #1 |
| Registered User Join Date: Jun 2009
Posts: 2
| Low Level Keyboard Hook 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. |
| sumone4life is offline | |
| | #2 |
| and the hat of vanishing Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,214
| > 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.
__________________ If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut. Up to 8Mb PlusNet broadband from only £5.99 a month! |
| Salem is offline | |
| | #3 |
| Registered User Join Date: Jun 2009
Posts: 2
| 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. |
| sumone4life is offline | |
| | #4 |
| Registered User Join Date: Jun 2008 Location: RING 0
Posts: 462
| pinvoke.net: the interop wiki! Grab a signature and burn. |
| valaris is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Simulate Keys with a Keyboard Hook | guitarist809 | Windows Programming | 3 | 11-14-2008 08:14 PM |
| C/C++, low or high level? | Sentral | General Discussions | 4 | 01-23-2007 11:43 PM |
| Keyboard hook | joecaveman | Windows Programming | 2 | 09-03-2005 08:07 AM |
| Keyboard Hook | jmd15 | Windows Programming | 19 | 08-07-2005 03:11 PM |
| How to keep static data in a keyboard hook? | junbin | Windows Programming | 1 | 01-19-2003 03:24 AM |