Setting new HDD's to default to Safe Removal

  • Thread starter Thread starter Zapp Brannigan
  • Start date Start date
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..
 
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.
 
Back
Top