Solved

Cannot Undo SystemParametersInfo API Call ! Please Help !!

Posted on 2009-05-12
6
231 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
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.

 

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

820 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