Solved

true CD-ROM???

Posted on 2001-08-18
6
162 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now