如何访问粘贴注册表项值? [英] How to access the paste registry key value?

查看:111
本文介绍了如何访问粘贴注册表项值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是shell contextmenu的注册表项的屏幕截图。我找不到粘贴密钥这里



我是什么尝试过:



我试图获取shell contextmenu粘贴事件的click事件。用户是否单击粘贴事件。但是我找不到注册表项,还有其他方法可以获得shell上下文菜单的click事件吗?

Below is the screenshot of the registry key of the shell contextmenu. I couldn't find the paste key here

What I have tried:

I am trying to get the click event of the shell contextmenu paste event. Whether the user clicks on paste event or not. But I couldn't find the registry key and Is there any other way that I can get the click event of the shell context menu?

推荐答案

就像没有粘贴事件,没有粘贴注册表项或甚至粘贴上下文菜单项 - 上下文菜单是自由文本,它们不是windows标准项目,其中所有应用程序使用相同的项目(就像它们为Open做的那样)和保存对话框)。您可以创建自己的上下文菜单,使用保存突出显示和插入此处而不是复制和粘贴,并以您选择的任何方式将其链接到您的代码。虽然Visual Studio会将插入常用项目添加到上下文菜单中,但它不会将它们连接起来,也没有任何机制可以确保它们可以执行任何操作!



说真的,你在这里错误的路线 - 在你进入这个项目之前,我会看到你是否可以把它变成一个有用的东西,或者你冒着失败主人的风险单独论文...安全无法通过复制和粘贴实现!
Just like there is no "Paste Event", there is no "Paste Registry key" or even "Paste Context menu item" - Context menus are free text, they aren't "windows standard items" where all apps use the same items (like they do for Open and Save dialogs). You can create your own context menu which uses "Save the highlight" and "Insert Here" instead of "Copy" and "Paste" and link that to your code in any way you chose. While Visual Studio will "Insert common items" to a context menu for you, it doesn't hook them up, nor is there any mechanism to ensure that they do anything at all!

Seriously, you're going down the wrong route here - before you get too embedded in this project, I'd see if you can change it to something that is going to work or you run the risk of failing your masters on the thesis alone ... Security can't be implemented just via copy and paste!


我们昨天在如何在Windows中捕获粘贴事件? [ ^ ]这是不可能的。
We explained to you yesterday at How to capture the paste event in windows?[^] that this is not possible.


这篇关于如何访问粘贴注册表项值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆