QueryDeviceInformation returns more reliable volume length and works with unformatted volumes. It will return volume length only on ROS and Vista+ however, so also keep the GetFreeDiskSpaceExW as a fallback for XP/2003.
At the end of the format operation, text in console got overwritten and leftovers from previous line remained displayed.