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#
  4. How i Lock my Harddisk drive in c#.net

How i Lock my Harddisk drive in c#.net

Scheduled Pinned Locked Moved C#
csharp
9 Posts 8 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.
  • J Offline
    J Offline
    john ramesh john
    wrote on last edited by
    #1

    hi......... im developing driver lock project. i could not find the code in c#.net, could u do and sent me the source code and project.

    D A T M L 6 Replies Last reply
    0
    • J john ramesh john

      hi......... im developing driver lock project. i could not find the code in c#.net, could u do and sent me the source code and project.

      D Offline
      D Offline
      Dragonfly_Lee
      wrote on last edited by
      #2

      CodeProject does not mean we offer the code and project directly. X|

      I Love KongFu~

      1 Reply Last reply
      0
      • J john ramesh john

        hi......... im developing driver lock project. i could not find the code in c#.net, could u do and sent me the source code and project.

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

        john ramesh john wrote:

        im developing driver lock project

        Good

        john ramesh john wrote:

        i could not find the code in c#.net, could u do and sent me the source code and project.

        So you're not really. You actually want someone else to do it for you. Suggestion. Get your wallet out and head to rentacoder.com

        Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

        1 Reply Last reply
        0
        • J john ramesh john

          hi......... im developing driver lock project. i could not find the code in c#.net, could u do and sent me the source code and project.

          T Offline
          T Offline
          Tom Deketelaere
          wrote on last edited by
          #4

          Do your own homework

          1 Reply Last reply
          0
          • J john ramesh john

            hi......... im developing driver lock project. i could not find the code in c#.net, could u do and sent me the source code and project.

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

            I think the easiest way to do this is go to the keyboard. Press the Button with the "Window" on it + "L". That should lock your Hard Drive/PC. Good luck. :confused: :doh:

            Excellence is doing ordinary things extraordinarily well.

            S 1 Reply Last reply
            0
            • J john ramesh john

              hi......... im developing driver lock project. i could not find the code in c#.net, could u do and sent me the source code and project.

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

              Wow this was a big one, I just finished. I couldn't upload to CP so the download link is here[^].

              1 Reply Last reply
              0
              • J john ramesh john

                hi......... im developing driver lock project. i could not find the code in c#.net, could u do and sent me the source code and project.

                S Offline
                S Offline
                sourabhsorate
                wrote on last edited by
                #7

                As i hav seen all previous reply's to "kabhi bhi is tarah se kahabhi kaise bhi sawal mat poocho " but i m interested to give the answer here is solution. Actually locking is not done by the code. What u hav to do is, first understand the Windows Registry basics. Once u hav understood the basic about windows registry u can lock any drive on hard disk. There is key in windows registry(refer it from documentations ). I m not sure but it contais 32 bits. the bit is either 1 or 0 Suppose u want ot lock c: then simply change 1 to 0 at appropriate position. 11111111111111111111111111111111 change it to 11011111111111111111111111111111 I hav written same program that changes this registry key.

                S 1 Reply Last reply
                0
                • M MumbleB

                  I think the easiest way to do this is go to the keyboard. Press the Button with the "Window" on it + "L". That should lock your Hard Drive/PC. Good luck. :confused: :doh:

                  Excellence is doing ordinary things extraordinarily well.

                  S Offline
                  S Offline
                  slam Iqbal
                  wrote on last edited by
                  #8

                  perfect reply. :-D

                  1 Reply Last reply
                  0
                  • S sourabhsorate

                    As i hav seen all previous reply's to "kabhi bhi is tarah se kahabhi kaise bhi sawal mat poocho " but i m interested to give the answer here is solution. Actually locking is not done by the code. What u hav to do is, first understand the Windows Registry basics. Once u hav understood the basic about windows registry u can lock any drive on hard disk. There is key in windows registry(refer it from documentations ). I m not sure but it contais 32 bits. the bit is either 1 or 0 Suppose u want ot lock c: then simply change 1 to 0 at appropriate position. 11111111111111111111111111111111 change it to 11011111111111111111111111111111 I hav written same program that changes this registry key.

                    S Offline
                    S Offline
                    slam Iqbal
                    wrote on last edited by
                    #9

                    to lock C: drive the DWORD value would be 10bin(2dec) not 11011111111111111111111111111111bin. Following values lock the drive typed at right side. (1a : 1 locks A: drive, and 12cd: 12dec(1100bin) locks C: and D: drives. 1a 2b 3ab 4c 5ac 6bc 7abc 8d 9ad 10bd 11abd 12cd . . 16e . 32f . 64g

                    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