All times are UTC - 5 hours [ DST ]


Switch to mobile style


Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Raw Disk Write on a Compress NTFS File System
PostPosted: January 26th, 2011, 19:44 
Offline

Joined: January 26th, 2011, 19:42
Posts: 1
Location: California
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group