我需要以编程方式禁用 Windows 8 魅力栏。在 MSDN 上,我可以找到执行此操作的示例代码。但是,在我的机器上使用安装了 Windows 8 SDK 的代码片段时,我收到了链接器错误。代码片段可以在System.EdgeGesture.DisableTouchWhenFullscreen中找到
我能够检索 PropertyStore 指针,但是当我尝试设置值“PKEY_EdgeGesture_DisableTouchWhenFullscreen”时,我收到此属性的链接器错误。
我需要以编程方式禁用 Windows 8 魅力栏。在 MSDN 上,我可以找到执行此操作的示例代码。但是,在我的机器上使用安装了 Windows 8 SDK 的代码片段时,我收到了链接器错误。代码片段可以在System.EdgeGesture.DisableTouchWhenFullscreen中找到
我能够检索 PropertyStore 指针,但是当我尝试设置值“PKEY_EdgeGesture_DisableTouchWhenFullscreen”时,我收到此属性的链接器错误。
该符号被导出以下 lib 文件。
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
你修改了你的libpath吗?
您只需要在以下位置创建(如果不存在)EdgeUI键:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\ImmersiveShell
并添加新的 DWORD 键:DisableTLcorner & DisableCharmsHint
对于禁用:
DisableTLcorner = 1
DisableCharmsHint = 1
对于启用更改为零或删除它们:
DisableTLcorner = 0
DisableCharmsHint = 0
这一切都可以在 MFC 中轻松完成!!!!