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. Eject CDROM in W98???

Eject CDROM in W98???

Scheduled Pinned Locked Moved C / C++ / MFC
6 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.
  • J Offline
    J Offline
    Jon Hulatt
    wrote on last edited by
    #1

    Hi, I'm using CreateFile then DeviceIOControl in NT & 2K to get a handle to, and then eject, the cdrom drive. MSDN says that CreateFile can't get handles to devices in 98, so how can i achieve the same thing? Thanks Jon Sorry to dissapoint you all with my lack of a witty or poignant signature.

    T C M 3 Replies Last reply
    0
    • J Jon Hulatt

      Hi, I'm using CreateFile then DeviceIOControl in NT & 2K to get a handle to, and then eject, the cdrom drive. MSDN says that CreateFile can't get handles to devices in 98, so how can i achieve the same thing? Thanks Jon Sorry to dissapoint you all with my lack of a witty or poignant signature.

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      Can you use MCI? There's a 'set somealias door open' command which ejects a CDROM. Tomasz Sowinski -- http://www.shooltz.com

      1 Reply Last reply
      0
      • J Jon Hulatt

        Hi, I'm using CreateFile then DeviceIOControl in NT & 2K to get a handle to, and then eject, the cdrom drive. MSDN says that CreateFile can't get handles to devices in 98, so how can i achieve the same thing? Thanks Jon Sorry to dissapoint you all with my lack of a witty or poignant signature.

        C Offline
        C Offline
        Carlos Antollini
        wrote on last edited by
        #3

        Are you using MCI? With MCI you have several commands string for make that. Is easy to Use... Best Regards... :bob: Toaday Is Friday!!! Party and :beer: Carlos Antollini.

        1 Reply Last reply
        0
        • J Jon Hulatt

          Hi, I'm using CreateFile then DeviceIOControl in NT & 2K to get a handle to, and then eject, the cdrom drive. MSDN says that CreateFile can't get handles to devices in 98, so how can i achieve the same thing? Thanks Jon Sorry to dissapoint you all with my lack of a witty or poignant signature.

          M Offline
          M Offline
          Masaaki Onishi
          wrote on last edited by
          #4

          Hello, the codegurus around the world.;) Check this. :rolleyes: HOWTO: Eject Removable Media on Windows 95. And you focus just on CD-ROM. MCI is easier, but I found that if MCI isn't installed on Windows OS, it didn't work.:(( Have a nice day!

          -Masaaki Onishi-

          A 1 Reply Last reply
          0
          • M Masaaki Onishi

            Hello, the codegurus around the world.;) Check this. :rolleyes: HOWTO: Eject Removable Media on Windows 95. And you focus just on CD-ROM. MCI is easier, but I found that if MCI isn't installed on Windows OS, it didn't work.:(( Have a nice day!

            -Masaaki Onishi-

            A Offline
            A Offline
            Alex Lewandowski
            wrote on last edited by
            #5

            see CDR.EXE - Open/Close CD Drive(s) Programmatically :-D at http://www.codeguru.com/system/cdr.html HTH, Alex Lewandowski asl@asl2000.de

            M 1 Reply Last reply
            0
            • A Alex Lewandowski

              see CDR.EXE - Open/Close CD Drive(s) Programmatically :-D at http://www.codeguru.com/system/cdr.html HTH, Alex Lewandowski asl@asl2000.de

              M Offline
              M Offline
              Masaaki Onishi
              wrote on last edited by
              #6

              Hello, the codegurus around the world.;) Thanks you for your info. But, MCI will not be installed for all Windows OS. QA of my company pointed out that MCI command can't work at all for Windows 95 without MCI. Programmatically, check if MCI is installed on this OS. And, if so, execute MCI command. Otherwise, this is "BUG". X| Have a nice day!

              -Masaaki Onishi-

              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