I'm using 'mkisofs' and 'dv+rw-tools' to burn DVD files and I want it to automatically find the right drive (where my burner hardware is)
any ideas
I'm using 'mkisofs' and 'dv+rw-tools' to burn DVD files and I want it to automatically find the right drive (where my burner hardware is)
any ideas
Linux???? You might get a better answer on the Linux-specific board. Standard ANSI/ISO C++ doesn't know anything about CD burners, so you are in the realm of platform-specific programming.
With Windows, the operating system enumerates the hardware devices. Windows is aware of each device's capabilities via the driver/firmware. You can obtain a handle to the device an query it.
You could query each drive to find out if it's a hard drive, floppy drive, CD ROM, CD Burner, etc.
Windows has functions such as:
GetDevice()
GetDeviceID()
GetDeviceCaps()
Last edited by DougDbug; 01-08-2007 at 04:42 PM.