Solved

Cannot Undo SystemParametersInfo API Call ! Please Help !!

Posted on 2009-05-12
6
232 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
[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
  • 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
Independent Software Vendors: 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!

 

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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

734 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