Cannot Undo SystemParametersInfo API Call ! Please Help !!

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

orekinAsked:
Who is Participating?
 
orekinConnect With a Mentor Author Commented:
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
 
RimvisCommented:
Hello orekin,

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

Regards,

Rimvis
0
 
orekinAuthor Commented:
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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
RimvisCommented:
Sorry, I misunderstood.

Try to set pShowAccelerators to False
0
 
orekinAuthor Commented:
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
 
orekinAuthor Commented:
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
All Courses

From novice to tech pro — start learning today.