1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Rep Power

    Question Capturing keyboard input

    how can i captuer keyboard input when my program doesn't have the focus? i also want to make sure that the input goes to the active application.

    can i disable Ctrl+Alt+Del by capturing it before it goes to the operating system?

    i m using WinXP/ visual C++ 6.0.
    thanks in advance.
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Woodland Hills, Los Angeles County, California, USA
    Rep Power
    Yeah, you'll need to write a device driver then. To do this, you'll first need to get your hands on a DDK (Devicedriver Development Kit) from Microsoft.

    [edit] Found some code in Delphi that you can use maybe:

    To trap ctrl-alt-del, you'll probably need to write your own device driver though [/edit]
    Last edited by Scorpions4ever; June 27th, 2003 at 07:32 PM.

IMN logo majestic logo threadwatch logo seochat tools logo