The win32 api GetDriveType returns values for cd-rom. harddisk,floppy,ramdisk etc.

My question is will it return values for a dvd player and burner. In other words can it destinguish between these sorts or will it just reuturn DRIVE_CDROM either way.

Thanx a gig
:confused:
Posted on 2002-12-16 18:21:56 by IwasTitan
IwasTitan: it returns DRIVE_CDROM (equ 5) on my Liteon DVD-ROM
Posted on 2002-12-17 00:39:54 by TBD

IwasTitan: it returns DRIVE_CDROM (equ 5) on my Liteon DVD-ROM


Well i guess that figures.....doe

I wonder what the way is around it?

thanx
Posted on 2002-12-17 01:09:26 by IwasTitan
What would it return for a DVD burner? :grin:
Posted on 2002-12-17 01:23:30 by bazik
quote:
__________________________________________
What would it return for a DVD burner?


_______________________________________

Probably DRIVE_CDROM also.

GetLogicalDrive and GetLogicalDriveString apparently are just as useless in destinguishing beteen a regular cdrom and dvd/ burner.

I guess there is no api that immediatly does this but the information must be stored some where on the system so the question is where and how do you access that info.

Any body know?

:alright:
Posted on 2002-12-17 12:31:14 by IwasTitan
If all you want to do is find the existance of a dvd, you could try the attached file. It list devices by the string. You can do a partial string compare for IDE\CdRomE-IDE_CD-ROM or whatever a dvd is.

Or can you can look in the registry hkeylocalmachine\system\currentcontrolset\services\cdrom\enum
Posted on 2002-12-17 14:20:44 by roaknog
thanx roaknog
:alright:
Posted on 2002-12-17 14:51:30 by IwasTitan
roaknog said:

Or can you can look in the registry hkeylocalmachine\system\currentcontrolset\services
\cdrom\enum

__________________________________________________________

When i look in the registry there is nothing about cdrom after \services\

I looked thourougly. Are you sure you didn't mean somewhere else?
Posted on 2002-12-17 19:54:02 by IwasTitan
I don't have a dvd drive. I only have a cd drive and that is where my cd string is. If you only have a dvd drive it might be under ...services\dvdrom\enum. I am using XP.
Posted on 2002-12-18 10:22:43 by roaknog

I don't have a dvd drive. I only have a cd drive and that is where my cd string is. If you only have a dvd drive it might be under ...services\dvdrom\enum. I am using XP.


I only have a dvd and burner and neither of them are under \services\

I use 98 se.

:alright:
Posted on 2002-12-18 16:44:27 by IwasTitan
In 95/98/ME the cd device description is in HKEY_LOCAL_MACHINE\enum\scsi\ ... eide___cd-rom \ ... id #

2000 and XP have it under services

My program only runs in 2000 and XP, but it gives the device description which you can use to search the registry.
Posted on 2002-12-18 18:51:51 by roaknog

In 95/98/ME the cd device description is in HKEY_LOCAL_MACHINE\enum\scsi\ ... eide___cd-rom \ ... id #

2000 and XP have it under services

My program only runs in 2000 and XP, but it gives the device description which you can use to search the registry.


ahhh i see
will check it out
thanx again

:alright:
Posted on 2002-12-18 20:32:05 by IwasTitan