1

I need to programmatically disable Windows 8 charms bar. On MSDN i can find sample code to do that. However while using that code snippet with Windows 8 SDK installed on my machine i am getting Linker error. The code snippet can be found at System.EdgeGesture.DisableTouchWhenFullscreen

I am able to retrieve the PropertyStore pointer but when i try to set the value "PKEY_EdgeGesture_DisableTouchWhenFullscreen" i am get linker error for this property.

Cœur
  • 37,241
  • 25
  • 195
  • 267

2 Answers2

1

The symbol is exported the following lib files.

C:\Program Files (x86)\Windows Kits\8.0\Lib>findstr /m /S /c:"PKEY_EdgeGesture
isableTouchWhenFullscreen" *.*

win8\um\arm\Uuid.Lib
win8\um\x64\ehstorguids.lib
win8\um\x64\Uuid.Lib
win8\um\x86\ehstorguids.lib
win8\um\x86\Uuid.Lib

Did you modify your libpath?

Sheng Jiang 蒋晟
  • 15,125
  • 2
  • 28
  • 46
  • I am able to compile it and the API works fine as expected. However it doesn't hide the already visible charms bar. Once hidden it does prevent reopening of charms bar. Any idea how already visible charms bar can be hidden. – cooldude5225 Feb 26 '13 at 10:55
0

All you need is to create(if not existed) EdgeUI key under:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell

and add new DWORD keys: DisableTLcorner & DisableCharmsHint

For disable:

DisableTLcorner = 1 
DisableCharmsHint = 1

For Enable change to zero or delete them:

DisableTLcorner = 0 
DisableCharmsHint = 0

All this can be easily done in MFC!!!!

Joseph
  • 1,716
  • 3
  • 24
  • 42