Solved

true CD-ROM???

Posted on 2001-08-18
6
163 Views
Last Modified: 2010-04-06
How can I find the CD-ROM register in system is a true CD-ROM,not Virtual CD-ROM.


this pts is my all pts.
0
Comment
Question by:sundayboys
6 Comments
 

Expert Comment

by:pin_plunder
ID: 6400677
maybe this helps
procedure TForm1.Button1Click(Sender: TObject);
var
   s : String;
begin
  s:=edit1.Text;
  setlength(s,1);
  if GetDriveType(Pchar(s)) <> DRIVE_REMOTE then
     edit1.Text:=Volumeid(s[1])
  else
    edit1.Text:=NetworkVolume(s[1]);
  S:=S+#58+#92;
  Setlength(s,3);
  case GetDriveType(Pchar(s)) of
       0:                edit2.Text:='drive type cannot be determined.';
       1 :               edit2.Text:='root directory does not exist.';
       DRIVE_REMOVABLE:  edit2.Text:='drive can be removed from the drive.';
       DRIVE_FIXED:      edit2.Text:='disk cannot be removed from the drive.';
       DRIVE_REMOTE: edit2.Text:='drive is a remote (network) drive.';
       DRIVE_CDROM: edit2.Text:='drive is a CD-ROM drive.';
       DRIVE_RAMDISK:    edit2.Text:='drive is a RAM disk.';
  end;
end;
0
 
LVL 5

Expert Comment

by:Gwena
ID: 6401804
listening :-)
0
 
LVL 4

Expert Comment

by:DMN
ID: 6402115
You can measure the speed of reading one (large) continues file and speed of reading large amount of little files... For real CD it should take more time in second case... :) But good virtual CD will do the same...
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 1

Author Comment

by:sundayboys
ID: 6402547
i know it must use aspi,who can give me a example.
0
 
LVL 20

Accepted Solution

by:
Madshi earned 45 total points
ID: 6403891
A good virtual CD is almost impossible to differ from a real CD. And that's clear - because that is exactly the sense of virtual CDs. Sorry for the bad news...

Regards, Madshi.
0
 
LVL 1

Expert Comment

by:TheDonX
ID: 8007727
You can check for that , not using ASPI , but you need to develop a small Driver , which checks the Driver object of CD driver , then checks hardware claimed then checks real IRQ range etc. A driver of virtual Drive will not have hardware (CDROM DRIVE) assigned to him.

YOu need to explore the topic on yourself.I cant give every detail. See DDK docs + samples of class driver of CDROM.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question