PC Review


Reply
Thread Tools Rate Thread

How to disable "System Restore" for file (not a whole disk) ?

 
 
Aleksey Rechinskiy
Guest
Posts: n/a
 
      26th Mar 2004
Hello!

I need to write some data to a file during processing of IRP_MJ_WRITE in
_storage_ class driver. The file HANDLE hMyFile is opened via
ZwCreateFile(&hMyFile) with options:

FILE_NON_DIRECTORY_FILE |
FILE_RANDOM_ACCESS |
FILE_SYNCHRONOUS_IO_NONALERT |
FILE_NO_INTERMEDIATE_BUFFERING.

(It is mandatory to specify FILE_RANDOM_ACCESS and disable data caching with
FILE_NO_INTERMEDIATE_BUFFERING)

The IRP_MJ_WRITE is queued to a worker thread, which does
ZwWriteFile(hMyFile).

Everything works fine in Windows 2000(chk/free) and pure Windows XP
(chk/free), but sometimes ZwWriteFile never returns in Windows XP SP1
(chk/free) (it gets stuck on call to KeWaitForSingleObject() from
MountMgr.sys, which itself called from sr.sys somewhere deep in kernel)

I noticed disabling "System Restore" feature on drive where hMyFile is
located, won't trigger this problem. But as I read in DDK, "System Restore"
consists of file system filter driver. Then, it is logical to guess it's
possible to turn off "System Restore" for only one particular file (just
hMyFile). But I couldn't find any info about it in DDK for XPSP1 and its
sample sources.

So, the question is how to turn off the "System Restore" feature for a file?

As usual, any information would be greatly appreciated!
Thanks.

Aleksey.




 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"System Restore" will not restore, "Software Repair Tool" missing! Rick Windows XP General 2 15th Jul 2009 11:32 PM
System Restore Stuck at "Finalizing file restore" Howard Windows Vista General Discussion 1 8th Jan 2008 04:58 AM
Unable to reverse system restore: "not enough disk space" Robin Windows XP General 3 8th Jul 2005 12:55 PM
System Restore - "no disk" message =?Utf-8?B?ZGphc3BlcnM=?= Windows XP General 0 28th Mar 2004 03:51 PM
How to disable "System Restore" for file (not a whole disk) ? Aleksey Rechinskiy Windows XP Drivers 0 26th Mar 2004 03:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:13 PM.