Okay guys i was doing a program about managing the system things so i had to figure out eject and closing CD/DVD Drive so i did and here is the code for this .
first of all you need to import a interop service it's
[DllImport("winmm.dll", EntryPoint...