I am using the ReplaceFile Win32 function as part of an operation to get atomic behaviour.
Of the three special error codes for that function, I've been able to reproduce and recover (rollback) from two: ERROR_UNABLE_TO_MOVE_REPLACEMENT and ERROR_UNABLE_TO_REMOVE_REPLACED.
My questions relate to the third error code: ERROR_UNABLE_TO_MOVE_REPLACEMENT_2.
Some more details in case it helps:
ERROR_UNABLE_TO_MOVE_REPLACEMENT_2
occurs when the attributes and secondary data streams have been attached to the replacement file, but the primary file itself cannot be replaced.
Your assumption about recovery is correct.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With