Solved

BlockInput not working on Windows 7

Posted on 2013-02-02
6
1,638 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
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 
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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

832 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