Hello everyone,

I wish to develop an application which can be downloaded from WEB to user's PC (With the KNowledge of the users) and then it creates some soft of interaction with the hardware device of the user's computer. I basically wish to know when the CD/DVD player has been activated, paused, stopped, and etc… Mainly event handling information… and Finally send these information back to the WEB site. All is done with the full knowledge of the user.

I am just wondering if this project can be done in C/C++. Can anyone tell me how I need to go about this project and if the C/C++ is the right way to get this project done?

Thank you for your time and have a great day.

Cheers,

Khoramdin

Member Avatar for iamthwee

I think your biggest bottleneck here would be detecting what operating system the user has on their pc.

However, if you are assume they are using windows you can definitely detect the cd-rom drives.

For example the following snippet:

http://www.daniweb.com/code/snippet113.html

works when using bloodshed (tried and tested)

http://www.bloodshed.net/

I'm not sure if that's what you mean?

Thank you iamthewee,

That was great information. If I not mistaken in that example Media Control Interface (MCI) is used to control the CD-ROM. I was wondering if there is a similar way to deal with DVD driver?

Is there a way to create a sniffer which can keep an eye on MCI and keeps track of the the information/command (Play - Pause - FF ......) and simply display it. When I talk about sniffer, I mean sniffing to see if these commmand are send to the MCI from other software applications.

Thank you very much for your help.

Cheers,

Khoramdin

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.