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. Protection problem

Protection problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
8 Posts 5 Posters 0 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.
  • A Offline
    A Offline
    aaaan
    wrote on last edited by
    #1

    Hi there is a system for common use.I want to protect the system from some operation,like fomatting drive and deleting partition from other user. Those i can do only,that means these functionality can not be done by other user.So is there any way to do this by programetticaly? if any one know this please help me. Thanks nirmal

    S D 2 Replies Last reply
    0
    • A aaaan

      Hi there is a system for common use.I want to protect the system from some operation,like fomatting drive and deleting partition from other user. Those i can do only,that means these functionality can not be done by other user.So is there any way to do this by programetticaly? if any one know this please help me. Thanks nirmal

      S Offline
      S Offline
      Sarath C
      wrote on last edited by
      #2

      Windows already serving administrative tools for doing this. Then why you are going to write the same code again. Check the stuffs on MSDN Security Home[^]

      -Sarath. The more you can dream the more you can do - Michael Korda"

      My blog - Sharing My Thoughts, An Article - Understanding Statepattern

      A 1 Reply Last reply
      0
      • S Sarath C

        Windows already serving administrative tools for doing this. Then why you are going to write the same code again. Check the stuffs on MSDN Security Home[^]

        -Sarath. The more you can dream the more you can do - Michael Korda"

        My blog - Sharing My Thoughts, An Article - Understanding Statepattern

        A Offline
        A Offline
        aaaan
        wrote on last edited by
        #3

        Actually i want to protect a perticular drive from deleting and formatting. And also i need programetically solution(in VC++).If you have any idea then just write here.Any help will be greately appreciated. Thanks nirmal

        T 1 Reply Last reply
        0
        • A aaaan

          Hi there is a system for common use.I want to protect the system from some operation,like fomatting drive and deleting partition from other user. Those i can do only,that means these functionality can not be done by other user.So is there any way to do this by programetticaly? if any one know this please help me. Thanks nirmal

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

          aaaan wrote:

          So is there any way to do this by programetticaly?

          It will involve an access control list (ACL).


          "Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.

          "Judge not by the eye but by the heart." - Native American Proverb

          1 Reply Last reply
          0
          • A aaaan

            Actually i want to protect a perticular drive from deleting and formatting. And also i need programetically solution(in VC++).If you have any idea then just write here.Any help will be greately appreciated. Thanks nirmal

            T Offline
            T Offline
            TylerD75
            wrote on last edited by
            #5

            I believe this can be done by modifying registry values (in Win2k, XP and vista). I have no clue as to how to do this in VC++, other than running .reg files, or direct modification of registry (which will need correct access rights for the registry values involved). I've seen some of these XP-fixes on the internet, which basically is a .reg file that will update these settings. Can't say for sure I've seen how to do this on drive-rights, but you can disable certain Start Menu features, and a lot more. Check out the "Security Policy Setup.mmc" to see what is available. Then search msdn or google it to find the actual registry value to modify... Just some ideas, and maybe not what you're looking for, but thought I'd mention it ;) Cheers, TylerD75

            H A 2 Replies Last reply
            0
            • T TylerD75

              I believe this can be done by modifying registry values (in Win2k, XP and vista). I have no clue as to how to do this in VC++, other than running .reg files, or direct modification of registry (which will need correct access rights for the registry values involved). I've seen some of these XP-fixes on the internet, which basically is a .reg file that will update these settings. Can't say for sure I've seen how to do this on drive-rights, but you can disable certain Start Menu features, and a lot more. Check out the "Security Policy Setup.mmc" to see what is available. Then search msdn or google it to find the actual registry value to modify... Just some ideas, and maybe not what you're looking for, but thought I'd mention it ;) Cheers, TylerD75

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              Do you remember DOS we could write protect hard disk:)

              _**


              **_

              WhiteSky


              1 Reply Last reply
              0
              • T TylerD75

                I believe this can be done by modifying registry values (in Win2k, XP and vista). I have no clue as to how to do this in VC++, other than running .reg files, or direct modification of registry (which will need correct access rights for the registry values involved). I've seen some of these XP-fixes on the internet, which basically is a .reg file that will update these settings. Can't say for sure I've seen how to do this on drive-rights, but you can disable certain Start Menu features, and a lot more. Check out the "Security Policy Setup.mmc" to see what is available. Then search msdn or google it to find the actual registry value to modify... Just some ideas, and maybe not what you're looking for, but thought I'd mention it ;) Cheers, TylerD75

                A Offline
                A Offline
                aaaan
                wrote on last edited by
                #7

                Thanks TylerD75 for your information Can you tell me please how can i disable certain Start Menu features? Best Regards nirmal

                T 1 Reply Last reply
                0
                • A aaaan

                  Thanks TylerD75 for your information Can you tell me please how can i disable certain Start Menu features? Best Regards nirmal

                  T Offline
                  T Offline
                  TylerD75
                  wrote on last edited by
                  #8

                  This is the manual method, where you also will find a complete set of editable policies: You might already have links in "Administrative Tools" on the start menu, but I don't (on XP x64 Edition). 1. Start->Run, enter mmc and press enter. This will start an empty instance of Microsoft Management Console. 2. In the "File" menu you press "Add/Remove Snap-in..." This will enable you to add management tasks. 3. Press the "Add..." button, and select "Group Policy Object Editor". You will be presented with the possibility to setup Group Policy for you domain (if you have one, and is the admin of the domain) or the default: Local Policy. Chose what you want, but I'm assuming you want the "Local Policy". 4. Hit "Finish", "Close" and "OK" to start your managing. Now you've got all you need to modify Internet Explorer, the Start Menu, Windows Explorer (here you can disable viewing of specified drives Windows Explorer etc...). Just have a look around in the "User Configuration" section. A WARNING: Don't mess around with things you don't fully understand, as this could disable your users access to the MMC. (Which would render you powerless when trying to undo certain features!). If you're able, I also suggest you backup your registry before changing too much ;) If you want to enable or disable features with a VC++ program, you need to search MSDN or Google for individual settings you find in the Group policy manager. This will produce the actual registry settings for the specified setting. Then make a VC++ program to modify those settings. If your ultimate goal is to just set those settings for more than one computer (i.e. a Domain), you could accomplish this by setting group policy for the domains Active Directory. So there's no need to actually do this with C++. But if this is your goal, you should really read some active directory articles at MSDN or microsoft. Hope this helps? Cheers, TylerD75

                  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