Link to home
Start Free TrialLog in
Avatar of rbali2004
rbali2004

asked on

API call for Windows2000 to lock the keyboard

Hi,
I have created a VB application to lock the computer (VB6) using the
following APIS:
clipcursor
getwindowrect
systemparamtersinfo (SPI_SCREENSAVERRUNNING)

The mechanism is that when the user locks the windows, the getwindowrect API gets the rectangular region of the form and clips the cursor so that it cannot move on the desktop. The Systemparamtersinfo API then locks the keyboard until the user enters the required password in the vb6 application. This app works fine under windows 98. However, under windows 2000 the systemparametersinfo(SPI_SCREENSAVERRUNNING) doesnot work. As a result,
the keyboard shortcuts such as CTL-ALT-DEL and CTL-TAB work even when
my VB6 application has locked the cursor within the rectangular region
of the form. Is there any alternative to the Systemparametersinfo API
that can do the lock the keyboard (not to the application but to
the rest of the windows)

THnaks
Rafay
Avatar of Jase-Coder
Jase-Coder

ASKER CERTIFIED SOLUTION
Avatar of zonaltech
zonaltech

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial