windows - Reproduce ERROR_UNABLE_TO_MOVE_REPLACEMENT_2 error code from ReplaceFile -



windows - Reproduce ERROR_UNABLE_TO_MOVE_REPLACEMENT_2 error code from ReplaceFile -

i using replacefile win32 function part of operation atomic behaviour.

of 3 special error codes function, i've been able reproduce , recover (rollback) two: error_unable_to_move_replacement , error_unable_to_remove_replaced.

my questions relate 3rd error code: error_unable_to_move_replacement_2.

has seen error code returned? under conditions possible? any ideas on how repoduce error can test path in code recovers it? i gather documentation recover (rollback) error, need rename replaced file original name, because replacefile have left backup file name. can verify in fact state replacefile leaves files in?

some more details in case helps:

replacefile called non-null backup file name (in fact error_unable_to_move_replacement_2 cannot occur if null backup name given). i pass replacefile_write_through flag. the files exist on same ntfs volume.

error_unable_to_move_replacement_2 occurs when attributes , secondary info streams have been attached replacement file, primary file cannot replaced.

your assumption recovery correct.

windows winapi error-handling error-code

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -