B
Benjamin de Waal
Hey all,
I'm trying to figure out how to directly write to a device in Windows.
Basically, what I'm wanting to do is create an image of a device
(specifically, a CompactFlash card that uses a filesystem Windows doesn't
recognise), store it as a file, modify it and dump it back to the card.
Currently, in version 0.001 of my program, I'm just calling "dd for
Windows" using ShellExecute - this works perfectly, but obviously this isn't
exactly acceptable for the final product! (and in the kludgy way I've done
it, it locks the whole program and I can't implement a progress bar etc etc)
I'm HOPING it's as easy as using fopen and just treating it like a file
from then on (that'll my Unix background speaking)...
If it makes a difference, I'm using Visual C++ 6 and this is an MFC app,
but whether the solution is MFC or otherwise, I'm really not fussy!
Any help (be they code snippets or even just pointers to documentation)
would be much appreciated.
Regards,
Ben de Waal.
I'm trying to figure out how to directly write to a device in Windows.
Basically, what I'm wanting to do is create an image of a device
(specifically, a CompactFlash card that uses a filesystem Windows doesn't
recognise), store it as a file, modify it and dump it back to the card.
Currently, in version 0.001 of my program, I'm just calling "dd for
Windows" using ShellExecute - this works perfectly, but obviously this isn't
exactly acceptable for the final product! (and in the kludgy way I've done
it, it locks the whole program and I can't implement a progress bar etc etc)
I'm HOPING it's as easy as using fopen and just treating it like a file
from then on (that'll my Unix background speaking)...
If it makes a difference, I'm using Visual C++ 6 and this is an MFC app,
but whether the solution is MFC or otherwise, I'm really not fussy!
Any help (be they code snippets or even just pointers to documentation)
would be much appreciated.
Regards,
Ben de Waal.