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

    Locking the keyboard

    Hello,

    Does anybody know if it is possible to lock the keyboard from a VC++ program ?

    I actually need to lock the keyboard and completely stop any keypresses so just handling keypresses within the code is not an option.

    Also, can other system settings be changed via a VC++ program ?? - i.e. the screen saver ?

    Thanks,

    S.


  2. #2
    Join Date
    May 1999
    Posts
    2

    Re: Locking the keyboard

    Try using PreTranslateMessage

    if( pMsg->message == WM_KEYDOWN && m_MyFlag == True)
    {
    return TRUE;
    }



  3. #3
    Guest

    Re: Locking the keyboard

    I can't use this because I need to stop ALL keyboard activity. This wouldn't catch CTRL+ALT+DEL for instance would it ?

    Simon.


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