Solved

BlockInput not working on Windows 7

Posted on 2013-02-02
6
1,552 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
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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now