I want to control cd-rom (as ejecting disk and so on) through C#.
I'll join a code i wrote for it:
scDevices = ServiceController.GetDevices();
i = 0;
while (i < scDevices.Length)
if(scDevices[i].DisplayName == "CD-ROM Driver")
there is no problems with compiler but there is an exception during it running "System.InvalidOperationException: Cannot stop Mouclass
service on computer '.'."
how can i make it run ???