Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Cannot Undo SystemParametersInfo API Call ! Please Help !!

Posted on 2009-05-12
6
Medium Priority
?
235 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
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 

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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…
Suggested Courses

885 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