Reading/Writing directly to/from a device in MSWindows
From: Benjamin de Waal (yttrium_at_optusnet.com.au)
Date: 02/28/05
- Next message: john townsley: "Re: vector"
- Previous message: Eric Lilja: "Re: How do I make my convert() function do nothing for equal types?"
- Next in thread: Rolf Magnus: "Re: Reading/Writing directly to/from a device in MSWindows"
- Reply: Rolf Magnus: "Re: Reading/Writing directly to/from a device in MSWindows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Feb 2005 20:42:25 +1100
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.
-- "When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl."
- Next message: john townsley: "Re: vector"
- Previous message: Eric Lilja: "Re: How do I make my convert() function do nothing for equal types?"
- Next in thread: Rolf Magnus: "Re: Reading/Writing directly to/from a device in MSWindows"
- Reply: Rolf Magnus: "Re: Reading/Writing directly to/from a device in MSWindows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|