Solved

BlockInput not working on Windows 7

Posted on 2013-02-02
6
1,624 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

831 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