Setting new HDD's to default to Safe Removal

Z

Zapp Brannigan

It seems the default in XP/XPe is for Best Performance, with Write
Caching enabled, unfortunatly, our device, can be powered down
incorrectly, so we really want to disable write caching, and use the
"Safe Removal" option (are application is not ver disk intensive, so the
difference is negliable). The problem is, that is we change vendors, or
even model or size of HDD, XP reconfigures itself, and the setting does
back to default. Is there a way to force all newly detected disks to
default to "Safe Removal" ? Have looked around and came up with nothing...


Thanks..
 
K

KM

Zapp,

To enable/disable write caching most likely you will need to write an app.
Check Windows DDK functions (search for IOCTL_DISK_SET_CACHE_INFORMATION, DISK_CACHE_INFORMATION).

I am not sure about the "Save Removal" option. Check SetupDiGetDeviceRegistryProperty or CM_Get_DevInst_Registry_Property APIs (...,
SPDRP_REMOVAL_POLICY_xxxx,...).

You may get a better reply somewhere from microsoft.public.development.device.drivers or a ddk/kernel newsgroups.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top