禁用右键菜单

Posted bluepointlilac

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了禁用右键菜单相关的知识,希望对你有一定的参考价值。

在新窗口中打开(包括文件夹和IE)

HKEY_CLASSES_ROOTFoldershellopennewwindow

HKEY_LOCAL_MACHINESOFTWAREClassesFoldershellopennewwindow

 

在新进程中打开(包括文件夹和IE)

HKEY_CLASSES_ROOTFoldershellopennewprocess

HKEY_LOCAL_MACHINESOFTWAREClassesFoldershellopennewprocess

 

在新标签页中打开(只有IE)

HKEY_CLASSES_ROOTFoldershellopennewtab

HKEY_LOCAL_MACHINESOFTWAREClassesFoldershellopennewtab

 

固定到快速访问(文件夹)

HKEY_CLASSES_ROOTFoldershellpintohome

HKEY_LOCAL_MACHINESOFTWAREClassesFoldershellpintohome

 


授予访问权限(文件、文件夹、目录背景、磁盘、库)

技术图片
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*shellexContextMenuHandlersSharing]
@="{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"
[HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlersSharing]
@="{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"
[HKEY_CLASSES_ROOTDirectoryshellexContextMenuHandlersSharing]
@="{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"
[HKEY_CLASSES_ROOTDirectoryshellexCopyHookHandlersSharing]
@="{40dd6e20-7c17-11ce-a804-00aa003ca9f6}"
[HKEY_CLASSES_ROOTDirectoryshellexPropertySheetHandlersSharing]
@="{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"
[HKEY_CLASSES_ROOTDriveshellexContextMenuHandlersSharing]
@="{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"
[HKEY_CLASSES_ROOTDriveshellexPropertySheetHandlersSharing]
@="{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"
[HKEY_CLASSES_ROOTLibraryFolderackgroundshellexContextMenuHandlersSharing]
@="{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"
[HKEY_CLASSES_ROOTUserLibraryFoldershellexContextMenuHandlersSharing]
@="{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"
[HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer]
"NoInplaceSharing"=-
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionShell ExtensionsBlocked]
"{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"=-
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlLsa]
"forceguest"=dword:00000000
;默认显示
技术图片
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT*shellexContextMenuHandlersSharing]
[-HKEY_CLASSES_ROOTDirectoryBackgroundshellexContextMenuHandlersSharing]
[-HKEY_CLASSES_ROOTDirectoryshellexContextMenuHandlersSharing]
[-HKEY_CLASSES_ROOTDirectoryshellexCopyHookHandlersSharing]
[-HKEY_CLASSES_ROOTDirectoryshellexPropertySheetHandlersSharing]
[-HKEY_CLASSES_ROOTDriveshellexContextMenuHandlersSharing]
[-HKEY_CLASSES_ROOTDriveshellexPropertySheetHandlersSharing]
[-HKEY_CLASSES_ROOTLibraryFolderackgroundshellexContextMenuHandlersSharing]
[-HKEY_CLASSES_ROOTUserLibraryFoldershellexContextMenuHandlersSharing]
;删除

 


还原以前版本(文件、文件夹、磁盘、属性选项卡)

技术图片
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTAllFilesystemObjectsshellexContextMenuHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[HKEY_CLASSES_ROOTCLSID{450D8FBA-AD25-11D0-98A8-0800361B1103}shellexContextMenuHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[HKEY_CLASSES_ROOTDirectoryshellexContextMenuHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[HKEY_CLASSES_ROOTDriveshellexContextMenuHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[HKEY_CLASSES_ROOTAllFilesystemObjectsshellexPropertySheetHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[HKEY_CLASSES_ROOTCLSID{450D8FBA-AD25-11D0-98A8-0800361B1103}shellexPropertySheetHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[HKEY_CLASSES_ROOTDirectoryshellexPropertySheetHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[HKEY_CLASSES_ROOTDriveshellexPropertySheetHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorer]
"NoPreviousVersionsPage"=-
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorer]
"NoPreviousVersionsPage"=-
[HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftPreviousVersions]
"DisableLocalPage"=-
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorer]
"NoPreviousVersionsPage"=-
[HKEY_CURRENT_USERSoftwarePoliciesMicrosoftPreviousVersions]
"DisableLocalPage"=-
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionShell ExtensionsBlocked]
"{596AB062-B4D2-4215-9F74-E9109B0A8153}"=-
;默认显示
技术图片
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOTAllFilesystemObjectsshellexPropertySheetHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[-HKEY_CLASSES_ROOTCLSID{450D8FBA-AD25-11D0-98A8-0800361B1103}shellexPropertySheetHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[-HKEY_CLASSES_ROOTDirectoryshellexPropertySheetHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[-HKEY_CLASSES_ROOTDriveshellexPropertySheetHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[-HKEY_CLASSES_ROOTAllFilesystemObjectsshellexContextMenuHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[-HKEY_CLASSES_ROOTCLSID{450D8FBA-AD25-11D0-98A8-0800361B1103}shellexContextMenuHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[-HKEY_CLASSES_ROOTDirectoryshellexContextMenuHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[-HKEY_CLASSES_ROOTDriveshellexContextMenuHandlers{596AB062-B4D2-4215-9F74-E9109B0A8153}]
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorer]
"NoPreviousVersionsPage"=-
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorer]
"NoPreviousVersionsPage"=-
[HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftPreviousVersions]
"DisableLocalPage"=-
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorer]
"NoPreviousVersionsPage"=-
[HKEY_CURRENT_USERSoftwarePoliciesMicrosoftPreviousVersions]
"DisableLocalPage"=-
;删除

 


包含到库中(文件夹)

技术图片
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTFolderShellExContextMenuHandlersLibrary Location]
@="{3dad6c5d-2167-4cae-9914-f99e41c12cfa}"
[HKEY_LOCAL_MACHINESOFTWAREClassesFolderShellExContextMenuHandlersLibrary Location]
@="{3dad6c5d-2167-4cae-9914-f99e41c12cfa}"
;默认显示
技术图片
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOTFolderShellExContextMenuHandlersLibrary Location]
[-HKEY_LOCAL_MACHINESOFTWAREClassesFolderShellExContextMenuHandlersLibrary Location]
;删除

 


固定到开始屏幕(文件夹、exe文件、不知道、msc文件)

技术图片
Windows Registry Editor Version 5.00
;文件夹
[HKEY_CLASSES_ROOTFoldershellexContextMenuHandlersPintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
;exe文件
[HKEY_CLASSES_ROOTexefileshellexContextMenuHandlersPintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
;不知道
[HKEY_CLASSES_ROOTMicrosoft.WebsiteShellExContextMenuHandlersPintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
;msc文件
[HKEY_CLASSES_ROOTmscfileshellexContextMenuHandlersPintoStartScreen]
@="{470C0EBD-5D73-4d58-9CED-E91E22E23282}"
;默认显示
技术图片
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOTFoldershellexContextMenuHandlersPintoStartScreen]
[-HKEY_CLASSES_ROOTexefileshellexContextMenuHandlersPintoStartScreen]
[-HKEY_CLASSES_ROOTMicrosoft.WebsiteShellExContextMenuHandlersPintoStartScreen]
[-HKEY_CLASSES_ROOTmscfileshellexContextMenuHandlersPintoStartScreen]
;删除

 


固定到任务栏(exe文件)

技术图片
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*shellexContextMenuHandlers{90AA3A4E-1CBA-4233-B8BB-535773D48449}]
@="Taskband Pin"
;默认显示
技术图片
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT*shellexContextMenuHandlers{90AA3A4E-1CBA-4233-B8BB-535773D48449}]
;删除

 


发送到(文件、文件夹、库)

技术图片
Windows Registry Editor Version 5.00
;文件、文件夹
[HKEY_LOCAL_MACHINESOFTWAREClassesAllFilesystemObjectsshellexContextMenuHandlersSendTo]
@="{7BA4C740-9E81-11CF-99D3-00AA004AE837}"
;库
[HKEY_LOCAL_MACHINESOFTWAREClassesUserLibraryFoldershellexContextMenuHandlersSendTo]
@="{7BA4C740-9E81-11CF-99D3-00AA004AE837}"
;默认显示
技术图片
Windows Registry Editor Version 5.00
;文件、文件夹
[-HKEY_LOCAL_MACHINESOFTWAREClassesAllFilesystemObjectsshellexContextMenuHandlersSendTo]
;库
[-HKEY_LOCAL_MACHINESOFTWAREClassesUserLibraryFoldershellexContextMenuHandlersSendTo]
;删除

 


兼容性疑难解答(exe、msi等可执行文件)(需重启explorer)

技术图片
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTatfileshellExContextMenuHandlersCompatibility]
@="{1d27f844-3a1f-4410-85ac-14651078412d}"
[HKEY_CLASSES_ROOTcmdfileshellExContextMenuHandlersCompatibility]
@="{1d27f844-3a1f-4410-85ac-14651078412d}"
[HKEY_CLASSES_ROOTexefileshellexContextMenuHandlersCompatibility]
@="{1d27f844-3a1f-4410-85ac-14651078412d}"
[HKEY_CLASSES_ROOTMsi.PackageshellexContextMenuHandlersCompatibility]
@="{1d27f844-3a1f-4410-85ac-14651078412d}"
[HKEY_CLASSES_ROOTMSILinkshellexContextMenuHandlers]
@="{1d27f844-3a1f-4410-85ac-14651078412d}"
[HKEY_CLASSES_ROOTMSILinkshellexContextMenuHandlers{1d27f844-3a1f-4410-85ac-14651078412d}]
@="Compatibility Context Menu"
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionShell ExtensionsBlocked]
"{1d27f844-3a1f-4410-85ac-14651078412d}"=-
;默认显示
技术图片
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionShell ExtensionsBlocked]
"{1d27f844-3a1f-4410-85ac-14651078412d}"=""
;删除

 


共享(文件)

技术图片
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*shellexContextMenuHandlersModernSharing]
@="{e2bf9676-5f8f-435c-97eb-11607a5bedf7}"
;默认显示
技术图片
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT*shellexContextMenuHandlersModernSharing]
;删除

 

 

以上是关于禁用右键菜单的主要内容,如果未能解决你的问题,请参考以下文章

C# winform如果禁用右键菜单和其它功能键盘

jQuery禁用快捷键例如禁用F5刷新 禁用右键菜单等

如何禁用html中的右键菜单? [复制]

禁用flash右键菜单

新版CefSharp 禁用右键菜单 43.00+

wpf 禁用启用webbroswer右键菜单