Solved

BlockInput not working on Windows 7

Posted on 2013-02-02
6
1,666 Views
Last Modified: 2013-03-03
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
0
Comment
Question by:Soumen-Roy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 7

Expert Comment

by:tipsybroom
ID: 38846953
does it crash?

what is the returnvalue?

try this with windows 7 x64:
http://www.donationcoder.com/Software/Skrommel/index.html#BlockInput
0
 
LVL 12

Assisted Solution

by:Mohamed Abowarda
Mohamed Abowarda earned 250 total points
ID: 38849366
In Windows 7 and Vista, you need to provide administrator privileges to use this function.

Try running the program as administrator and it should work.
0
 

Author Comment

by:Soumen-Roy
ID: 38850575
It is not crashing.
Return value is False.
I am working in Administrator login as I said.

Please help
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 83

Accepted Solution

by:
CodeCruiser earned 250 total points
ID: 38854663
Right click the exe and select Run As Admin
0
 

Author Comment

by:Soumen-Roy
ID: 38866827
Right Click-> Run as admin showing no difference. No password is asked, or nothing extra happened. Same result.
0
 

Author Closing Comment

by:Soumen-Roy
ID: 38946906
thanx
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question