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. Windows Forms
  4. Windows Property sheet

Windows Property sheet

Scheduled Pinned Locked Moved Windows Forms
windows-adminsecurityhelptutoriallounge
7 Posts 3 Posters 2 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.
  • V Offline
    V Offline
    vivekphlp
    wrote on last edited by
    #1

    hi ALL, 1)can anyone plz tell me how to disable the "property sheet" of any files.. When we right click we will see a context menu with the last one as properties.. which will display a set of properties such as General, Security etc. i want to disable this sheet... 2) how to disable the read only property of a file ... . I need the registry keys for the same... help me plz...

    Proud To Be an Indian

    C 1 Reply Last reply
    0
    • V vivekphlp

      hi ALL, 1)can anyone plz tell me how to disable the "property sheet" of any files.. When we right click we will see a context menu with the last one as properties.. which will display a set of properties such as General, Security etc. i want to disable this sheet... 2) how to disable the read only property of a file ... . I need the registry keys for the same... help me plz...

      Proud To Be an Indian

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      There are no registry keys, you cannot stop windows from doing this, at least, I can't imagine how without writing what would essentially be a virus.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      V 1 Reply Last reply
      0
      • C Christian Graus

        There are no registry keys, you cannot stop windows from doing this, at least, I can't imagine how without writing what would essentially be a virus.

        Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

        V Offline
        V Offline
        vivekphlp
        wrote on last edited by
        #3

        its not for a virus . .. i agree that some will be using that but u know i need it my client. They want me to create an Undeletable file . .. There are keys which can disable Sharing, security. Even SYstem properties can be dsabled .. . so plz if anyone know plz tell me

        Proud To Be an Indian

        C C 2 Replies Last reply
        0
        • V vivekphlp

          its not for a virus . .. i agree that some will be using that but u know i need it my client. They want me to create an Undeletable file . .. There are keys which can disable Sharing, security. Even SYstem properties can be dsabled .. . so plz if anyone know plz tell me

          Proud To Be an Indian

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          vivekphlp wrote:

          They want me to create an Undeletable file

          Even stuff in the System32 folder is deletable - and that will break your system if you delete the right files. One way would be to create a windows service that opens the file and keeps it open. This would ensure that the file could not be deleted (you cannot delete a file if a process has opened it) This has some drawbacks. No other process can open the file with exclusive access. If the windows service were to be stopped then the file would be deletable again. (This is very easy to do)


          Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

          V 1 Reply Last reply
          0
          • C Colin Angus Mackay

            vivekphlp wrote:

            They want me to create an Undeletable file

            Even stuff in the System32 folder is deletable - and that will break your system if you delete the right files. One way would be to create a windows service that opens the file and keeps it open. This would ensure that the file could not be deleted (you cannot delete a file if a process has opened it) This has some drawbacks. No other process can open the file with exclusive access. If the windows service were to be stopped then the file would be deletable again. (This is very easy to do)


            Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

            V Offline
            V Offline
            vivekphlp
            wrote on last edited by
            #5

            it was possible if there was 2 user accounts - the clients insist to have only one USER - that too {{ADMIN}} . . .

            Proud To Be an Indian

            C 1 Reply Last reply
            0
            • V vivekphlp

              it was possible if there was 2 user accounts - the clients insist to have only one USER - that too {{ADMIN}} . . .

              Proud To Be an Indian

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #6

              vivekphlp wrote:

              it was possible if there was 2 user accounts

              What do the number of user accounts have to do with it?

              vivekphlp wrote:

              the clients insist to have only one USER - that too {{ADMIN}} . . .

              They are going to be disappointed because Windows requires other accounts for itself. Most notably the System account (which has greater rights than Administrator)


              Upcoming events: * Glasgow: SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services... Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton My website

              1 Reply Last reply
              0
              • V vivekphlp

                its not for a virus . .. i agree that some will be using that but u know i need it my client. They want me to create an Undeletable file . .. There are keys which can disable Sharing, security. Even SYstem properties can be dsabled .. . so plz if anyone know plz tell me

                Proud To Be an Indian

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                Your client is a retard. It's not possible to have a file that cannot be deleted. There are ways to fight the user trying to delete it, but you can't make it impossible. You can make it hidden, but you can't stop them from deleting it when they find it. One possible solution, is to store a copy of the file in another location, and when your program runs ( or a service perhaps ), it copies the file back if it was deleted. But, you can't stop users from finding both files and deleting them, either.

                Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

                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