I believe that you want to use Win32 functions instead of C. functions. I'm not sure what MoveFileExwill do what you want. CopyFileExcan be used for this, and then the original can be deleted. CopyFileExeven has flags that allow it to fail / not if encryption is not possible at the destination.
Benj source
share