How can I eject a cd-rom in win32?

Started by
2 comments, last by octavsoft 23 years, 2 months ago
Is thee any way to eject the cd-rom from a win32 program? Itried a asm code that I found in the SDKs but it only works in dos; in windows my computer hangs. ere is the code I tried: mov ax, 440dh mov bx, 4 mov ch, 8 mov cl, 49h int 21h Octavian E-mail: octav@octavsoft.com Webpage: http://www.octavsoft.com
OctavianE-mail: [email=octav@octavsoft.com]octav@octavsoft.com[/email]Webpage: http://www.octavsoft.com
Advertisement
  mciSendString("set cdaudio door open", NULL, 0, 0);  
Quantum why won''t that code work for me?

I plugged the mciSendString code into one of my Win32 projects and I recieve these errors because of it..

WinStruct.obj : error LNK2001: unresolved external symbol __imp__mciSendStringA@16
Debug/CreateWindowEX.exe : fatal error LNK1120: 1 unresolved externals
Quantam forgot to mention that mciSendString requires that you include mmsystem.h, and that you include winmm.lib in your project. Hope this helps.
"The time has come", the Walrus said, "To speak of many things."

This topic is closed to new replies.

Advertisement