The Old New Thing

Generally speaking, yanking the power plug unexpectedly should not be part of your business process

A customer had a complex process for setting up their computers, and the process recorded information in the registry so that applications could record their state across reboots. They then noticed that if they yanked the power cord instead of going through the normal Shutdown process, that the registry keys were not reliably updated. They ...