Link to home
Start Free TrialLog in
Avatar of Soumen-Roy
Soumen-RoyFlag for India

asked on

BlockInput not working on Windows 7

Hi Experts,

Private Declare Function BlockInput Lib "user32" Alias "BlockInput" (ByVal fBlock As Integer) As Integer

Private Sub DisableInput()
          BlockInput(1)
End Sub


This code not working in Windows 7 64 bit. I am working in Admin login, still not working

Regards,
Soumen
Avatar of tipsybroom
tipsybroom
Flag of Germany image

does it crash?

what is the returnvalue?

try this with windows 7 x64:
http://www.donationcoder.com/Software/Skrommel/index.html#BlockInput
SOLUTION
Avatar of Brad Brett
Brad Brett
Flag of United States of America image

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
Avatar of Soumen-Roy

ASKER

It is not crashing.
Return value is False.
I am working in Administrator login as I said.

Please help
ASKER CERTIFIED SOLUTION
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
Right Click-> Run as admin showing no difference. No password is asked, or nothing extra happened. Same result.
thanx