Windows DD-esque implementation in Qt 5
- by user1777667
I'm trying to get into Qt and as a project I want to try and pull a binary image from a hard drive in Windows. This is what I have:
QFile dsk("//./PhysicalDrive1");
dsk.open(QIODevice::ReadOnly);
QByteArray readBytes = dsk.read(512);
dsk.close();
QFile img("C:/out.bin");
img.open(QIODevice::WriteOnly);
img.write(readBytes);
img.close();
When I…