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. Disable cd/dvd eject button with code

Disable cd/dvd eject button with code

Scheduled Pinned Locked Moved C#
17 Posts 10 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.
  • L Lukasz Nowakowski

    And if your application hangs, user will have to restart the computer to open cd/dvd drive?

    Don't forget to rate answer, that helped you. It will allow other people find their answers faster.

    D Offline
    D Offline
    Dalek Dave
    wrote on last edited by
    #5

    Or push a paper clip into the tiny hole!

    ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

    1 Reply Last reply
    0
    • E Enobong Adahada

      pls i want to disabled permanently my my cd/dvd eject buton. thanks.

      D Offline
      D Offline
      Dalek Dave
      wrote on last edited by
      #6

      Superglue. Use a screwdriver to remove it. Disconnect the wires. As you see, lots of options available :)

      ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

      E 1 Reply Last reply
      0
      • L Lukasz Nowakowski

        And if your application hangs, user will have to restart the computer to open cd/dvd drive?

        Don't forget to rate answer, that helped you. It will allow other people find their answers faster.

        E Offline
        E Offline
        Enobong Adahada
        wrote on last edited by
        #7

        The users do not need to use the cd/dvd drives during a certain period in my office, I want a code to disabled the Eject button to keep them out, at this this time. is there a such a code in c#, i found some in vb. Thank for you response.

        L G M 3 Replies Last reply
        0
        • D Dalek Dave

          Superglue. Use a screwdriver to remove it. Disconnect the wires. As you see, lots of options available :)

          ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

          E Offline
          E Offline
          Enobong Adahada
          wrote on last edited by
          #8

          Thanks for the advice, but NO.

          D 1 Reply Last reply
          0
          • E Enobong Adahada

            Thanks for the advice, but NO.

            D Offline
            D Offline
            Dalek Dave
            wrote on last edited by
            #9

            It's ok, I was only joking anyway!

            ------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave CCC League Table Link CCC Link[^]

            1 Reply Last reply
            0
            • E Enobong Adahada

              pls i want to disabled permanently my my cd/dvd eject buton. thanks.

              R Offline
              R Offline
              Ravi Sant
              wrote on last edited by
              #10

              This One[^] does not do exactly what you want, but hope will be much helpful in the way. :)

              1 Reply Last reply
              0
              • E Enobong Adahada

                The users do not need to use the cd/dvd drives during a certain period in my office, I want a code to disabled the Eject button to keep them out, at this this time. is there a such a code in c#, i found some in vb. Thank for you response.

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

                Users either have access, or they don't. You're looking for a "Child Safety Lock" for your employees? :)

                I are Troll :suss:

                E 1 Reply Last reply
                0
                • E Enobong Adahada

                  pls i want to disabled permanently my my cd/dvd eject buton. thanks.

                  P Offline
                  P Offline
                  PIEBALDconsult
                  wrote on last edited by
                  #12

                  What about ejecting from Explorer?

                  1 Reply Last reply
                  0
                  • L Lost User

                    Users either have access, or they don't. You're looking for a "Child Safety Lock" for your employees? :)

                    I are Troll :suss:

                    E Offline
                    E Offline
                    Enobong Adahada
                    wrote on last edited by
                    #13

                    Yes can you help?

                    P 1 Reply Last reply
                    0
                    • E Enobong Adahada

                      The users do not need to use the cd/dvd drives during a certain period in my office, I want a code to disabled the Eject button to keep them out, at this this time. is there a such a code in c#, i found some in vb. Thank for you response.

                      G Offline
                      G Offline
                      GenJerDan
                      wrote on last edited by
                      #14

                      If you have the VB code, it should be fairly easy to translate... ...by someone who knows both VB and C#... ...me, not being one of those people.

                      1 Reply Last reply
                      0
                      • E Enobong Adahada

                        Yes can you help?

                        P Offline
                        P Offline
                        Paladin2000
                        wrote on last edited by
                        #15

                        CD/DVD-Rom lockout? Why? What would prevent them from using a USB flash drive (or some other USB device) and using external files anyway? (I assume that is what you are trying to prevent.)

                        1 Reply Last reply
                        0
                        • E Enobong Adahada

                          pls i want to disabled permanently my my cd/dvd eject buton. thanks.

                          D Offline
                          D Offline
                          DaveyM69
                          wrote on last edited by
                          #16

                          This tip[^] I posted sometime ago disables it, but not permanently. You could make the app run at start up (perhaps a service) so it is effectively permanently disabled.

                          Dave
                          Binging is like googling, it just feels dirtier. Please take your VB.NET out of our nice case sensitive forum. Astonish us. Be exceptional. (Pete O'Hanlon)
                          BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)

                          1 Reply Last reply
                          0
                          • E Enobong Adahada

                            The users do not need to use the cd/dvd drives during a certain period in my office, I want a code to disabled the Eject button to keep them out, at this this time. is there a such a code in c#, i found some in vb. Thank for you response.

                            M Offline
                            M Offline
                            Michael9000
                            wrote on last edited by
                            #17

                            Not a code example, but you can disable CDROM/Remoable Driver/etc. in Windows' Group Policy (at least in Windows 7)

                            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