Y
Yves Dhondt
Something went wrong with my previous post, so this is the full question :
Hello,
in the past I used the CreateFile, ReadFile and WriteFile api to access
a diskpartition directly (e.g. "\\.\c:") to read raw sectors. I was
planning on converting some of those old c++ classes to c#. However
using FileStream I get the following error :
"Additional information: FileStream opent geen Win32-apparaten zoals
schijfpartities en tapestations. Maak geen gebruik van \\.\ in het pad."
which translates into
"Additional information: FileStream doesn't open Win32-systems like
diskpartitions and tapestations. Don't use \\.\ in the path."
So I need to use another class but I can't find out which one. Or isn't
there one and am I still stuck with the old win32 API which I need to
access through P/Invoke?
TIA
Yves
Hello,
in the past I used the CreateFile, ReadFile and WriteFile api to access
a diskpartition directly (e.g. "\\.\c:") to read raw sectors. I was
planning on converting some of those old c++ classes to c#. However
using FileStream I get the following error :
"Additional information: FileStream opent geen Win32-apparaten zoals
schijfpartities en tapestations. Maak geen gebruik van \\.\ in het pad."
which translates into
"Additional information: FileStream doesn't open Win32-systems like
diskpartitions and tapestations. Don't use \\.\ in the path."
So I need to use another class but I can't find out which one. Or isn't
there one and am I still stuck with the old win32 API which I need to
access through P/Invoke?
TIA
Yves