Reading a raw drive?

How would you read a cd or dvd as a raw block device in Windows XP? I'm looking to get the same result as when I open '/dev/hdc' (or whatever the drive is) in Linux. I'm trying to port a program to Windows and am not sure how to do this one step. Thanks.


  • [green]Try CreateFile() to open the disk and then use ReadFile()[/green]

  • You should use CreateFile with \.x: as file name (where x is the drive letter).


    [italic]How beautiful, if sorrow had not made Sorrow more beautiful than Beauty itself.[/italic]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion