Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Disabling cut,copy,paste,rename and delete operation

Disabling cut,copy,paste,rename and delete operation

Scheduled Pinned Locked Moved C / C++ / MFC
8 Posts 5 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sarfaraznawaz
    wrote on last edited by
    #1

    hello, Is there way to disable Cut,Copy,Paste,Rename and Delete operation for a particular file with (.extension) in windows ... please Reply me ....

    L M D 3 Replies Last reply
    0
    • S sarfaraznawaz

      hello, Is there way to disable Cut,Copy,Paste,Rename and Delete operation for a particular file with (.extension) in windows ... please Reply me ....

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      These operations are specific to applications, not files.

      Use the best guess

      S 1 Reply Last reply
      0
      • L Lost User

        These operations are specific to applications, not files.

        Use the best guess

        S Offline
        S Offline
        sarfaraznawaz
        wrote on last edited by
        #3

        ok how can i achieved this one

        L 1 Reply Last reply
        0
        • S sarfaraznawaz

          ok how can i achieved this one

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Copy, paste etc., are implemented in many different ways by application programs, and there is no common point at which you could disable them.

          Use the best guess

          A 1 Reply Last reply
          0
          • S sarfaraznawaz

            hello, Is there way to disable Cut,Copy,Paste,Rename and Delete operation for a particular file with (.extension) in windows ... please Reply me ....

            M Offline
            M Offline
            Maximilien
            wrote on last edited by
            #5

            There's probably a way to do this with a hook to the filesystem; but is it really user-friendly to prevent normal operation on files. Windows File Monitoring System Using Windows API Hooking[^].

            Nihil obstat

            1 Reply Last reply
            0
            • L Lost User

              Copy, paste etc., are implemented in many different ways by application programs, and there is no common point at which you could disable them.

              Use the best guess

              A Offline
              A Offline
              a_matseevsky
              wrote on last edited by
              #6

              It is not clear, hat do you want. Do you want to change behavior of all programs, running under Windows? It is rather problematic (and what would be the reason for it?). But, if you write you own code, you may change behavior of edit control for example- all of what you need is to replace its own WindowProc by your own one, which gulps some messages and calls old WindowProc for all others. It is a way to get a non-editable edit window. Use GetWindowLong() to get address of old WindowProc and SetWindowLong() to replace it with your own one.

              L 1 Reply Last reply
              0
              • A a_matseevsky

                It is not clear, hat do you want. Do you want to change behavior of all programs, running under Windows? It is rather problematic (and what would be the reason for it?). But, if you write you own code, you may change behavior of edit control for example- all of what you need is to replace its own WindowProc by your own one, which gulps some messages and calls old WindowProc for all others. It is a way to get a non-editable edit window. Use GetWindowLong() to get address of old WindowProc and SetWindowLong() to replace it with your own one.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                You did not mean to post this to me.

                Use the best guess

                1 Reply Last reply
                0
                • S sarfaraznawaz

                  hello, Is there way to disable Cut,Copy,Paste,Rename and Delete operation for a particular file with (.extension) in windows ... please Reply me ....

                  D Offline
                  D Offline
                  David Crow
                  wrote on last edited by
                  #8

                  Is this of any help?

                  "One man's wage rise is another man's price increase." - Harold Wilson

                  "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                  "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups