J
Jim
I want to do something like
where:
m_Device(_T(\\\\.\\PHYSICALDRIVE1) to read drive 1
I then want to read the physical device till the end and save it in a disk
file. Does anyone have an example of doing this in c#. Below are the
pertinate lines from c++. The framework does not appear to support physical
access.
DeviceHandle = CreateFile(m_Device, GENERIC_READ,FILE_SHARE_READ, NULL,
OPEN_EXISTING, FILE_FLAG_NO_BUFFERING, NULL);
then in a loop
rc = ReadFile(DeviceHandle, buffer, sizeof(buffer), &BytesRead, NULL);
__
Jim
where:
m_Device(_T(\\\\.\\PHYSICALDRIVE1) to read drive 1
I then want to read the physical device till the end and save it in a disk
file. Does anyone have an example of doing this in c#. Below are the
pertinate lines from c++. The framework does not appear to support physical
access.
DeviceHandle = CreateFile(m_Device, GENERIC_READ,FILE_SHARE_READ, NULL,
OPEN_EXISTING, FILE_FLAG_NO_BUFFERING, NULL);
then in a loop
rc = ReadFile(DeviceHandle, buffer, sizeof(buffer), &BytesRead, NULL);
__
Jim