How do I enable “Better Performance” on an External USB HD programatically in C/C++.
Specifically I am talking about the device properties pane in the control panel in Microsoft Windows. That enables a form of OS level write caching.

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This link Provided by Alex K. is my accepted answer: It deals with the
IOCTL_DISK_SET_CACHE_INFORMATION DeviceIoControl()http://blogs.msdn.com/b/dhawan/archive/2009/10/05/enable-or-disable-enable-write-caching-on-disk-behavior-on-disk.aspx
Old Information:
Windows 2K did contain a “Power Protected” Write Cache Option, but it was never carried over to Windows XP. Which makes a comment about using
Dskcache.exeinvalid. Was “Power Protected Mode” ever put back into e.g. Windows Vista? I do not know.