Solved

Cannot Undo SystemParametersInfo API Call ! Please Help !!

Posted on 2009-05-12
6
228 Views
Last Modified: 2012-05-06
Hi
I wanted accelerator keys to show for my users, so I followed the instructions in http://www.codeproject.com/KB/dotnet/General.aspx
However I cannot work out how to call the function to reverse my change !
Thanks
Nick

Public Class AcceleratorKeyVisibilityUtils

    <DllImport("user32.dll")> _

    Private Shared Sub SystemParametersInfo(ByVal uiAction As UInteger, ByVal uiParam As UInteger, ByRef pvParam As Integer, ByVal fWinIni As UInteger)

    End Sub
 

    Const SPI_SETKEYBOARDCUES As UInteger = &H100B
 

    Public Shared Sub AcceleratorsVisible_ChangeSystemSetting(ByVal pShowAccelerators As Boolean)

        SystemParametersInfo(SPI_SETKEYBOARDCUES, 0, pShowAccelerators, 0)

    End Sub
 

End Class

Open in new window

0
Comment
Question by:orekin
  • 4
  • 2
6 Comments
 
LVL 19

Expert Comment

by:Rimvis
ID: 24362194
Hello orekin,

Maybe you can use SPI_GETKEYBOARDCUES (0x100A) action to get current settings?

Regards,

Rimvis
0
 

Author Comment

by:orekin
ID: 24382079
I'm not sure what you mean.  
Wouldn't SPI_GETKEYBOARDCUES be used to retrieve the settings ?
I want to change the settings back to what they were - in other words "Hide Underlined letters for keyboard navigation until I press the ALT Key"
0
 
LVL 19

Expert Comment

by:Rimvis
ID: 24382200
Sorry, I misunderstood.

Try to set pShowAccelerators to False
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:orekin
ID: 24408965
Well, yes, I tried to set pShowAccelerators = False and it does not reverse the change.  

Anyone else have any ideas ?  This should be a solvable problem ....
0
 

Author Comment

by:orekin
ID: 24463674
Another unanswered question of mine.
Another question that a moderator will forcibly close.
Yet this question is direct, short and clearly expained.  
It seems that Experts Exchange is a Waste of Money
0
 

Accepted Solution

by:
orekin earned 0 total points
ID: 24621688
Once again, I have not received a solution from Experts Exchange.  You are a waste of money and a dishonest operation to boot.  

When you search google and get an experts exchange result, it appears that you need to join to see the solution, but the solution is hidden away at the bottom of the page.  VERY DODGY !!

Add that to the fact that your membership agreement cleverly hid the fact that you STORE my credit card details and keep billing me every year.  I ended up paying for another year I did not want, and Experts Exchange refused to refund it.

I hope you lot go bankrupt, you don't deserve to be in business.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

708 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

16 Experts available now in Live!

Get 1:1 Help Now