IOCTL_DISK_UPDATE_PROPERTIES

Hi, All,

I used DeviceIoControl API to call this control code on a device handle
returned by opening a physical drive. The return code is nonzero. That means
that call succeeded. However, I didn’t view the files I directly wrote into
the hard disk before I called the DeviceIoControl. I used the disk copy
write method to that file copy from another backed disk.

However, if I reboot my machine, I can view all those files I wrote. But, I
dislike this reboot.

My question is

  1. how to correctly set parameters for IOCTL_DISK_UPDATE_PROPERTIES in the
    user mode?
  2. if user mode failed, how about call it in the kernel mode?
  3. how about oplock? in the user mode or kernel mode?

Appreciate any help.

-Yuzhong

P.S. the similar post ever posted without any response.


This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com