How to detect DVD +R or DVD -R writers?

vbimport

#1

Hey,
is it possible to use a method to detect automaticaly if the writer works with DVD +R or DVD -R with NeroCom 1.3.
Cheers

juju


#2

hu,
it is actually NeroCOM 1.1.

juju


#3

Set Drives = Nero.GetDrives(NERO_MEDIA_DVD_P_R +NERO_MEDIA_DVD_M_R )


#4

If you call the method as described above you will get all available drives regardless, which media types these support. The media types passed to this method simply implies for which kind of media NeroCOM should calculate available speeds.
To recognize drives supporting particular media types call get_MediaSupport method of INeroDrive interface and check the retunred value against the known media types. In this case NERO_MEDIA_DVD_P_R + NERO_MEDIA_DVD_M_R.


#5

And this get_MediaSupport detects only dvd writers or dvd roms that can read those types, also ? I need detect only dvd writers available on the system.


#6

nero = New Nero()
drives = nero.GetDrives(NERO_MEDIA_TYPE.NERO_MEDIA_DVD_ANY)
For myIndex = 0 To drives.Count - 1
If (drives.Item(myIndex).MediaSupport _
And NERO_MEDIA_TYPE.NERO_MEDIA_DVD_ANY = NERO_MEDIA_TYPE.NERO_MEDIA_DVD_ANY) _
And drives.Item(myIndex).DevType = NERO_SCSI_DEVTYPE.NERO_SCSI_DEVTYPE_WORM Then
AvailableDevices.Items.Insert(myIndex, drives.Item(myIndex).DeviceName)
End If
Next

this doesnt work to get dvd writers only.


#7

My fault, i could put drives.Item(myIndex).MediaSupport _
[B]+[/B] NERO_MEDIA_TYPE.NERO_MEDIA_DVD_ANY instead of
drives.Item(myIndex).MediaSupport _
And NERO_MEDIA_TYPE.NERO_MEDIA_DVD_ANY


#8

ok, the above is wrong too… obviously
"if (Y And X = X)" works for UNDERRUN_PROT for example, but here doesnt. Here it looks like it works “if (Y And X)” , i see now… I still have one more verify to do…