| HDD GURU FORUMS http://forum.hddguru.com/ |
|
| Raw Disk Write on a Compress NTFS File System http://forum.hddguru.com/viewtopic.php?f=7&t=18379 |
Page 1 of 1 |
| Author: | sunnylogan [ January 26th, 2011, 19:44 ] |
| Post subject: | Raw Disk Write on a Compress NTFS File System |
I'm trying to overwrite directly to a file on a Compress NTFS file system. It seems that Vista onwards Microsoft does not all to directly write to a cluster. http://support.microsoft.com/kb/942448 Even if I'm an Admin WriteFile to a cluster always returns with 0x5 (Permission denied). BTW, I'm using DeviceIoControl (FSCTL_GET_RETRIEVAL_POINTERS) method to get the file cluster list. And then open Volume with CreateFile method. But it seems that HDDScan can erase any sector on a Compress NTFS file system. I was wondering if someone could help me on how to resolve this issue. Any sample code or list of Window API which can allow writing to a cluster. Last question, how can we convert a cluster number to LBA number and how we can get physical device info a file? Many thanks in advance. |
|
| Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|