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. About Cd-rom?

About Cd-rom?

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
6 Posts 3 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.
  • S Offline
    S Offline
    Syouki_kou
    wrote on last edited by
    #1

    How could i judge the Cd-rom door's status?(open or closed). Pay attention to that here is Cd-rom not DVD-rom, I used the SCSI command "Mechanism Status" to get the dvd-rom door's status successfully, but it can't work on Cd-rom, so what should i do to fix this trouble?:) Go go go, roger that. Enemy sighted!

    D H 2 Replies Last reply
    0
    • S Syouki_kou

      How could i judge the Cd-rom door's status?(open or closed). Pay attention to that here is Cd-rom not DVD-rom, I used the SCSI command "Mechanism Status" to get the dvd-rom door's status successfully, but it can't work on Cd-rom, so what should i do to fix this trouble?:) Go go go, roger that. Enemy sighted!

      D Offline
      D Offline
      Don Box
      wrote on last edited by
      #2

      U look into DeviceIoControl() with IOCTL_STORAGE_EJECT_MEDIA as a second parameter. Jubin Chawda braindrain1@rediffmail.com ----------------------------- Come online at:- fitiyal@yahoo.com

      1 Reply Last reply
      0
      • S Syouki_kou

        How could i judge the Cd-rom door's status?(open or closed). Pay attention to that here is Cd-rom not DVD-rom, I used the SCSI command "Mechanism Status" to get the dvd-rom door's status successfully, but it can't work on Cd-rom, so what should i do to fix this trouble?:) Go go go, roger that. Enemy sighted!

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

        See CD Change Notifications[^] maybe it is some helpful to you_**


        **_

        whitesky


        S 1 Reply Last reply
        0
        • H Hamid Taebi

          See CD Change Notifications[^] maybe it is some helpful to you_**


          **_

          whitesky


          S Offline
          S Offline
          Syouki_kou
          wrote on last edited by
          #4

          Thanks you all for your helpful infos, but all seems not work fine. Is there a command of SCSI just as same as "mechanism status" command which can work on DVD-ROM? Or some other helpful infos?:^)

          H 1 Reply Last reply
          0
          • S Syouki_kou

            Thanks you all for your helpful infos, but all seems not work fine. Is there a command of SCSI just as same as "mechanism status" command which can work on DVD-ROM? Or some other helpful infos?:^)

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

            And thisOpen or Close CD-ROM drive[^]_**


            **_

            whitesky


            S 1 Reply Last reply
            0
            • H Hamid Taebi

              And thisOpen or Close CD-ROM drive[^]_**


              **_

              whitesky


              S Offline
              S Offline
              Syouki_kou
              wrote on last edited by
              #6

              Thanks for your help, whitesky! But I wonder if you really understand what I want to realize! I just want to know the status of CD-ROM, it is opened or closed? The MCI command can't work at all, I tried it before, and WM_DEVICECHANGE message also can't work. And I tried MMC command(APSI programming),but it can only work on DVD-ROM, do not work on CD-ROM! That's my trouble. My original purpose is that if you right click the CD/DVD-ROM icon, the eject menuitem can take a little change for it can change to "Insert" if the door is already opened, and back to "eject" if the door is closed. For this, I must know the status of the door, it is closed or open? One day a pretty girl asked me: "Do you think you are handsome?"."I don't think so!" She gave a slap in my face:"Why lying?"

              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