Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi guys,

Im trying to code a program to lock my cd-rom drive eject button for my laptop. I saw on windows' website that i can use DeviceIoControl() to do that, and I have to open a handle for the CD-ROM using CreateFile(), but how can I do that? I mean, how do I recognize the CD-ROM?

thx
Posted
Comments
BillWoodruff 28-Dec-14 16:05pm    
Start here:

http://stackoverflow.com/a/9579881/133321

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900