IDiscRecorder2::get_LegacyDeviceNumber method (imapi2.h)
Retrieves the legacy device number for a CD or DVD device.
HRESULT get_LegacyDeviceNumber( LONG *legacyDeviceNumber );
Zero-based index number of the device, based on the order the device was installed on the computer.
This value can change during PNP activity when devices are added or removed from the computer, or across boot sessions and should not be considered a unique identifier for the device.
S_OK is returned on success, but other success codes may be returned as a result of implementation. The following error codes are commonly returned on operation failure, but do not represent the only possible error values:
Pointer is not valid.
|Minimum supported client||Windows Vista, Windows XP with SP2 [desktop apps only]|
|Minimum supported server||Windows Server 2003 [desktop apps only]|