I want to catch the disk’s defragment action, before disk defragment I will
do
some my own action.
For example, I want to do defragment about partition C:, when I press the
defragment button, I want to show a messagebox.
Now I use a service to do a snapshot about all process every 250
millisecond,
and catch mmc.exe process with module dfrgui.dll. But it only can catch the
defragment window. Who knows how to implement my requirement?
There is no special defragmentation request.
Usually applications send FSCTL_GET_VOLUME_BITMAP and
FSCTL_GET_RETRIEVAL_POINTERS.
“Sun Jiajie” wrote in message news:xxxxx@ntfsd… >I want to catch the disk’s defragment action, before disk defragment I will >do > some my own action. > For example, I want to do defragment about partition C:, when I press the > defragment button, I want to show a messagebox. > > Now I use a service to do a snapshot about all process every 250 > millisecond, > and catch mmc.exe process with module dfrgui.dll. But it only can catch > the > defragment window. Who knows how to implement my requirement? > >
Pardon me, but could you please explain. I’m not the OP, but I’m curious to
know what the processes path name has to do with watching file chunks moving
around…
m.
----- Original Message ----- a
From: To: “Windows File Systems Devs Interest List” Sent: Monday, July 31, 2006 6:02 AM Subject: RE:[ntfsd] How to monitor disk’s defragment action.