Summary
WriteEncryptedFileRaw may fail with error code 1917 if the encrypted file contains a sparse stream. A sparse stream is a stream that contains no data.
More Information
This is a known problem on the Windows versions listed in the applies to section.