hello!
is this possible?
if i found that the file is an .exe, the Open and Copy when right click will disable
including the Ctrl+C, if possible how could i do that?
tnx
Printable View
hello!
is this possible?
if i found that the file is an .exe, the Open and Copy when right click will disable
including the Ctrl+C, if possible how could i do that?
tnx
I don't understand what you mean, and I'm sure others don't too.
You want to disable Ctrl-C when somebody right clicks, is that correct?
Or do you want to allow them to copy something from a menu?
for example i have a files saved on the diskette or hard drive
the program found that there is an .exe file
if you try to open it will not open, or right click the file to open or copy will
Open and Copy are disable even the Ctrl+C will not function.
in short if the file is .exe it will prohibit to Run and Copy
if still not clear let me know...
or any idea?
are you trying implement copy protection or trying restrict users from running an copying?
If you are trying to do copy protection, restricting the right click is pretty week. there is are several way to ge around it. What you would have to do is write API and override right click. It would be a pain, might not be possible for what you want to do. you can get around the right click them by using DOS, drag and drop (for copy only), and writing a program or batch file to run the program or copy the program, start->run->(type exe here).
If it is for security use group policy i.e. you are system admin and you don't want normal user to run programs.
yes i want to restrict the user from copying and opening the .exe or any executable file... that's why im seeking for any sample codeQuote:
are you trying implement copy protection or trying restrict users from running an copying?
So it's like an application firewall type system?? To not permit access to *.exe files.
I understand, hopefully that sums it up for people that may know the answer.
Sorry, but I can't help you with it as I've never looked into hooking into everything that the OS does.
it's ok, but i know there are masters out there know how to do this kind of
restrictions...
ii'll just wait for the replies...
A master would say:Quote:
Originally Posted by basti42
Your idea will fail because it is fundamentally flawed. You will never be able to stop someone from copying your data. What if they copied the file with a Mac or Linux? How about use the c$ share and copy the file over the network? What about boot to a dos disk and copy the file? How about just use DOS (command prompt) to copy the file? What about end the process the is running that is blocking the file copy? How do you stop all those threats? To pursue copy protection is through licenses, keys, and legal actions is the correct method. Have you seen anyone implement this method in commercial software? That should answer your question.
However, if you want to try:
http://www.vbforums.com/showthread.p...lobal+api+hook
Also, if you software is actually that annoying i really doubt anyone would use it.
ok tnx for the info...
<- OS master
You can stop executable programs from being transmitted from one computer to another with a setting on the domain controller. A local computer can be set so that a limited user can't install programs, although they will still be able to run them. But you still won't be able to stop them from running programs off of a CD.
If it is for your program, there is a cheap trick i just thought of to prevent anyone from copying your program while still allowing you to run it. The executable will be in the administrator's Documents folder. Normal users can't even browse to the documents of other users. You can have a 2nd launch program that has administrator privelages and it will run your main program. If they copy the launch program, it won't do them any good because all it is is a shortcut.
That still won't stop the actually act of piracy by the system administrator.
nope, but if he has the ability to set permissions then he IS the administrator.
It's pretty easy to make a program to only run on a particular computer though. Just read the hard drive serial number and compare it to a stored value. If different, the program won't run.