CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Disable DEL Key

  1. #1
    Join Date
    Jun 2009
    Posts
    65

    Disable DEL Key

    Hey guys I need to Disbale the Del key

    The Details are in the wrongly posted thread.

    http://www.codeguru.com/forum/showth...48#post1864148

    Sorry for inconvenience...

    Thanks in advance

  2. #2
    Join Date
    Nov 2006
    Posts
    1,611

    Re: Disable DEL Key

    Seriously, it will be easier to replace the keyboard.

    However, your research is on point. Since you intend to filter the keyboard system wide, you must install an OS hook, as the sample you posted in the linked thread, but the details are beyond the scope of this post.

    That sample may simply require an Microsoft compiler for it to compile as is, I don't know. You'll need to learn about Borland's means to build a simple application which can properly call SetWindowsHookEx, and provide a filter function.

    Or you could download the free Express edition of Microsoft's compiler and try that, too.

    You have the general idea. The notion of putting this in an application is odd, it may be more fitting to build it as a service, but that's not critical for the goal you've indicated (a personal project).

    If not a new keyboard, you might find it easier to pull the screws and remove the switch on that key.
    If my post was interesting or helpful, perhaps you would consider clicking the 'rate this post' to let me know (middle icon of the group in the upper right of the post).

  3. #3
    Join Date
    Dec 2008
    Posts
    114

    Re: Disable DEL Key

    LL hook, see MSDN code (90's)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured