That's very kind! I'll check this and let you know. Any chance for a snippet for the delete mode as well?
On another note, one more improvement I am considering is running chkdsk before beginning a DoubleSpace compression operation. Some users have had errors, which would have been avoidable altogether had they known that their disk was in an inconsistent state to begin with.
I have been playing with the undocumented fmifs.dll API Chkdsk, but at least on Win64 (Windows 8.1) this API does not appear to be playing very nice. Returning cancel from a callback seems to be a no-op (it does not abort the process), and even when the API seems to have returned, the system process still consumes CPU in the background. I have also experienced a lot of lockups and freezes of the system (temporary) while trying to fit the API in. Last but not least, there seems to be an even newer ChkdskEx API, also undocumented, of course.
Do you have any experience with these APIs, or know of any resources for the same?