Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

CD-Rom control

I've been searching for a way to do this for a couple days and have
come up empty handed hopefully you can help me. I'm searching for a
way to first lock the CD-ROM when my program starts up. Then when the
eject button on the CD-ROM is pressed have it notify my program so
that I can unlock the drive, eject it and exit the program cleanly.
I'm wanting to do this to prevent windows from asking me to put the
CD back in when the program is running. The program also becomes
unusefull after the CD has been taken out. I suppose it should also be
noted that this program will be running from the CD.

Thanks,
moxy

Comments

  • ImprovingImproving Member Posts: 91
    : I've been searching for a way to do this for a couple days and have
    : come up empty handed hopefully you can help me. I'm searching for a
    : way to first lock the CD-ROM when my program starts up. Then when the
    : eject button on the CD-ROM is pressed have it notify my program so
    : that I can unlock the drive, eject it and exit the program cleanly.
    : I'm wanting to do this to prevent windows from asking me to put the
    : CD back in when the program is running. The program also becomes
    : unusefull after the CD has been taken out. I suppose it should also be
    : noted that this program will be running from the CD.
    :
    : Thanks,
    : moxy
    :

    I think you can do the ejecting with either MCISendString() or MCISendCommand(). You could also use the device i/o routines but I cant remember the functions, something like IO_CTRL functions.Look them up at msdn or in your helpfiles.
  • Justin BibJustin Bib USAMember Posts: 0

    __ \ http://forcoder.org \ free ebooks and video tutorials about // Perl C++ MATLAB Python PL/SQL C# Swift Delphi JavaScript Objective-C Visual Basic Go Scratch PHP C R Assembly Visual Basic .NET Ruby Java F# Scheme Kotlin ABAP Fortran COBOL Crystal Prolog Julia Logo Awk SAS Ada Erlang FoxPro LabVIEW VBScript Apex Rust Transact-SQL Bash Alice Lua ML Clojure Dart Lisp Scala D Hack // _________

Sign In or Register to comment.