Create a disk image using .NET.

I need to clone CF cards (with a certain number of user functions that do not allow using ready-made cloning tools). I need the correct image for this - I cannot just copy all the files. I would like to write a program for this in C #, but I have no idea where to start.

Can someone point me to a basic pattern or something to make me move in the right direction?

+3
source share
3 answers

It is impossible to use a program such as: http://xedit.smike.ru/

API Win32, CreateFile (, G "\.\g:", )

ReadFile/WriteFile, SetFilePointer DeviceIoControl.

+1

API Windows, io. .

CreateFile ( "\.\M:", GENERIC_READ | GENERIC_WRITE,...)

M: . , "\.\M:" #, . .

. CreateFile.

. . " Windows Vista Windows Server 2008"

+1

You will need to use Pinvoke to call io lock mode. Why can't you just copy files?

0
source

Source: https://habr.com/ru/post/1732416/


All Articles