From: pjp on 31 Dec 2007 01:13 Is there any api gives the type of media in a cd/dvd drive? I know one could basically assume if it's using over 700Megs it's dvd but that seems crude and error prone.
From: Remy Lebeau on 31 Dec 2007 02:04 "pjp" <pjpoirier_is_located_at_@_hotmail_._com> wrote in message news:%23C4cDU3SIHA.3916(a)TK2MSFTNGP02.phx.gbl... > Is there any api gives the type of media in a cd/dvd drive? No. The only way I know of is to use DeviceIoControl() to manually issue SCSI commands to the drive via SPTI (NT4+ only) or ASPI (Win9x/ME) to query the media profile that is currently active on the drive. There are plenty of articles on MSDN on how to work with SPTI/ASPI, and you can download the MMC specification (Multimedia Command Set) from http://www.t10.org. Gambit
From: Alexander Grigoriev on 31 Dec 2007 11:45 SPTI is only allowed to administrative accounts. You should not use it in consumer applications, since they need to be able to run with limited user privileges. "Remy Lebeau" <no.spam(a)no.spam.com> wrote in message news:%23N8wFt3SIHA.5208(a)TK2MSFTNGP04.phx.gbl... > > "pjp" <pjpoirier_is_located_at_@_hotmail_._com> wrote in message > news:%23C4cDU3SIHA.3916(a)TK2MSFTNGP02.phx.gbl... > >> Is there any api gives the type of media in a cd/dvd drive? > > No. The only way I know of is to use DeviceIoControl() to manually issue > SCSI commands to the drive via SPTI (NT4+ only) or ASPI (Win9x/ME) to > query > the media profile that is currently active on the drive. There are plenty > of articles on MSDN on how to work with SPTI/ASPI, and you can download > the > MMC specification (Multimedia Command Set) from http://www.t10.org. > > > Gambit > >
From: lilian on 31 Dec 2007 16:55 pjp wrote: > Is there any api gives the type of media in a cd/dvd drive? I know one could > basically assume if it's using over 700Megs it's dvd but that seems crude > and error prone. Yes, there are several ones See news://comp.os.ms-windows.programmer.win32 for apis.
From: Remy Lebeau on 1 Jan 2008 23:29 "Alexander Grigoriev" <alegr(a)earthlink.net> wrote in message news:%23A%23N$w8SIHA.4104(a)TK2MSFTNGP05.phx.gbl... > SPTI is only allowed to administrative accounts. The CD/DVD portions of the lower-level IOCTL API do not require admin rights, however. Alternatively, on XP SP2+ at least, you can use IMAPI. The IDiscRecorder2::get_CurrentProfiles() method can be used to retreive the same media profile information. Gambit
|
Next
|
Last
Pages: 1 2 Prev: Kernel Space -> User Space IPC Next: Still confused why working set larger than virtual memory |