![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Запись данных на диск не создавая файла [D7, Win2k, WinXP]
Stanislav © (2005-02-10 12:03:00)Возможно ли это сделать ? т.е. в определенный кластер записать информацию, а потом зная куда записывалась эта инф. ее считать ?
Игорь Шевченко (2005-02-11 01:15:00) [21]
> также заглени на мои сайт ТАМ ТОЖЕ НАЙДЕЕШЬ МНОГО ИНТЕРЕСНОГО!
Спасибо, у меня свой есть.
> Возврощает : LogDsk(D,E, ...) по HDD
А если не секрет, как сделал ?
Kerk (2005-02-10 23:15:00) [22]NikNet © (10.02.05 23:11) [19]
ну ты мессия прям :)
NikNet (2005-02-10 23:11:00) [23]Кстати мои Mail Arazel@yandex.ru
также заглени на мои сайт ТАМ ТОЖЕ НАЙДЕЕШЬ МНОГО ИНТЕРЕСНОГО!
Arazel.narod.ru
NikNet (2005-02-10 23:11:00) [24]Кстати мои Mail Arazel@yandex.ru
также заглени на мои сайт ТАМ ТОЖЕ НАЙДЕЕШЬ МНОГО ИНТЕРЕСНОГО!
NikNet (2005-02-10 23:10:00) [25]Там около 70 функций!
Достаточно всего 5, чем у тебя еще 65 занимаются ?
Остальные сделанные мною например такие!
Возврощает : HDD по Log Dsk
Возврощает : LogDsk(D,E, ...) по HDD
Возврощает : Полный адресс(кластер) файла по имени
...
Игорь Шевченко (2005-02-10 23:05:00) [26]
> Там около 70 функций!
Достаточно всего 5, чем у тебя еще 65 занимаются ?
NikNet (2005-02-10 21:40:00) [27]Удалено модератором
Примечание: Дубль
NikNet (2005-02-10 21:39:00) [28]Пришли мне свои MAIL я тебе свои исходник скину
на котором не только файл можно записать даже
свой программы сделать ТИПА: DiskEditor,RestoreFile,HDD,UnFormat
Там около 70 функций!
когда будешь посылать
напиши зачем шлешь писмо
ато я не каждый день сижу в ИНЕТЕ!
;)
Eraser (2005-02-10 21:34:00) [29]Александр Иванов ©
MS SQL server может даже больше, он работает даже с неформатированными разделами диска.
На то он и M$ ))
Fay (2005-02-10 19:16:00) [30]2 Marser © (10.02.05 19:06) [10]
В смысле?
Kerk (2005-02-10 19:08:00) [31]Marser © (10.02.05 19:06) [10]
Это понятно. Но тут же с файлом работать надо! %-)
RTFM
Marser (2005-02-10 19:06:00) [32]
> Fay © (10.02.05 18:56) [9] [Новое
>сообщение][Ответить]
>Это ?
>
> CreateFile
Это понятно. Но тут же с файлом работать надо! %-)
Fay (2005-02-10 18:56:00) [33]Это ?
CreateFile
...
...
Disk Devices
Volume handles may be opened as noncached at the discretion of the file system, even when the noncached option is not specified with CreateFile. You should assume that all Microsoft file systems open volume handles as noncached. The restrictions on noncached I/O for files apply to volumes as well.
A file system may or may not require buffer alignment even though the data is noncached. However, if the noncached option is specified when opening a volume, buffer alignment is enforced regardless of the file system on the volume. It is recommended on all file systems that you open volume handles as noncached and follow the noncached I/O restrictions.
Windows NT/2000/XP: You can use the CreateFile function to open a disk drive or a partition on a disk drive. The function returns a handle to the disk device; that handle can be used with the DeviceIOControl function. The following requirements must be met in order for such a call to succeed:
The caller must have administrative privileges for the operation to succeed on a hard disk drive.
The lpFileName string should be of the form \\.\PHYSICALDRIVEx to open the hard disk x. Hard disk numbers start at zero. For example:
String Meaning
\\.\PHYSICALDRIVE2 Obtains a handle to the third physical drive on the user's computer.
For an example showing how to open a physical drive, see Calling DeviceIoControl on Windows NT/2000.
The lpFileName string should be \\.\x: to open a floppy drive x or a partition x on a hard disk. For example:
String Meaning
\\.\A: Obtains a handle to drive A on the user's computer.
\\.\C: Obtains a handle to drive C on the user's computer.
There is no trailing backslash in a drive name. The string "\\.\c:\" refers to the root directory of drive C.
On Windows 2000 or later, you can also open a volume by referring to its unique volume name. In this case also, there should be no trailing backslash on the unique volume name.
Note that all I/O buffers should be sector aligned (aligned on addresses in memory that are integer multiples of the volume's sector size), even if the disk device is opened without the FILE_FLAG_NO_BUFFERING flag. Depending the disk, this requirement may not be enforced.
Windows 95/98/Me: This technique does not work for opening a logical drive. Specifying a string in this form causes CreateFile to return an error.
The dwCreationDisposition parameter must have the OPEN_EXISTING value.
When opening a floppy disk or a partition on a hard disk, you must set the FILE_SHARE_WRITE flag in the dwShareMode parameter
...
...
Игорь Шевченко (2005-02-10 16:29:00) [34]Но у меня встречный вопрос - в связи с чем возникла такая задача?
Marser (2005-02-10 16:20:00) [35]
> Я знаю.
Я тоже :-)
Но не в Windows :o)
Игорь Шевченко (2005-02-10 16:07:00) [36]Я знаю.
Stanislav (2005-02-10 15:03:00) [37]А кто знает как это сделать ?
Stanislav (2005-02-10 12:09:00) [38]Reindeer Moss Eater © (10.02.05 12:06) [1]
А как узнать куда записались данные ?
Reindeer Moss Eater (2005-02-10 12:06:00) [39]Запись данных на диск не создавая файла
Берем файл и стираем его.
Данные при этом на диск пишутся, но никакого файла не создается.
Александр Иванов (2005-02-10 12:06:00) [40]Stanislav © (10.02.05 12:03)
MS SQL server может даже больше, он работает даже с неформатированными разделами диска.