This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to detect a CD inserted into a drive  RSS feed

 
Otak Arr
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey people,
Does anyone know, how to detect an event,
when user inserts CD into CD drive?
Loox like there`s gonna be a different solution for each OS plattform.
I tried to ask already a couple of people, but they only said I need to go thru NATIVE methods and call either C++ or Delphi functions which deal with WM_CHANGEDEVICE (in case of Windows OS) to handle this issue.

Since I got minimal experience with C++ and no experience at all with Delphi, I was wondering if there is a "Pure Java" solution to this...
Did anyone encounter a similar problem before?
I would appreciate some code samples or pseudocode, if possible..
thanx for your help
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!