Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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?
Posted
Updated 24-May-18 21:52pm

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!
 
Share this answer
 
Comments
Dilan Shaminda 25-May-18 5:13am    
Actually since my topic is related to protect confidential data I have to do some research about the possibilities that can happen. That's why I tried to detect paste event.Actually this is only one use-case of my thesis. But I can write in my report why it is not possible to detect the paste event. I know that the security cannot be implemented only by copy paste. But my client is interested to know is it possible? if not why? So I hope why I posted the question here. To get the feedback from the community of experts :-) Thank you for the answer
Dilan Shaminda 25-May-18 5:33am    
Can you provide me a link to a web page or an article where I can put a reference about this ? Then I can explain it in my report with a proper reference. Thanks in advance!
OriginalGriff 25-May-18 5:48am    
There is no web page or article about "this is how you work with something that doesn't exist" that i am aware of. Religious ones excepted, of course. :laugh:
Dilan Shaminda 25-May-18 5:54am    
Ha haa...no no.. I mean not "How I work with something that doesn't exist" :D I want to write about it with a proper reference in my report :-)
OriginalGriff 25-May-18 6:23am    
Nobody writes articles explaining "this is what's not in the API" - so there isn't anything to reference!
We explained to you yesterday at How to capture the paste event in windows?[^] that this is not possible.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900