Home > Software engineering >  How to ban on desktop paste files and folders?
How to ban on desktop paste files and folders?

Time:09-15

How to ban on desktop paste files and folders? Shared computer, paste is too messy,
HKEY_CLASSES_ROOT \ Directory \ shellex \ CopyHookHandlers
Seems can use icopyhander to prohibit copy the folder, file forbidding is quite troublesome,
I just want to disable the fall in the desktop right-click the link paste button in the menu, how to implement?
Have the ready-made tools or software?
Do you have any related information to share? Had better have a VB demo,
I search a lot of information on the Internet, or don't understand, don't know how to lay their hands on,

CodePudding user response:

It is hard to realize dream
If you have any power, on the background of writing "no store files on your desktop!" May be even better effect

CodePudding user response:

Open a thread, handle to the foreground window cycle detection, if the desktop is, hey hey, empty clip version
Feasible?

CodePudding user response:

on the background of writing "no store files on your desktop!" , the effect is not good, a public computer, you will ignore the basic, certainly can achieve this function, because of the shock wave virus implementation,

Open handle to the thread detection, clear clipboard does not seem feasible, all like this in to the desktop, the shear plate will be cleared, and a thread seems to have a little consume resources,

Right-click menu appears to be in c: \ Windows \ system32 \ shell32 DLL, I use execope loaded it resources -> menu, there is only 210215216217 paste menu, I try to modify the 210215 and banned for gray, seems to be useless, but 215 seems to be used for desktop menu? 216 resources menu, paste was gray and forbidden,
Does anyone have a modified experience in this field?





CodePudding user response:

The desktop window subclassing window function??

CodePudding user response:

CodePudding user response:

WinAPIOverride http://jacquelin.potier.free.fr/winapioverride32/

CodePudding user response:

Desktop window subclassing window function, which functions specific to subclass? Function seems to come from shell32. DLL call,

CodePudding user response:

Zhao four teachers give WinAPIOverride, seem to be very powerful, not to use, right click on the desktop popup right-click menu, how to be on the hook?
Which process to monitor? Explorer. Exe?
Would you please to give directions? Or give a demo?

CodePudding user response:

WinAPIOverride I chose to attach the at application startup, and then select C: \ WINDOWS \ system32 \ shell32 DLL, 1% tip is not a valid WIN32 application, can only load exe file?

CodePudding user response:

references 9 f liuzhaoyzz response:
WinAPIOverride I choose to attach the at application startup, and then select C: \ WINDOWS \ system32 \ shell32 DLL, 1% tip is not a valid WIN32 application, can only load exe file?

Intensive reading WinAPIOverride online help,
Compile link debug WinAPIOverride own example code,

CodePudding user response:

references to the tenth floor zhao4zhong1 response:
Quote: references 9 f liuzhaoyzz response:

WinAPIOverride I chose to attach the at application startup, and then select C: \ WINDOWS \ system32 \ shell32 DLL, 1% tip is not a valid WIN32 application, can only load exe file?

Intensive reading WinAPIOverride online help,
Compile link debug WinAPIOverride own example code,

Also don't understand, you can compile link debug WinAPIOverride source code,

CodePudding user response:

don't understand, directly to give up,,,

CodePudding user response:


Write a DLL injection to explorer. The exe process, use SetWindowLong over SHELL_DefView Windows message loop, process WM_COMMAND messages

CodePudding user response:

Can change the way of thinking, filtering the desktop this directory?
  • Related