Privilege used by MoveFileEx()

326 views Asked by At

When calling MoveFileEx() and using MOVEFILE_DELAY_UNTIL_REBOOT for dwFlags. During the actual moving of file what privilege does it use?

Thanks Kazuo!

1

There are 1 answers

1
Ferenc Deak On

Th MSDN doesn't really say anything about this special situtation, but the hint "This value can be used only if the process is in the context of a user who belongs to the administrators group or the LocalSystem account." gives the only logic result that the Administrator privileges will be used to move the file (since the account that called this API might not be there).