Results 1 to 12 of 12

Thread: Right Click

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Right Click

    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
    *****************
    VB6,PHP,VS 2005

  2. #2
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Ubuntu Haters Club
    Posts
    405

    Re: Right Click

    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?
    » Twitter: @rudi_visser : Website: www.rudiv.se «

    If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Re: Right Click

    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?
    *****************
    VB6,PHP,VS 2005

  4. #4
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    354

    Re: Right Click

    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.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Re: Right Click

    are you trying implement copy protection or trying restrict users from running an copying?
    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 code
    *****************
    VB6,PHP,VS 2005

  6. #6
    Hyperactive Member
    Join Date
    Dec 2006
    Location
    Ubuntu Haters Club
    Posts
    405

    Re: Right Click

    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.
    » Twitter: @rudi_visser : Website: www.rudiv.se «

    If Apple fixes security flaws, they are heralded as proactive. If Microsoft fixes a security flaw, they finally got around to fixing their buggy OS.

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Re: Right Click

    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...
    *****************
    VB6,PHP,VS 2005

  8. #8
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    354

    Re: Right Click

    Quote Originally Posted by basti42
    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:

    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.
    Last edited by superbovine; Jul 13th, 2007 at 08:48 PM.

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2006
    Location
    /root/usr/local/bin
    Posts
    476

    Re: Right Click

    ok tnx for the info...
    *****************
    VB6,PHP,VS 2005

  10. #10
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Right Click

    <- 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.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  11. #11
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    354

    Re: Right Click

    That still won't stop the actually act of piracy by the system administrator.

  12. #12
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Right Click

    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.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width