Fixed a call to WriteFile.
Added a few missing constants.
Updated CHANGES file.