Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to detect a CD inserted into a drive

Otak Arr
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic